score:0
there must be something wrong with your values
array, caused by the for loop or your string.data
, here is a working example using a var for the series.data
and your values arrary:
var values= [11,9,9,8,7,7,5,4,4,2];
$('#container').highcharts({
series: [{
data: values
}]
});
score:0
create an array type and push the values:
var values = new array();
for (var 1= 0; i < string.data.length; i++)
{
values.push([string.data[i].value]);
}
it is important that you use the push([]) in order to assign it to the data tipe in highcharts.
Source: stackoverflow.com
Related Query
- highcharts add series from array
- How to add Series data in Highcharts from MVC
- Pass array from js for loop to highcharts series data
- Extract data series from a JSON array for a Highcharts chart with 2 y-axis
- Highcharts add several series with PHP array
- Add Categories and Series dynamically from JSON in HighCharts
- highcharts with dynamically adding multiple series from JavaScript array name value pair
- Highcharts Scatter plot - Add series from database as a different color
- Highcharts : Display static Y axis labels from array when series data is null , else auto generated label
- Highcharts displays series names but missing data points from json source
- HighCharts Hide Series Name from the Legend
- Proper way to remove all series data from a highcharts chart?
- How can I hide series from a HighCharts legend?
- Add additional data to a Highcharts series for use in formatters
- How can I hide a series from initially being displayed in Highcharts
- Add series total to legend in Highcharts
- adding series to highcharts from JSON
- Highcharts series data array
- Add a gap between the second and third series in a Highcharts column plot with four series displayed
- Use an array of objects for series data in Highcharts
- Highlighting Highcharts series from a remote element
- Highcharts add series dynamically
- Loading Highcharts series from XML using jQuery
- How can I delete all of the points from a highcharts series
- Add dynamic data to line chart from mysql database with highcharts
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts add tooltip that has a small arrow pointing toward the series
- How to populate a Highcharts axis with string formatted data from a PHP array
- Dynamically add data to series in Highcharts
- How do I hide a Highcharts series from the chart, but always show it in the tooltip?
More Query from same tag
- PHP array reformat to highchart json ob
- Propagate click from tooltip to point
- Highcharts: some columns are missing when a bar chart changes to a column chart
- High and low line on candlestick chart
- HighCharts : Shared Tooltip with shared Data LABELS (in Series)
- Highcharts - Annotations outside plot area (top/bottom)- doesn't show up
- Manually Triggering drillup event, highcharts
- Add color gradient color on bar HIghchart
- Highcharts pie chart size doesn't fill smaller containers even with dataLabels disabled
- highcharts shows exception "c is undefined" for pie chart
- Rendering Highcharts using Angular js Directives
- Add textbox to chart and draw strings
- Add more charts in angular highcharts
- HighCharts exporting filename
- bar chart with vertical scrollbar in (highstock/highchart)
- Make Highcharts pick a smart y-axis min
- SVG as labels in HighChart stacked column chart
- how to remove of y -axis label in chart?
- Is it possible to have an adjustable line in highcharts stack area graph?
- Strange problem with highcharts heatmap - incorrect Y-axis scaling
- Programmatically change a chart title in highcharts
- Highcharts: X axis, MySQL datetime
- Using Highmaps for Angular after the component is initialized
- How to setting to draw a line connect the stack bar
- HIghchart Treemap - Add double click event on legend click
- Java Client for HighChart Export server REST service
- Highcharts won't fit in Bootstrap 3 modal body
- Highcharts with Public Google Spreadsheet does not work
- Change Color of Highmap Areas based on database values
- What is the maximum number of y-axis that you can add to a highcharts chart?