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
Charts: how to add new type #3246
Comments
also as a bonus questions:
|
Hello 👋 Sorry for the tardy answer. To create a new chart type, you need mutliple parts:
I hope it helps. We unfortunately don't have a comprehensive documentation for that yet. For your bonus questions:
Have a nice day 👋 |
tahnks for the reply:
i assume i could do this by using a model.dispatch() call to specifically create a new chart in the model right ? i believe this could be enough for my use case --> as long as i can then reference the same chart from the formula to perform update / delete operations
is the current structure specific of chartjs library or can i change the underlying charting library for the new custom charts ? |
Unfortunately it won't be so simple, because in our design model.dispatch() cannot be used during the evaluation (because it might trigger infinite loops of dispatch => evaluation => dispatch). You can probably make it work by having your function creating an async callback that will trigger the necessary dispatch. I cannot really help you with that.
ChartJS isn't necessary🙂 Scorecards for example simply draw on a canvas, and were pure HTML in previous versions. |
i am already using dispatch in this use case: #1935 ("EVALUATE_CELLS") -- i assume this won't be any different, right ? is there a command for creating/updating/deleting charts ?
lovely, i will try out D3 based libraries, such as plotly e.g. |
You can have a look at the commands handled by the Note that your original question was on radar charts, and those are parts of our roadmap so we will implement them sometime before October (hopefully). Have a nice day 👋 |
thanks for answering, i will have a look. thats why i believe i might need to go for a custom implementation |
in particular i would like to add a radar chart https://www.chartjs.org/docs/latest/charts/radar.html
which file(s) should be edited for it to happen ? i guess chart_factory.ts
The text was updated successfully, but these errors were encountered: