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 Query
- Displaying array values in Bar chart of HighCharts
- dataLabels for bar chart in Highcharts not displaying for null values in 3.0.8
- Highcharts stacking bar chart border not displaying on right side
- AJAX displaying values from two different functions in a single Highcharts chart instead of two different ones
- How to remove decimal values on x-axis of bar chart : Highcharts
- Highcharts Column Chart Not Displaying Dynamic Values
- HighCharts line series not displaying properly with stacked bar combo chart
- Displaying count on bar and percentage on Y-axis of cloumn chart using Highcharts
- Trellis chart x categories values are not displaying correctly in Highcharts
- HighCharts Pie Chart - Displaying multiple series values in Tooltip
- Highcharts stacked bar chart - how to get the stacks values
- Highcharts not displaying chart correctly/not reading array properly
- stacked bar chart shows hanging zeros when all values are 0 highcharts
- How do I rotate my HighCharts bar chart so its vertical, not horizontal?
- dealing with highcharts bar chart with really long category names
- Displaying percentage in Y-axis of Highcharts column chart
- Highcharts percentage of total for simple bar chart
- HighCharts - Y-Axis padding in a bar chart
- Highcharts not displaying data labels for Pie chart in arabic
- highcharts jquery dynamic change chart type column to bar
- 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 stacked bar chart hide data labels not to overlap
- Highcharts Bar Chart - How to set the minimum bar width/length
- Shadow in Highcharts bar chart
- Highcharts - Issue with negative values when displaying multiple axes
- Grouping a stacked bar chart in Highcharts
- 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?
More Query from same tag
- Highcharts bubble chart with date?
- Input field in highcharts graphic
- Highchart changes chart width when user hides the graph lines
- How to set vertical bar chart in Hightcharts | I passed as component. How to send as props
- align the plot in center of the grid in highchart
- How can I get a chart only with legends using highcharts
- How can you speed up the Highcharts network graph initial animation?
- Highcharts overwrite default DataLabel
- How to show the value in top of each column bar | Hightcharts | Vue-chartkick | Cube Js
- Highcharts Pie chart: how to hide the legend for all but the three highest values
- Hover on areas not on point in Highchart-polygon
- Highcharts: Heatmap using CSV
- How to achieve the best possible performance with mutable data and real-time charts in React?
- Highcharts working only in FireFox browser
- plotBands Hide and Show parameters do not work in Highcharts
- Displaying highchart and using php to get data for the chart from mysql database
- rCharts - Data label for Highcharts bubble chart
- Highcharts data grouping method for objects
- Highcharts - per customer- even small date/range increments must be visible
- How to center line in ggplot2::geom_step() similar to highcharter
- is Dumbell.js supporting with previous version of highchart?
- Render Highcharts data table to separate container as chart via drawing API?
- Sort series per category
- how to change the position of HighCharts.js scatterplot marker position
- Highcharts creating too many values in float
- Highcharts issue in Data spline overlap
- How can I show vertical line in highchart as shown in below image?
- How to resize card content to its size in material ui?
- Highchart's gauge with gradient plotband
- Trouble showing high-maps and high-charts on same page?