Merge pull request #4660 from appsmithorg/FIX/4573-custom-chart-type-not-supported-text

FIX #4573 : added custom fusion chart config to override default message
This commit is contained in:
Somangshu Goswami 2021-06-07 19:09:35 +05:30 committed by GitHub
commit 5f01ec859d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 1 deletions

View File

@ -541,6 +541,58 @@ const WidgetConfigResponse: WidgetConfigReducerState = {
},
xAxisName: "Last Week",
yAxisName: "Total Order Revenue $",
customFusionChartConfig: {
type: "column2d",
dataSource: {
chart: {
caption: "Last week's revenue",
xAxisName: "Last Week",
yAxisName: "Total Order Revenue $",
theme: "fusion",
},
data: [
{
label: "Mon",
value: 10000,
},
{
label: "Tue",
value: 12000,
},
{
label: "Wed",
value: 32000,
},
{
label: "Thu",
value: 28000,
},
{
label: "Fri",
value: 14000,
},
{
label: "Sat",
value: 19000,
},
{
label: "Sun",
value: 36000,
},
],
trendlines: [
{
line: [
{
startvalue: "38000",
valueOnRight: "1",
displayvalue: "Weekly Target",
},
],
},
],
},
},
},
FORM_BUTTON_WIDGET: {
rows: 1 * GRID_DENSITY_MIGRATION_V1,

View File

@ -92,7 +92,7 @@ export interface ChartData {
export interface ChartWidgetProps extends WidgetProps, WithMeta {
chartType: ChartType;
chartData: AllChartData;
customFusionChartConfig: { config: CustomFusionChartConfig };
customFusionChartConfig: CustomFusionChartConfig;
xAxisName: string;
yAxisName: string;
chartName: string;