ChartJS ist not working well

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
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
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json