Merge pull request #4835 from appsmithorg/fix/custom-chart-config-better-doc

fixing docs and expectation strings on custom chart
This commit is contained in:
Somangshu Goswami 2021-06-04 16:04:15 +05:30 committed by GitHub
commit 4cf050147b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import InputTextControl, { InputText } from "./InputTextControl";
class CustomFusionChartControl extends InputTextControl {
render() {
const expected = "{\n type: string,\n dataSource: Object\n}";
const expected = '{\n "type": string,\n "dataSource": Object\n}';
const { dataTreePath, label, placeholderText, propertyValue } = this.props;
return (
<InputText

View File

@ -68,8 +68,8 @@ export default [
children: [
{
helpText:
"Manually configure a FusionChart, see https://www.fusioncharts.com",
placeholderText: `Enter {type: "bar2d","dataSource": {}}`,
"Manually configure a FusionChart, see https://docs.appsmith.com/widget-reference/chart#custom-chart",
placeholderText: `Enter {"type": "bar2d","dataSource": {}}`,
propertyName: "customFusionChartConfig",
label: "Custom Fusion Chart Configuration",
controlType: "CUSTOM_FUSION_CHARTS_DATA",