Stack Undefined Error in Highcharts Version 2.1.2

25 sec read

Using Highcharts library in application provides best way of manipulating data in terms of various charts. In my rails application, I am using highcharts 2.1.2.
While upgrading my highcharts to version 2.1.2, I faced an error stating “Stack undefined error” when chart has no data to display. Please see the error screenshot as shown below.

Initally line number 8525 has the following code:
[source language=”javascript”]
if (stacking && series.visible && stack[xValue]) {
………..
}
[/source]
Then,I changed the line no 8525 in highcharts.src.js as
[source language=”javascript”]
if (stacking && series.visible && stack && stack[xValue]) {
………..
}
[/source]
Changing to above code resolved Stack undefined error. Still now I don’t find any side effect with my code change.
Please let me know your comments.

Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *