score:1
If you want to specify x coordinate for every point, use the following format of "data" :
An array of arrays with two values Example ... data: [[5, 2], [6, 3], [8, 2]]
In your case, instead of doing
data:[1,2,3,4,5].map(function(d,i) { return {x:new Date(2013,i,1),y:d*d })
do this
data:[1,2,3,4,5].map(function(d,i) { return [new Date(2013,i,1),d*d ]; })
Fiddle : http://jsfiddle.net/bU2Ej/1/
Source: stackoverflow.com
Related Query
- Cannot read property 'cum' of undefined -- when creating a stacked area chart with xAxis.type=datetime
- Cannot read property 'forExport' of undefined when leaving the page with Hicharts chart
- I'm getting this error when fly over the chart: TypeError: Cannot read property 'lineWidth' of undefined
- Changing chart type give: Uncaught TypeError: Cannot read property 'length' of undefined Highcharts
- Highcharts-ng stock chart gives "TypeError: Cannot read property 'hoverSeries' of undefined" when loading data asynchronously
- highcharts-angular : Cannot read property 'chart' of undefined
- Uncaught TypeError: Cannot read property 'mouseIsDown' of undefined
- Highcharts: Cannot read property 'parts/Globals.js' of undefined
- Highcharts cannot read property 'series' of undefined
- ERROR TypeError: Cannot read property '0' of undefined in angular-highcharts
- Cannot read property 'addEvent' of undefined
- Uncaught TypeError: Cannot read property 'chart' of undefined in highcharts
- highcharts heatmap Uncaught TypeError: Cannot read property 'prototype' of undefined
- Highcharts: Cannot read property 'chart' of undefined
- Using Highcharts formatter causes Cannot read property 'length' of undefined
- highcharts canvas-tools: Cannot read property 'prototype' of undefined
- Cannot read property 'type' of undefined highcharts highstock
- highcharts-ng: Cannot read property 'setExtremes' of undefined
- Uncaught TypeError: Cannot read property 'addPoint' of undefined ( Highstock live data)
- Get TypeError: Cannot read properties of undefined (reading 'forEach') when pass a params
- Uncaught TypeError: Cannot read property 'xAxis' of undefined Highcharts
- highcharts: TypeError: Cannot read property '0' of undefined
- Uncaught TypeError: Cannot read property '0' of undefined javascript error and with highcharts
- Cannot read property 'info' of undefined
- Bubble chart :Cannot read property 'parts/Globals.js' of undefined
- Highcharts/Highmaps Uncaught TypeError: Cannot read property '0' of undefined error
- Highcharts 5: TypeError: Cannot read property 'chart' of undefined at e.Chart.reflow
- Highcharts Javascript - Synchronize Chart and Table not working - Cant read property cell of undefined
- Llive data dynamic update on Highstock chart ( Cannot read property 'info' of undefined) error?
- Uncaught TypeError: Cannot read property 'timestamp' of undefined
More Query from same tag
- Yii and ActiveRecord Group by Count
- convert list<int> to object
- Highchart - hide name in legend if no data
- Highcharts blank chart with x and y axis
- When using canvg to convert Highchart SVG into PNG, all text appears twice - how to solve?
- Highcharts Default Colors Are Not Same at Pie and Column?
- Retrieve first and last values on HighChart
- Highcharts: showing tooltip with calculated value at Crosshair
- Legend for x-axis categories in highcharts
- Angular4 with highcharts can't use world.js
- Highcharts: show stack total in shared tooltip, via footerFormat property
- GWT - Adding a button to HighCharts
- How should I parse dateTime for Highcharts?
- Group specific points to categories in Highchart
- HighCharts: pie slices need background images
- Plot band not limited to xAxis, draws for the whole graph
- Generic HighCharts (Javascript\Java)
- Highcharts numericSymbols when rendered server-side with Phantomjs
- How to get index of clicked point in scatter plot
- Highcharts: grouped columns with percentages
- Highcharts yAxis title click
- How to get categories from a database for highcharts using codeigniter
- How to get responce of ajax data array in Highchart
- Highcharts not rendering
- Turning HighChart into a stacked Bar Graph with Title
- How to add a vertical plot line in multiple line series and show the tooltip on Plot line in highchart
- Indicate an important date on a chart with either a guideline (with text) or an opened callout
- HIghchart Area Chart display NULL value in a wrong way
- Formatting Highchart's Date in Tooltip Causes Values to Change
- Set custom image from bottom to top inside bars of bar graph (using highcharts)?