react-c3js icon indicating copy to clipboard operation
react-c3js copied to clipboard

The Grid properties does not update correctly since v0.1.14

Open rabbl opened this issue 7 years ago • 0 comments

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.

rabbl avatar Mar 08 '17 12:03 rabbl