charts
charts copied to clipboard
Invalid Pie Legend after Data Updates
Expected Behaviour
Pie Graph Legends should be updated when chart.update(new_data)
is called.
Actual Behaviour
Legend summarizes old data.
Steps to Reproduce:
- Create a Pie chart with legend
- Update the data points using
chart.update(new_data)
- Legend stays the same.
NOTE: Add a GIF/Screenshot if required.
Frappé Charts version: ^2.0.0-rc11
Codepen / Codesandbox: https://codesandbox.io/s/frappe-charts-legend-bug-vut14?file=/src/index.js
Please wait for the setTimeout to update data in CodeSandBox
the version in your Codesandbox is 1.5.2. please use the lastest version: 1.6.2