score:0
[array[0]]
is not an array, that looks like console
output not javascript. But [[0]]
or [0]
technically would be. However, since a call to array (array(0)
) generates an array then I think you want data: array(0)
.
Outside shot at data : [array(0)]
if you didn't show the example data correctly. I've never used HighCharts so I don't know what it's expected but I still go with data : array(0)
score:2
You don't tell us what the variable array
equals but since its generated from x.split(",")
, it's elements are going to be strings and not the numeric values Highcharts needs.
So convert it with parseInt
or parseFloat
:
var numericData = [];
for (var i = 0; i < array.length; i++){
numericData.push(parseFloat(array[i]));
}
...
series: [{
name: 'Attempt 1',
data : numericData
},
...
Source: stackoverflow.com
Related Articles
- Displaying array values in Bar chart of HighCharts
- AJAX displaying values from two different functions in a single Highcharts chart instead of two different ones
- Highcharts Column Chart Not Displaying Dynamic Values
- Trellis chart x categories values are not displaying correctly in Highcharts
- dataLabels for bar chart in Highcharts not displaying for null values in 3.0.8
- HighCharts Pie Chart - Displaying multiple series values in Tooltip
- Highcharts not displaying chart correctly/not reading array properly
- Displaying percentage in Y-axis of Highcharts column chart
- Highcharts not displaying data labels for Pie chart in arabic
- Total of values in HighCharts Pie Chart
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Using Highcharts and displaying a message over or on the chart when there is no data
- Highcharts - Issue with negative values when displaying multiple axes
- Hide 0 values in Stacked Column Chart in Highcharts
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- Highcharts stacking bar chart border not displaying on right side
- Displaying additional text for Highcharts Bubble chart
- Highcharts - Area Chart - Stacking with series containing negative and positive values
- To pass dynamic json array to Highcharts Pie Chart
- HighCharts Stock Chart error code 18
- Highcharts JSON, chart not displaying
- HighCharts Solid Gauge Chart not displaying ticks
- Highcharts Graph displaying 0 value continuously : Javascript Array
- passing json values to highcharts from .net code behind
- Column Chart Show datalabel for null values - Highcharts
- Highcharts - draw line chart with summed values but show breakup on hover
- Array split with the help of object categories values of array- Javascript - High Chart
- How to remove decimal values on x-axis of bar chart : Highcharts
- Highcharts - Dealing with small values in Funnel chart
- Highcharts Not displaying function's data values
- highcharter heatmap not following hc_coloraxis when there's negative values
- JS Gauge with growing arc
- 'Round' gradient on highcharts stacked column to appear as a cylinder
- Change the series title in a Highcharts drill down legend
- Use HighCharts several times
- Highcharts not starting at give start time
- HighCharts always throw error #16
- Why HighStocks ticks are calculated unevenly?
- Highcharts- this.category returns undefined
- How to remove blank spaces between xAxis labels?
- How to fix this error Type 'number' has no properties in common with type 'XrangePointOptionsObject'
- Highcharts: Add a custom image button
- HighCharts is slow to load data when building multiple charts
- Issue with Datepicker UI and Highcharts and the dateFormat
- Can I show only different dates on labels in highchart?
- Multiple charts with same data not loading in same page: Highcharts
- highcharts hide zoom reset button, call zoom reset programmatically
- Formatting JSON Data with ColdFusion for HighCharts
- Highcharts treemap data labels overflow
- Highcharts UTC time