170
Views
6
Comments
[Charts] - Reactive : Cannot read property '2' of null.
Question

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:

2025-11-19 06-14-01
Miguel Verdasca
Champion

Hi,

Did you try see the error log from inspect console?

Cheers

2019-08-15 15-11-20
Roel Bernardo

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.

2025-11-19 06-14-01
Miguel Verdasca
Champion

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)

2023-07-07 09-12-38
Diogo Olival

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.


2018-03-26 21-02-10
Kit Lam

I had this same problem with my reactive module today. Changing the default theme to 'OutSystemsUI' solved this issue. 

UserImage.jpg
Brindha Jayaseelan

Hi @Roel Bernado,

I also faced the same issue. But I rectified using some points.

  1. This issue is because the "color" property is not having value it will fetch the RGB value instead of the RGB value, and 0 will be passed so it will throw this error.
  2. For this, you have to write the CSS for the class name ".chart-color" which is to pass the color as an RGB value.
  3. Another possibility is your theme will not have the Outsystems UI theme. if you are using the custom base theme then your custom base theme will not include the OutSystems UI theme.


Regards,

Brindha J

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