16
Views
3
Comments
Solved
How do I pass a specific highcharts JSON value to the new OutsystemsCharts (not V1)
Question
Application Type
Reactive
Service Studio Version
11.54.23 (Build 62741)
Platform Version
11.23.0 (Build 40636)

In Version1 of OutSystemsCharts I was able to add the "reversed: true" JSON attribute for the Y axis to the AdvancedFormat...

But when I converted my chart to the new charts, I could not figure out how to pass this JSON to the chart ... I looked into using the Chart Y axis add on but was hoping for an example of how to pass the above highcharts yaxis attribute to this block ...

Could you PLEASE provide an example?

Thank you!

Solution

Use the SetHighchartsYAxisConfigs client action (add this from the dependency screen if needed).

Solution

First of all THANK YOU for leading me in the right direction ...

I can see that the chart is doing what I want (listing the Y axis values in reverse order )...

But in executing this I am getting a weird error which is either because of WHEN I call that action (I am doing it on the OnReady for the page ...

I had to use a text list ("yparms") because ServiceStudio did not allow me to just have a "text" parameter as a [0] in the PropertyPathList of the SetHighchartsYAxisConfigs action like the version you showed me above ...

OR how I am passing the parameters ...

It turns out one has to pass a text list ...

I will attach the actions I have in the OnReady, the screenshot of the values I am passing and 

the INSPECT console output I am getting ...

Maybe you can tell what is off?



Screen1.jpg
Screen2.jpg
Screen3.jpg
Solution

Use the SetHighchartsYAxisConfigs client action (add this from the dependency screen if needed).

Solution

First of all THANK YOU for leading me in the right direction ...

I can see that the chart is doing what I want (listing the Y axis values in reverse order )...

But in executing this I am getting a weird error which is either because of WHEN I call that action (I am doing it on the OnReady for the page ...

I had to use a text list ("yparms") because ServiceStudio did not allow me to just have a "text" parameter as a [0] in the PropertyPathList of the SetHighchartsYAxisConfigs action like the version you showed me above ...

OR how I am passing the parameters ...

It turns out one has to pass a text list ...

I will attach the actions I have in the OnReady, the screenshot of the values I am passing and 

the INSPECT console output I am getting ...

Maybe you can tell what is off?



Screen1.jpg
Screen2.jpg
Screen3.jpg

@Jeroen Bindels Basically: I think I am not setting up the text list correctly to pass it to the action which seems to "half worked" because I am getting an index error (see pictures above) ...

Im going to keep trying different things but for whatever reason the version of your screen shot and mine seem to be different ...

I am putting the SetHighChartsYAxisConfigs action in the onInitiate for the chart...

THANK YOU again for you help!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.