Re-adding datachart for testing
This commit is contained in:
parent
264076886f
commit
350b41543e
|
@ -365,6 +365,38 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "Data Chart",
|
||||||
|
_component: "@budibase/standard-components/datachart",
|
||||||
|
description: "Shiny chart",
|
||||||
|
icon: "ri-bar-chart-line",
|
||||||
|
properties: {
|
||||||
|
design: { ...all },
|
||||||
|
settings: [
|
||||||
|
{ label: "Table", key: "model", control: ModelSelect },
|
||||||
|
{
|
||||||
|
label: "Chart Type",
|
||||||
|
key: "type",
|
||||||
|
control: OptionSelect,
|
||||||
|
options: [
|
||||||
|
"column2d",
|
||||||
|
"column3d",
|
||||||
|
"line",
|
||||||
|
"area2d",
|
||||||
|
"bar2d",
|
||||||
|
"bar3d",
|
||||||
|
"pie2d",
|
||||||
|
"pie3d",
|
||||||
|
"doughnut2d",
|
||||||
|
"doughnut3d",
|
||||||
|
"pareto2d",
|
||||||
|
"pareto3d",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
children: [],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "Chart",
|
name: "Chart",
|
||||||
description: "Shiny chart",
|
description: "Shiny chart",
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$: console.log("CHART CONFIGS", chartConfigs)
|
||||||
|
|
||||||
async function fetchData() {
|
async function fetchData() {
|
||||||
const FETCH_RECORDS_URL = `/api/views/all_${model}`
|
const FETCH_RECORDS_URL = `/api/views/all_${model}`
|
||||||
const response = await _bb.api.get(FETCH_RECORDS_URL)
|
const response = await _bb.api.get(FETCH_RECORDS_URL)
|
||||||
|
|
Loading…
Reference in New Issue