[OutSystems Charts] [Charts] [Reactive] Shared Tooltip gives error 'k.call is not a function'
Forge component by OutSystems R&D
Application Type
Reactive
Service Studio Version
11.10.13 (Build 39571)
Platform Version
11.9.1 (Build 20359)

We are migrating from traditional web to reactive web app.
Our application has an advanced Highchart with multiple lines.

In the advanced_init we add an HighchartJSON format, with the following configuration for the tooltip.

tooltip: {
   shared: true,
   useHTML: true,
   headerFormat: '<b>{point.key}</b><br />',
   formatter: null
},


For each serie, we add in specific styling and formatting.

In the Traditional web application, this works fine.
In the currenct OutsystemsCharts component this results in the following error:


I cannot find any information about this error.

Anybody an idea why this is happening and how to fix this?

Solution

Hello @Peter Mudde 

There are some difference between Traditional Web charts and Reactive Web, to achieve your goal use the advanced configuration:

"tooltip: {
   formatter: undefined,
   shared: true,
   useHTML: true,
   headerFormat: '<b>{point.key}</b><br />',
}"

Instead of null, change to undefined.

Can you please try and let me know the result?

Thanks,

Bruno Martinho

You saved my day Bruno! Many thanks for your answer

Is this an error that causes the current thread to abort or is this a warning that only affects the UI? 


 If it is an UI warning / js warning that does not result in aborting the current threat you can catch the error with a specific exception handler and then handles it by just linking it to an end node.

Solution

Hello @Peter Mudde 

There are some difference between Traditional Web charts and Reactive Web, to achieve your goal use the advanced configuration:

"tooltip: {
   formatter: undefined,
   shared: true,
   useHTML: true,
   headerFormat: '<b>{point.key}</b><br />',
}"

Instead of null, change to undefined.

Can you please try and let me know the result?

Thanks,

Bruno Martinho

You saved my day Bruno! Many thanks for your answer

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