mendixlabs / ChartJS

A Mendix widget that wraps the ChartJS library.
https://appstore.home.mendix.com/link/app/1712/Mendix/ChartJS-Widget
Apache License 2.0
4 stars 28 forks source link

Chart incorrect datasets, doesn't render correctly when inside groupbox #69

Closed Mcpoowl closed 6 years ago

Mcpoowl commented 8 years ago

When a Chart ( we tested a BarChart, but I'd imagine it goes the same for all charts ) is surrounded by a groupbox, the chart has incorrect data. In the example below you see the following:

groupboxchart

//edit: It seems it has something to do with the fact that there are multiple barcharts on the page.... Will keep investigating and updating //edit2: It doesn't matter how many charts we have on the page. Even with one chart, in a groupbox it doesn't work. When moving the chart out of the groupbox, it works fine.

//edit3: Although it's still a bug in my opinion, upgrading to 6.3.1. seems to have solved the issue.... Weird

//edit4: Although it doesn't occur as often as it used to in 6.3.1. it DOES happen.. A lot more random though.. //edit 5: After some testing, retrying, retrying and retrying. we came to the following conclusion in the case of multiple bar charts on the same page

Groupbox: The chart is rendered incorrectly about 1 out of 5 times Without groupbox: The chart renders correctly every time

JelteMX commented 8 years ago

I'll see when I have time to debug this issue. Seems strange because the datasets don't change. Thanks for testing, will do the same in 6.3.1

JelteMX commented 8 years ago

Could you test the latest version for me? I have updated the chartjs library, so it might resolve some inconsistencies. This next version of the widget (v3.5.0) will tackle some issues (also regarding animation and responsive heights etc)

Criccle commented 8 years ago

image

Hi Jelte. I went back a bunch of revisions to test it in a similar environment as the original issue and the issue still remains.

JelteMX commented 8 years ago

As in, this issue has always been there? I haven't noticed that. We'll further investigate what is going wrong. Or we'll ask to provide a test-project, sent to community [at] mendix.com, as I have not yet been able to reproduce this issue

JelteMX commented 6 years ago

Due to inactivity, and the fact that I have rewritten the widget for version 4.0.0, I am closing this issue