Open
Description
In creating an example similar to the multi-line chart at the end of the Readme, the settings in class option need to be moved to class pluginOptions to work with updates to chart.js. However, an error occurs that the classes (e.g., class Title) are not serializable.
The correction seems to be the need to add 'General' as the second argument of ChartUtils.cleanClass on line 72 of pychartjs.py under 'def getPluginOptions'
Activity
Iridium-IO commentedon Jan 4, 2024
Which version of chart.js are you using? I'll admit I haven't checked the compatibility in a while.
keithii commentedon Jan 4, 2024
Iridium-IO commentedon Jan 4, 2024
Weird, I last tested it for 3.9.1 and I'm pretty sure it worked fine then. I'll have another look, I might not have checked the multiline :)
keithii commentedon Jan 4, 2024
keithii commentedon Jan 5, 2024
Looks like to fix the legend location, "Bottom" needs to be "bottom" and the error being received back from chart.js regarding invalid scale configuration was due to the [] around _yScales.