score:1
Accepted answer
Got the answer I was looking for; It was a bug in highcharts, fixed here
score:0
I am not really familiar with Prototype framework, but I did some tests and look at this code:
function getGraphSVG(options) {
var svg;
if (window.charts) {
window.charts.each(function(pair) {
svg = pair.value.getSVG(options);
throw $break;
});
}
return svg;
}
Somehow this each
method returns 2 objects, one being undefined
. So do the simple check:
if (pair.value)
svg = pair.value.getSVG(options);
or in one line
pair.value && ( svg = pair.value.getSVG(options) );
and it should work.
Source: stackoverflow.com
Related Query
- Highcharts nodeName of undefined
- HighCharts is undefined because multiple Html pages in Javascript file
- Highcharts saying undefined is not a function when trying to add a new chart
- Uncaught TypeError: undefined is not a function - Highcharts - MVC
- Highcharts cannot read property 'series' of undefined
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Uncaught TypeError: undefined is not a function when using highcharts
- Highcharts - Global configuration with common code and unique data & Headings
- Uncaught TypeError: Cannot read property 'chart' of undefined in highcharts
- highcharts-more + requirejs, Highcharts undefined
- HighCharts Stock Chart error code 18
- highcharts change rendered image source on click
- highcharts heatmap Uncaught TypeError: Cannot read property 'prototype' of undefined
- How do i add mouse wheel code in Angular2 highcharts in typescript
- how to display 2 same highcharts without duplicate the code
- Use of DotNet HighCharts dll to make charts in code behind
- How to edit tooltip in Highcharts C# code
- what means ${demo.css} in example files of highcharts ? That piece of code seems to be literal
- Using Highcharts formatter causes Cannot read property 'length' of undefined
- passing json values to highcharts from .net code behind
- how to use highcharts tooltip formatter in python code
- passing formatting JavaScript code to HighCharts with JSON
- HighCharts onclick this.point.name is undefined
- Highcharts undefined in dynamic highcharts
- highcharts canvas-tools: Cannot read property 'prototype' of undefined
- Highcharts :Cannot read property 'parentGroup' of undefined with AngularJS
- Cannot read property 'type' of undefined highcharts highstock
- Highcharts display label for pie chart using html table as data source
- Simple, Open source PHP wrapper for Highcharts library
- Highcharts addPoint: Unable to get value of the property 'addPoint': object is null or undefined
More Query from same tag
- programatically change the color of a highcharts spline series?
- Highchart - alternateGridColor, plot bands issue
- Adding options to the Highcharts on button click
- I have no direct access to code but wonder if I can append my chart data points to a log file
- How to bind to Highcharts constructor/listen to CustomEvents from Vue component
- Highcharts Time Data With Irregular Intervals In Wrong Order
- How to make multiple Y-axis with incoming series of data from database using Highcharts
- Highcharts - Y axis always visible (even after horizontal scrolling)
- d.select is not a function
- Highcharts modify stacklabels dynamically
- Change Font Size Jquery Hightcharts
- Spline chart rounded edges
- Error multiple highcharts while loading in carousel
- Sending javascript function with JSON is possible?
- How can I move legend in Highcharts?
- Highcharts.js cannot see graph line
- How to set brightness effects on specific columns on the stacked column/bar chart when using Highcharts?
- Highstock data points pixel spacing
- Highcharts pie chart - offset a single slice on legend click
- highcharts rescale yaxis aftr addSeries
- Highchart Duplicate X-Axis and Y-Axis Labels
- Highcharts displaying Date axis from milliseconds
- Having some trouble loading highcharts using backbone and rails
- Django Chartkick library option issues
- adding a simple feature to a highcharts.js time series plot
- Wordpress plugin : Yop Poll with pie chart
- How to get rid of 0 in X-axis
- Sending a value from html to controller in angularjs. Issue with scope?
- Combining a horizontal bar graph and stock chart (with navigator) HighCharts
- Rendering pie chart using xtype and Ext.create