ChartJS Multi-Axis

Has anyone implemented a multi-axis Line Graph using the ChartJS widget? It seems that the Line graph option is only for a single Y Axis with the latest release of the widget.
1 answers

Looking at the documentation and an example, the customization seems rather simple:

  1. To the set entity, add a yAxisID attribute, which is filled in the microflow that generates your chart;
  2. To the LineChart's XML, add a property through which this attribute is selected;
  3. To the LineChart's JS, make sure the attribute's value is read (set.dataset.get), add an JS object attribute where the _set object is created (around lines 81-91) and fill the JS attribute value with the Mx attribute value.


Good exercise to learn some widget customization!