charts icon indicating copy to clipboard operation
charts copied to clipboard

Invalid Pie Legend after Data Updates

Open fahimalizain opened this issue 3 years ago • 1 comments

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

fahimalizain avatar Jun 05 '21 09:06 fahimalizain

the version in your Codesandbox is 1.5.2. please use the lastest version: 1.6.2

xch1029 avatar Jun 21 '21 08:06 xch1029