score:1
The variable dsi
is local to the oneTowerChart
function and as such, is out of scope when you try to access it later. One way you can fix it is to make dsi
a global variable by moving its definition outside of your function
var dsi = [];
function oneTowerChart(datas) {
// your code, without var dsi = [];
}
score:0
i modified my code like that and it works
Highcharts.chart('graphOnDemand',{
//highchart code...
series: [{
name: 'during service internal',
data:dsi,
//code...
Source: stackoverflow.com
Related Articles
- why foreach doesn't work inside my highchart and when i splet the array it works?
- Code works on fiddle but not when I do /show
- javascript array object doesn't work with Hicharts when defined through jinja (Django 2.0)
- React Highstock Won't Work But Highchart works
- Why does my Highchart look different when I transfer my code from Jsfiddle to my server?
- Bars inside highchart is overlapping when exported to PDF
- I had follow someone code samples and try apply to my HighChart program but I can't get it work at all
- Datalables alignment doesnt work in Highchart Timeline
- scrollable highchart works in JS but has issues when running through Angular HighCharts?
- Converted PHP code that built an array to JS and now highcharts doesn't work - what did I do wrong?
- x-axis, y-axis lines does not appear, when I include 3D chart library of HighChart in my code
- Stop Highchart when end of the Array element reached
- Highstocks tooltip doesnt work when chart is small?
- Highchart spline Cut Off when reach to maximum scale value. How can it fixed?. I have attached may sample code on body
- Highcharts code with same set of code/data works in PHP but does not work in JSfiddle
- Highchart.js pass array doesnt work
- when is a highchart completely loaded?
- Resolve Conflict When Using Highchart and Highmap together (TypeError: ma is not a function)
- Highcharts area fillOpacity do not work when changing the color
- Call an angular component method when we click on highchart series
- Can color of data label be different inside and outside of the bar in Highchart
- highchart dateTimeLabelFormats don't work
- I need Highchart watermark image when i download highchart
- How to get Highchart Gauge to work in Sencha Touch 2
- Possible to change the height inside the highchart drilldown?
- Highchart not resized when hidden
- JavaScript code inside TypeScript file .ts not working
- Highcharts Y-Axis skipped labels when dealing with large array
- Highchart ticks start point change when categories names are set
- using angular directive to draw highchart pie chart but when i am using it in success function it is not working
- How to force HighChart xAxis units to show custom format in all zoom levels?
- Not able to draw a Pie Chart with external csv file in HighCharts
- Highchart is not working on Google chrome
- highchart with dual axis breakpoint and drag point
- HighMaps Zoom add bright instead of do zoom properly
- highcharts: how to update marker fillcolor using angularjs
- Use HighCharts several times
- Highchart Date time interval in x-Axis
- angular2-highcharts click on point, open user input, display user input in annotation
- How to modify highcharts legend item click event?
- Print Highstock with custom html
- How to get data in Highstock from PHP MySQL data on AJAX call
- Highstock area type comparison chart needs to display area fully
- Highcharts dynamically move dataLabel if it doesnt fit
- change parameter with {{index+1}} angularjs
- Swap categories and labels highcharts (bar plots)
- Highcharts javascript
- HighChart: Donut Pie with URL
- highcharts xaxis datetime label with minor tick
- Highcharts X-Axis Alignment