score:0
Accepted answer
first of all, as said in the comment:
success: function (chart) {
...
var height = chart.xaxis[0].height;
}
you are trying to get for some unknown reason height of xaxis from the chart. meanwhile you chart
variable is referring to the data from ajax call. i hope that's clear, so remove that line or change to:
success: function (chart) {
var mychart = $('#container').highcharts();
var dataarr = new array();
var height = mychart.xaxis[0].height;
}
second thing, that option:
data: 'chartdata',
is wrong, there should be an empty array, since highcharts requires array for data, not some string:
data: [],
now, after fixing these bugs, you should go to this demo and create the same data format. that's example for required format for highcharts.
more about series.data
can be found in api reference - you need to read this.
Source: stackoverflow.com
Related Query
- How to format Highcharts columnRange to get json data for temperature Min and Max
- How do I get DateTime from mysql and set it to json format ready for highcharts
- How to format my json data for stack column chart in HighCharts
- How to create data in Json format for highcharts
- Highcharts - How to get Max and Min value between 2 dates
- how to create proper json data format from mysql for highcharts
- *Highcharts* How to get the min and max value of the zoom box
- How to format datetime for (x,y) pair data for Highcharts
- How do I force highcharts to pay attention to min and max on my secondary axis?
- Highstock, True way of Get count of shown points after setExtreme (Zooming) - WITHOUT counting all data with MIN and MAX
- Highcharts - how to get consistent mouseover and mouseout events for columns?
- How to get chart min and max values after Drag zooming in highChart chart?
- How to get the correct the date-time format for highcharts in R (using rcharts)
- Highcharts how to make a set number of colors for pie chart data and drilldown data
- How to get data for series and categories in highcharts-convert.js from mysql
- How to set min and max values for an axis?
- Highchart datetime graph x-axis unable to get data on plot when min and max is on
- Highcharts polar spider with Min and Max for each y-axis
- Setting min and max for chart in Highcharts library error
- how to make chart real time with 2 line and get data from php with highcharts
- How to format Highcharts to get specific json data?
- How to change JSON Format For load data to Highchart
- YQL finance data JSON format for use with highcharts
- Formatting PHP/MySQL data in correct JSON format for HighCharts
- Highcharts JSON formatting - splitting up and preprocessing data for charts?
- Highcharts pie/bar combo. How to load json and how are the data series expressed
- How to build a JSON data array for Highcharts display - switching values for xAxis/columns
- Incorrect data point value in highcharts navigator series when extending min and max date
- Highcharts - Get and plot data with MySQLi + JSON (step by step)
- JSON format for Highcharts line and bar graph
More Query from same tag
- Network diagram meets Sankey chart
- How to access methods of wrapper Highcharts vue?
- Tooltip help in HighCharts Column chart
- Drilldown on label in spiderweb graph
- Highcharts title text with two dynamic dates
- Highchart - Activity guage display lable and lagends
- Draw dynamic rectangle based on date co-ordinates
- React Highcharts with export functionality with 'react-highcharts'
- Adding marker points for highcharts map
- how to show labels in right side in chart?
- How to get the series' x-axis values into the lower part of the tooltip in Highcharts?
- High Charts : Equal spacing for X Axis for unequal interval
- Change in highcharts version breaks animation of elements
- How to get time interval of candlestick in candlestick chart in highchart
- X-axis category name from string in series list
- Charts don't fit into <div> (highcharts, MVC) Bug?
- How to identify and format numbers with javascript
- ViewEncapsulation creating problems while styling highcharts
- shift y-axis from dumbell chart within the line
- Higstock add all series dynamically
- Highcharts: Show x axis for missing data but ignoring certain area
- Repeating Javascript Code
- Flexdashboards and Leaflet and marker click with Highcharts
- Add Annotations to time series with highcharter
- Change the font color of drillUpButton text
- Highcharts : style (css)
- Highcharts - Color coded legend for solid gauge
- Click event in treemap in highcharts
- Highcharts treemap with colouraxis updating styles
- set the background color for column group graphs in highcharts