ChartJS ist not working well

0
0

Build an example where I code behind changing ChartType, DataSet and Label.

With the buttons all is refreshed at runtime.

 

The whole control fail to show the desired charts.

PolarArea, Pie and Doughnout brings Javascript errors.

Event with Update() and UpdateData() it didn’t refresh.

 

 

Attachment
  • You must to post comments
0
0

Thank you,

the workaround is perfect !

I miss to set the data because I clear my code for you and delete the line:

int[] data=oStringlist.Select(x=>int.Parse(x)).ToArray<int>();

 

 

 

  • You must to post comments
0
0

Hi Kay,

the bug is logged as WJ-7950 and fixed in dev build 1.3.24.

Best regards
Frank

  • You must to post comments
0
0

Hi Kay,

Thank you for the test case. Found 2 problems:

  1. Bug in the ChartJS component: it doesn’t preserve the existing data when switching chart type.
  2. Your code never sets the data, it only sets the label. I have added a GetData() method and it all works well. See changes attached with workaround for the chart type change bug.

HTH

Best,

Luca

Attachment
  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.