Skip to content

Class is not JSON Serializable #3

@keithii

Description

@keithii

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions