I stand corrected.
Apparently if HighchartsJSON is defined, this component will do this for you, no need to murk around with javascript.
So to define a second axis use the AdvancedFormat_Init action and set it to the AdvancedFormat parameter of the chart widget:
AdvancedFormat_Init(DataPointFormats:,DataSeriesFormats:dataSeriesFormatList,XAxisJSON:,YAxisJSON:,HighchartsJSON:highChartsJSON)
Define the dataSeriesFormat for each of the series:
dataSeriesFormat.AdvancedDataSeriesFormat.DataSeriesName = "First series name"
dataSeriesFormat.AdvancedDataSeriesFormat.DataSeriesJSON = "yAxis: 0"
And the second series:
dataSeriesFormat.AdvancedDataSeriesFormat.DataSeriesName = "Second series name"
dataSeriesFormat.AdvancedDataSeriesFormat.DataSeriesJSON = "yAxis: 1"
Append those two records to the
dataSeriesFormatList
Finally, define the two yAxis formats on the highChartsJSON:
highChartsJSON = "yAxis: [{ title: {text: 'First series unit'}, min: 0 }, { title: {text: 'Second series unit'}, opposite: true, min: 0 }]"
Kudos André Vieira.
Kind Regards,
João Grazina
This post might be helpful for me implement stacked column chart. Can you please clarify below queries of mine
1. How can I define highchartsJson in Outsystems?
2. Where and how can I define dataseries format?
3. Where and how can I define yAxis formats on the highChartsJSON?
Can you please assist on this so that I can go further. If possible share any exmaple for implementing stacked column chart..