Kyvis-Labs / ignition-apexcharts-module

The module provides Perspective ApexCharts components
Apache License 2.0
59 stars 12 forks source link

Bar Chart Goals Not working in 1.0.10 #32

Closed willmt10 closed 1 year ago

willmt10 commented 1 year ago

Creating a new bar chart with a data array containing {x: 'Name', y: Value, goals: [{...}]} appears to have stopped working in 1.0.10. You will just see a chart with an x label of "[object Object]". While troubleshooting, I noticed that when rendering the chart, the alphabetical order of the objects in the data array seems to matter (i.e. - it will try to interpret "goals" as "x"). If I rename "x" to "a" and "y" to "b", the bar will show up correctly again, but no matter what I do, I cannot get the goal to appear. Reverting to 1.0.9 fixed the issue. Of course I didn't export a backup of the view before reverting to 1.0.9...that would have been smart! If you need more info to diagnose, let me know. Thanks!

P.S. - Love the module!

traviscox commented 1 year ago

Oops, that is now fixed in 1.0.11:

https://github.com/Kyvis-Labs/ignition-apexcharts-module/releases/tag/1.0.11

willmt10 commented 1 year ago

That did the trick! Thanks for the quick fix.