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:
commit
4cf050147b
|
|
@ -3,7 +3,7 @@ import InputTextControl, { InputText } from "./InputTextControl";
|
||||||
|
|
||||||
class CustomFusionChartControl extends InputTextControl {
|
class CustomFusionChartControl extends InputTextControl {
|
||||||
render() {
|
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;
|
const { dataTreePath, label, placeholderText, propertyValue } = this.props;
|
||||||
return (
|
return (
|
||||||
<InputText
|
<InputText
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,8 @@ export default [
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
helpText:
|
helpText:
|
||||||
"Manually configure a FusionChart, see https://www.fusioncharts.com",
|
"Manually configure a FusionChart, see https://docs.appsmith.com/widget-reference/chart#custom-chart",
|
||||||
placeholderText: `Enter {type: "bar2d","dataSource": {}}`,
|
placeholderText: `Enter {"type": "bar2d","dataSource": {}}`,
|
||||||
propertyName: "customFusionChartConfig",
|
propertyName: "customFusionChartConfig",
|
||||||
label: "Custom Fusion Chart Configuration",
|
label: "Custom Fusion Chart Configuration",
|
||||||
controlType: "CUSTOM_FUSION_CHARTS_DATA",
|
controlType: "CUSTOM_FUSION_CHARTS_DATA",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user