score:0
i modified my code like that and it works
Highcharts.chart('graphOnDemand',{
//highchart code...
series: [{
name: 'during service internal',
data:dsi,
//code...
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 = [];
}
Source: stackoverflow.com
Related Query
- why foreach doesn't work inside my highchart and when i splet the array it works?
- Can color of data label be different inside and outside of the bar in Highchart
- Why is the legend of my HighChart PieChart behaving irradically, when I update my series data?
- Why does my Highchart look different when I transfer my code from Jsfiddle to my server?
- I had follow someone code samples and try apply to my HighChart program but I can't get it work at all
- Converted PHP code that built an array to JS and now highcharts doesn't work - what did I do wrong?
- Stop Highchart when end of the Array element reached
- Using the source version instead of mimified when import lib with reactjs and npm
- Resolve Conflict When Using Highchart and Highmap together (TypeError: ma is not a function)
- use highchart and highstock on the same page
- Highcharts area fillOpacity do not work when changing the color
- Using Highcharts and displaying a message over or on the chart when there is no data
- How can I do in Highchart to have 1px space between the columns and the y Axis?
- Code works on fiddle but not when I do /show
- Possible to change the height inside the highchart drilldown?
- put the highchart legend to the bottom of the chart and horizontally centered
- Is there a way how to dynamically create a plotline in highchart when the value is lower than previous one?
- Highchart Zoom and X-Axis with String Array for Categories
- How to set series-label to false by default and change the color of series label text in highchart
- Why won't the legend in my highchart show values?
- Highcharts - Series tooltip doesn't work when plotting lines that zigzag on the x axis
- Highcharts - Why is there extra spacing before the first column and after the last column?
- Why do I have the issue 'property assigment expected' when I want to display a chart on my web page using highcharts
- How to do In highchart tooltip display the first 100 characters and then say "See more .."?
- Why does this Highcharts graph only show tooltip for the first and last nodes?
- Why does my highchart only expand horizontally to fill its containing div, and not vertically?
- How to show open, close, high and low in tooltip when the chart type is 'line' in highstocks?
- How do I set the highchart gantt headers as fixed when I scroll vertically
- How to set the highchart and the table horizontally?
- tickInterval doesn't work properly in Highchart and Highstock.
More Query from same tag
- boxplot catergories don't line up Highcharts
- Highcharts js set last month x axis data
- How can I have a responsive graph with highcharts?
- Using HighCharts with vb asp.net
- trying to use highchart xrange to display large number of categories
- Unable to add tooltip for titles in highcharts
- change particular line chart series colour dynamically in highcharts
- HighMaps: Change state name on tooltip with various sets of data
- Using Highcharts.js to create a punch card style graph
- Grouping a stacked bar chart in Highcharts
- Resizing Highchart based on window size
- Highchart click rotate -90
- unable to get highcharts working in Rails
- HighCharts set scrollbar position
- Highcharts tooltipformat for each series?
- Hide stacklabel if zero
- How can I embed the AJAX output of JS in Javascript function
- Highcharts 5 - Radar Charts with circle round the outside
- How to round of bar values in highcharts
- getSelectedPoints array delay problem in HighCharts
- React highchart: Shared tooltip in same and different chart
- Highcharts - Stockchart Zoom position without Navigator
- Highcharts : Under Y Axis we need to display a Image
- AngularJS : link between directive and controller
- Cannot Run HighChart GWT Demo Example - Area Range
- Highcharts cloud issue with data source when duplicating chart
- Converting String to Datetime Rails
- HighCharts Axis Formatting in Chrome
- HighCharts, multiple charts on page call via function
- Issue in semi circular donut chart