[Charts] - Reactive : Cannot read property '2' of null.

Hi Outsys Devs!

I'm asking for help on how to solve this weird problem regarding on charts.

See the attached photos.

When we try to render the data of charts:

Upon checking on the error. It points me to here:

Hi,

Did you try see the error log from inspect console?

Cheers

Miguel Verdasca wrote:

Hi,

Did you try see the error log from inspect console?

Cheers

Yup! That error comes in the console. 

The weird thing is all of our the screen that uses graphs encounter this error.

You are trying to access a element through javascript which is not loaded yet. Check in your page, how many elements from your page you are trying to use in javascript code and check if they are available on your page in browser i.e. somelement.id


Did you try to do some debug in chart? (some information about the chart Highcharts documentation)

Hi Roel,


My guess is that you are filtering the data that binds the chart.

If that's the case, surround the graph with an if widget, and in the expression check if the data is fetched.

By doing this you're forcing the graph to re-render with the new data set.


I hope it helps.