mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
Feature: Support for bar charts
This commit is contained in:
parent
f59a5dd618
commit
343e23a9f9
1 changed files with 3 additions and 1 deletions
|
|
@ -29,9 +29,11 @@ export const Chart = function Chart({
|
|||
const titleProperty = component.definition.properties.title;
|
||||
const title = titleProperty.value;
|
||||
|
||||
const typeProperty = component.definition.properties.type;
|
||||
const chartType = typeProperty.value;
|
||||
|
||||
const chartData = [{
|
||||
type: 'line',
|
||||
type: chartType || 'line',
|
||||
x: data.map((item) => item["x"]),
|
||||
y: data.map((item) => item["y"])
|
||||
}]
|
||||
|
|
|
|||
Loading…
Reference in a new issue