hi-manshu/Charty

Bar data represented incorrectly on server data update

aaron-nerox opened this issue · 1 comments

Hello there, i discovered a bug similar to the one in the line data where the recomposition of the bar chart will display fresh data incorrectly. Here is my data displayed monthly before i update it using a filter to show data yearly :

Screenshot_20221211_231409_Pspot

listOf(
     BarData(xValue=1, yValue=0.0), 
     BarData(xValue=2, yValue=0.0), 
     BarData(xValue=3, yValue=0.0), 
     BarData(xValue=4, yValue=0.0), 
     BarData(xValue=5, yValue=0.0), 
     BarData(xValue=6, yValue=0.0), 
     BarData(xValue=7, yValue=120.0), 
     BarData(xValue=8, yValue=0.0), 
     BarData(xValue=9, yValue=120.0), 
     BarData(xValue=10, yValue=0.0), 
     BarData(xValue=11, yValue=240.0), 
     BarData(xValue=12, yValue=0.0), 
     BarData(xValue=13, yValue=0.0), 
     BarData(xValue=14, yValue=0.0), 
     BarData(xValue=15, yValue=0.0), 
     BarData(xValue=16, yValue=0.0), 
     BarData(xValue=17, yValue=0.0), 
     BarData(xValue=18, yValue=0.0), 
     BarData(xValue=19, yValue=0.0), 
     BarData(xValue=20, yValue=0.0), 
     BarData(xValue=21, yValue=240.0), 
     BarData(xValue=22, yValue=0.0), 
     BarData(xValue=23, yValue=0.0), 
     BarData(xValue=24, yValue=0.0), 
     BarData(xValue=25, yValue=480.0), 
     BarData(xValue=26, yValue=0.0), 
     BarData(xValue=27, yValue=0.0), 
     BarData(xValue=28, yValue=0.0), 
     BarData(xValue=29, yValue=0.0), 
     BarData(xValue=30, yValue=0.0), 
     BarData(xValue=31, yValue=0.0)
)

And this is my data after updating it to display yearly :
Screenshot_20221211_231420_Pspot

listOf(
   BarData(xValue=1, yValue=0.0), 
   BarData(xValue=2, yValue=0.0), 
   BarData(xValue=3, yValue=0.0), 
   BarData(xValue=4, yValue=0.0), 
   BarData(xValue=5, yValue=0.0), 
   BarData(xValue=6, yValue=0.0), 
   BarData(xValue=7, yValue=0.0), 
   BarData(xValue=8, yValue=0.0), 
   BarData(xValue=9, yValue=0.0), 
   BarData(xValue=10, yValue=600.0), 
   BarData(xValue=11, yValue=120.0), 
   BarData(xValue=12, yValue=1200.0)
)

I would love to know if this is a usage error from my part or is it a bug in the library itself

CW12 commented

I believe it's a bug (or I'm using it wrong too!), but seems identical to the line chart bug that has been fixed