|
|
|
@ -545,6 +545,13 @@ export default { |
|
|
|
dependsOn: "datasource", |
|
|
|
control: MultiTableViewFieldSelect, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Format", |
|
|
|
key: "yAxisUnits", |
|
|
|
control: OptionSelect, |
|
|
|
options: ["Default", "Thousands", "Millions"], |
|
|
|
defaultValue: "Default", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Y Axis Label", |
|
|
|
key: "yAxisLabel", |
|
|
|
@ -610,6 +617,121 @@ export default { |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "Area Chart", |
|
|
|
_component: "@budibase/standard-components/area", |
|
|
|
description: "Line chart", |
|
|
|
icon: "ri-line-chart-fill", |
|
|
|
properties: { |
|
|
|
settings: [ |
|
|
|
{ |
|
|
|
label: "Title", |
|
|
|
key: "title", |
|
|
|
control: Input, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Data", |
|
|
|
key: "datasource", |
|
|
|
control: TableViewSelect, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Label Col.", |
|
|
|
key: "labelColumn", |
|
|
|
dependsOn: "datasource", |
|
|
|
control: TableViewFieldSelect, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Data Cols.", |
|
|
|
key: "valueColumns", |
|
|
|
dependsOn: "datasource", |
|
|
|
control: MultiTableViewFieldSelect, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Format", |
|
|
|
key: "yAxisUnits", |
|
|
|
control: OptionSelect, |
|
|
|
options: ["Default", "Thousands", "Millions"], |
|
|
|
defaultValue: "Default", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Y Label", |
|
|
|
key: "yAxisLabel", |
|
|
|
control: Input, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "X Label", |
|
|
|
key: "xAxisLabel", |
|
|
|
control: Input, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: "Color",
|
|
|
|
// key: "color",
|
|
|
|
// control: Colorpicker,
|
|
|
|
// defaultValue: "#4285f4",
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: "Width", |
|
|
|
key: "width", |
|
|
|
control: Input, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Height", |
|
|
|
key: "height", |
|
|
|
control: Input, |
|
|
|
defaultValue: "400", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Curve", |
|
|
|
key: "curve", |
|
|
|
control: OptionSelect, |
|
|
|
options: ["Smooth", "Straight", "Stepline"], |
|
|
|
defaultValue: "Smooth", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Data Labels", |
|
|
|
key: "dataLabels", |
|
|
|
control: Checkbox, |
|
|
|
valueKey: "checked", |
|
|
|
defaultValue: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Animate", |
|
|
|
key: "animate", |
|
|
|
control: Checkbox, |
|
|
|
valueKey: "checked", |
|
|
|
defaultValue: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Fill", |
|
|
|
key: "fill", |
|
|
|
control: Checkbox, |
|
|
|
valueKey: "checked", |
|
|
|
defaultValue: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Legend", |
|
|
|
key: "legend", |
|
|
|
control: Checkbox, |
|
|
|
valueKey: "checked", |
|
|
|
defaultValue: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Stacked", |
|
|
|
key: "stacked", |
|
|
|
control: Checkbox, |
|
|
|
valueKey: "checked", |
|
|
|
defaultValue: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Gradient", |
|
|
|
key: "gradient", |
|
|
|
control: Checkbox, |
|
|
|
valueKey: "checked", |
|
|
|
defaultValue: false, |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "Pie Chart", |
|
|
|
_component: "@budibase/standard-components/pie", |
|
|
|
|