You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Use a Java model of Java model of Chart.js's configuration, like [XDEV's chartjs-java-model](https://github.com/xdev-software/chartjs-java-model).<br/>
41
40
Otherwise you have to write the JSON yourself.
42
41
2. Optionally derive classes for your charts (from e.g. ``ChartContainer``) that also handle the data-to-JSON conversion logic.<br/>
43
42
Therefore you can encapsulate the components properly, for example like this: ``FetchFromBackendService.class → Model for chart → ChartContainer.class → Build JSON and show chart``
44
43
45
-
How the code could look:
44
+
<details><summary>Here is a example how the code could look (click to expand)</summary>
45
+
46
46
1. Define a custom chart or use the ``showChart``-method directly.<br/>Example:
0 commit comments