react-c3js
react-c3js copied to clipboard
The Grid properties does not update correctly since v0.1.14
I'm passing a grid-property to the Chart Element.
const chartData = {
columns: [
['data1', 30, 200, 100, 400, 150, 250],
['data2', 50, 20, 10, 40, 15, 25]
]
};
let grid = {
x: {
show: true,
lines: [
{value: leftBorder, text: 'Eastern model border', position: 'middle'},
{value: rightBorder, text: 'Western model border', position: 'middle'}
]
}
};
<Chart data={chartData} grid={grid} element="testchart" type="pie" />
The grid-values are loaded on first rendering. Un update the grid-object it is not working.
Until v0.1.13 it works.