-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Title "Undefined" when creating a linechart with mesa.visualization.modules.ChartModules #64
Comments
Thank you for reporting. I confirm this is a bug in the frontend, where the "Label" actually has to be lower case "label" in order for the label to show up. According to https://www.chartjs.org/docs/3.6.2/charts/line.html, it has to be lower case. But currently in the code, it is hardcoded to expect "Label": https://github.com/projectmesa/mesa-viz-tornado/blob/77c80052d471cc4c830192b5a63824b8c79d69ea/mesa_viz_tornado/modules/ChartVisualization.py#L79. This should be a quick fix. |
As with the weak color, it's because the opacity is hardcoded to 0.1: https://github.com/projectmesa/mesa-viz-tornado/blob/77c80052d471cc4c830192b5a63824b8c79d69ea/mesa_viz_tornado/templates/js/ChartModule.js#L23. Anyway, I recommend using the new pure Python frontend in |
With |
I used the following code for creating a line chart with mesa.visualization.modules.ChartModules.
Unfortunately the color is very weak and the tilte is shown as "Undefined".
The text was updated successfully, but these errors were encountered: