|
|
|
@ -423,105 +423,11 @@ export default { |
|
|
|
icon: "ri-bar-chart-2-line", |
|
|
|
isCategory: true, |
|
|
|
children: [ |
|
|
|
// {
|
|
|
|
// name: "Donut",
|
|
|
|
// _component: "@budibase/standard-components/donut",
|
|
|
|
// description: "Donut chart",
|
|
|
|
// icon: "ri-pie-chart-fill",
|
|
|
|
// properties: {
|
|
|
|
// settings: [
|
|
|
|
// {
|
|
|
|
// label: "Data",
|
|
|
|
// key: "datasource",
|
|
|
|
// control: TableViewSelect,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Name Field",
|
|
|
|
// key: "nameKey",
|
|
|
|
// dependsOn: "datasource",
|
|
|
|
// control: TableViewFieldSelect,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Value Field",
|
|
|
|
// key: "valueKey",
|
|
|
|
// dependsOn: "datasource",
|
|
|
|
// control: TableViewFieldSelect,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Animate Chart",
|
|
|
|
// key: "isAnimated",
|
|
|
|
// valueKey: "checked",
|
|
|
|
// control: Checkbox,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Hover Highlight",
|
|
|
|
// key: "hasHoverAnimation",
|
|
|
|
// valueKey: "checked",
|
|
|
|
// control: Checkbox,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Keep Last Hover",
|
|
|
|
// key: "hasLastHoverSliceHighlighted",
|
|
|
|
// valueKey: "checked",
|
|
|
|
// control: Checkbox,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Colors",
|
|
|
|
// key: "color",
|
|
|
|
// control: OptionSelect,
|
|
|
|
// options: [
|
|
|
|
// "britecharts",
|
|
|
|
// "blueGreen",
|
|
|
|
// "green",
|
|
|
|
// "grey",
|
|
|
|
// "orange",
|
|
|
|
// "pink",
|
|
|
|
// "purple",
|
|
|
|
// "red",
|
|
|
|
// "teal",
|
|
|
|
// "yellow",
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "External Radius",
|
|
|
|
// key: "externalRadius",
|
|
|
|
// control: Input,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Internal Radius",
|
|
|
|
// key: "internalRadius",
|
|
|
|
// control: Input,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Radius Offset",
|
|
|
|
// key: "radiusHoverOffset ",
|
|
|
|
// control: Input,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Show Legend",
|
|
|
|
// key: "useLegend ",
|
|
|
|
// valueKey: "checked",
|
|
|
|
// control: Checkbox,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Horizontal Legend",
|
|
|
|
// key: "horizontalLegend",
|
|
|
|
// valueKey: "checked",
|
|
|
|
// control: Checkbox,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Legend Width",
|
|
|
|
// key: "legendWidth",
|
|
|
|
// control: Input,
|
|
|
|
// },
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
name: "Bar", |
|
|
|
name: "Bar Chart", |
|
|
|
_component: "@budibase/standard-components/bar", |
|
|
|
description: "Bar chart", |
|
|
|
icon: "ri-bar-chart-fill", |
|
|
|
icon: "ri-bar-chart-line", |
|
|
|
properties: { |
|
|
|
settings: [ |
|
|
|
{ |
|
|
|
@ -610,111 +516,8 @@ export default { |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// name: "Grouped Bar",
|
|
|
|
// _component: "@budibase/standard-components/groupedbar",
|
|
|
|
// description: "Groupedbar chart",
|
|
|
|
// icon: "ri-bar-chart-grouped-fill",
|
|
|
|
// properties: {
|
|
|
|
// settings: [
|
|
|
|
// {
|
|
|
|
// label: "Data",
|
|
|
|
// key: "datasource",
|
|
|
|
// control: TableViewSelect,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Name Label",
|
|
|
|
// key: "nameLabel",
|
|
|
|
// dependsOn: "datasource",
|
|
|
|
// control: TableViewFieldSelect,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Group Label",
|
|
|
|
// key: "groupLabel",
|
|
|
|
// dependsOn: "datasource",
|
|
|
|
// control: TableViewFieldSelect,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Value Label",
|
|
|
|
// key: "valueLabel",
|
|
|
|
// dependsOn: "datasource",
|
|
|
|
// control: TableViewFieldSelect,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Color",
|
|
|
|
// key: "color",
|
|
|
|
// control: OptionSelect,
|
|
|
|
// options: [
|
|
|
|
// "britecharts",
|
|
|
|
// "blueGreen",
|
|
|
|
// "green",
|
|
|
|
// "grey",
|
|
|
|
// "orange",
|
|
|
|
// "pink",
|
|
|
|
// "purple",
|
|
|
|
// "red",
|
|
|
|
// "teal",
|
|
|
|
// "yellow",
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Height",
|
|
|
|
// key: "height",
|
|
|
|
// control: Input,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Width",
|
|
|
|
// key: "width",
|
|
|
|
// control: Input,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Aspect Ratio",
|
|
|
|
// key: "aspectRatio",
|
|
|
|
// control: Input,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Grid",
|
|
|
|
// key: "grid",
|
|
|
|
// control: OptionSelect,
|
|
|
|
// options: ["vertical", "horizontal", "full"],
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Value Label",
|
|
|
|
// key: "valueLabel",
|
|
|
|
// control: Input,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Y Ticks",
|
|
|
|
// key: "yTicks",
|
|
|
|
// control: Input,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Y Tick Text Offset",
|
|
|
|
// key: "yTickTextOffset",
|
|
|
|
// control: Input,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Is Animated",
|
|
|
|
// key: "isAnimated",
|
|
|
|
// valueKey: "checked",
|
|
|
|
// control: Checkbox,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Is Horizontal",
|
|
|
|
// key: "isHorizontal",
|
|
|
|
// valueKey: "checked",
|
|
|
|
// control: Checkbox,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: "Tooltip Title",
|
|
|
|
// key: "tooltipTitle",
|
|
|
|
// control: Input,
|
|
|
|
// },
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
name: "Line", |
|
|
|
name: "Line Chart", |
|
|
|
_component: "@budibase/standard-components/line", |
|
|
|
description: "Line chart", |
|
|
|
icon: "ri-line-chart-line", |
|
|
|
@ -807,6 +610,146 @@ export default { |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "Pie Chart", |
|
|
|
_component: "@budibase/standard-components/pie", |
|
|
|
description: "Pie chart", |
|
|
|
icon: "ri-pie-chart-line", |
|
|
|
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 Col.", |
|
|
|
key: "valueColumn", |
|
|
|
dependsOn: "datasource", |
|
|
|
control: TableViewFieldSelect, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: "Color",
|
|
|
|
// key: "color",
|
|
|
|
// control: Colorpicker,
|
|
|
|
// defaultValue: "#4285f4",
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: "Width", |
|
|
|
key: "width", |
|
|
|
control: Input, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Height", |
|
|
|
key: "height", |
|
|
|
control: Input, |
|
|
|
defaultValue: "200", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Data Labels", |
|
|
|
key: "dataLabels", |
|
|
|
control: Checkbox, |
|
|
|
valueKey: "checked", |
|
|
|
defaultValue: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Animate", |
|
|
|
key: "animate", |
|
|
|
control: Checkbox, |
|
|
|
valueKey: "checked", |
|
|
|
defaultValue: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Legend", |
|
|
|
key: "legend", |
|
|
|
control: Checkbox, |
|
|
|
valueKey: "checked", |
|
|
|
defaultValue: true, |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "Donut Chart", |
|
|
|
_component: "@budibase/standard-components/donut", |
|
|
|
description: "Donut chart", |
|
|
|
icon: "ri-donut-chart-line", |
|
|
|
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 Col.", |
|
|
|
key: "valueColumn", |
|
|
|
dependsOn: "datasource", |
|
|
|
control: TableViewFieldSelect, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: "Color",
|
|
|
|
// key: "color",
|
|
|
|
// control: Colorpicker,
|
|
|
|
// defaultValue: "#4285f4",
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: "Width", |
|
|
|
key: "width", |
|
|
|
control: Input, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Height", |
|
|
|
key: "height", |
|
|
|
control: Input, |
|
|
|
defaultValue: "200", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Data Labels", |
|
|
|
key: "dataLabels", |
|
|
|
control: Checkbox, |
|
|
|
valueKey: "checked", |
|
|
|
defaultValue: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Animate", |
|
|
|
key: "animate", |
|
|
|
control: Checkbox, |
|
|
|
valueKey: "checked", |
|
|
|
defaultValue: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "Legend", |
|
|
|
key: "legend", |
|
|
|
control: Checkbox, |
|
|
|
valueKey: "checked", |
|
|
|
defaultValue: true, |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
|