75
Views
4
Comments
Solved
[OutSystems Charts] Bug in SetHighchartsChartConfigs - Not applying custom values
outsystems-charts
Reactive icon
Forge asset by OutSystems
Application Type
Reactive
Platform Version
11.54.6 (Build 62311)

Hello,

I am customizing a chart and intended to use the AdvancedFormat from Highcharts, but use the new SetHighchartsChartConfigs function. However, I noticed that my configurations are not being applied to the chart because the OutSystems settings are being prioritized.

I managed to get it to work with a work-around, but I believe this might be a bug in OutSystems and i don´t think this is a good way to keep it.
Has anyone encountered this issue before?


Thank you in advance,
João Reis

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @João Reis 

First of all, thank you for sharing all the information needed.

After a quick analysis, I can confirm this is indeed an issue with the underlying method used by SetHighchartsChartConfigs to merge the configuration objects so we created a ticket to fix this in the next release under code (for future reference in the release notes).

Just to give you more context, the SetHighchartsChartConfigs client action has error handling outputs that should be used for validation and in fact, the error is being thrown:


The workaround I suggest is exactly what you've done, ie, using the Js API.

Cheers,
GM


2022-11-12 11-28-30
Gonçalo Martins
Staff

Hello @João Reis 

I have a suspicion about what is going on but I would like to ask you to share an oml with the exact use case so I can verify it.

Cheers,
GM

2024-02-04 17-47-27
João Reis

Hello Gonçalo,

I am attaching the .oml file.

Thank you in advance for your help.

Best regards,
João Reis

Graph.oml
2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @João Reis 

First of all, thank you for sharing all the information needed.

After a quick analysis, I can confirm this is indeed an issue with the underlying method used by SetHighchartsChartConfigs to merge the configuration objects so we created a ticket to fix this in the next release under code (for future reference in the release notes).

Just to give you more context, the SetHighchartsChartConfigs client action has error handling outputs that should be used for validation and in fact, the error is being thrown:


The workaround I suggest is exactly what you've done, ie, using the Js API.

Cheers,
GM


2024-02-04 17-47-27
João Reis

Hello Gonçalo,

Thank you for your clarification and help with this topic.

Cheers,
João Reis

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