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:
commit
5f01ec859d
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user