score:0
Only what you need is use 4 series, each of them with single data point.
series: [{
name: 'Year 1800',
data: [107]
}, {
name: 'Year 1900',
data: [138]
}, {
name: 'Year 2008',
data: [973]
},{
name: 'Year 20098',
data: [973]
}]
Example: http://jsfiddle.net/y9wzggc4/
score:1
As I understand from your code here, you wish to specify two categories with names 1 and 2 but you are not specifying any data for second category, So the only category that is showing on your chart is 1. Your data array for each series must have elements per each category. For example if you have two category you should consider having two data elements in each series. In this line data: [data.score] you are just specifying one element in data array. Your code should be something like this: (make it dynamic per your need)
$.each(results, function(i, data){
categories.push(data.name);
detailchart.addSeries({
name: data.name,
data: [data.score, 40], //40 is some data for your second category.
});
});
Source: stackoverflow.com
Related Query
- Highcharts X-axis labels on the side
- Highcharts reflow() after moving Y Axis to the opposite side
- Highcharts : How do i align data labels above the axis in column chart?
- HighCharts - Angular, how to get y axis labels on the vertical lines drawn from x axis
- How to fix formatting of axis labels in Highcharts when surrounding the contents with div?
- HighCharts - dynamic graph & no tick mark on the right hand side dual axis
- HighCharts - dynamic graph & no tick mark on the right hand side dual axis
- how to set the interval of points on Y - Axis highcharts
- How to hide labels in the highcharts in the pie
- How replicate the value of Y Axis on both sides of the axis in Highcharts
- Highcharts : Display the labels (min, max, median etc.) in boxplot
- Highcharts - Long multi-line y axis labels causing following label to be removed
- Highcharts - with datetime axis labels overlap
- Why are the labels for my opposite yaxis in Highcharts not showing up?
- Align y axis tick "outside" on highstock, so they are the same as on highcharts
- Getting the X Axis value in HighCharts
- In highcharts, is it possible get the exact position of x axis labels for overlap detection purpose?
- How do I style the series labels on a Highcharts pie chart?
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts - Bar - Setting the X axis width and the chart area width to be constant
- rendering Highcharts datatimes on the x axis at regular intervals
- Is there a way to move data labels to the side of a stacked column in HighCharts?
- Highcharts : How to fix labels to the top when xAxis rotation is 90°?
- Highcharts - Multiple Axis Graph not displaying labels
- highcharts data labels overlaps the plotlines value
- Show some specefic number on gauge highcharts axis labels
- How to adjust line-height/ellipses in Highcharts axis labels
- Highcharts -- Can't apply style to x axis labels
- How to position labels for plotbands on y axis in Highcharts
- Highcharts Gantt (JS) - Remove the day in x axis
More Query from same tag
- highcharts error 17 when creating a heatmap
- Error 17 in highcharts : Highcharts-more js file is not loaded
- How to get data from multiple tables of MySQL DB and manuplate it using PHP to display graphs?
- Charts don't fit into <div> (highcharts, MVC) Bug?
- highstock 1.3 / highcharts 3.0 beta navigator lagging
- Highcharts - on zoom start Y axis from 0
- HighCharts axis flip on export
- highcharts, bar chart legend with verticalAlign top not working
- Highcharts - change group padding and column width on category axis
- zoom a Highcharts chart programmatically
- I want to make the spline chart from highcharts.com smaller in size
- Highcharts Populating Realtime Data with Time
- Change legend symbol in Column Chart in highcharts
- Incorrect Highcharts colorAxis range
- Is there any way to merge this two x-axis in one axis?
- Highcharts heatmap does not render correct colours according to specified colour stops
- yAxis formatter sometimes receives 0 for this.value
- Series overlap in Highcharts
- How to adjust the position of the first category name on the xAxis?
- Highcharts width flow out of parent div
- Customizing X axis Highcharts, adding custom markers under the X axis
- How to display stack total just below the stack columns and not inside?
- Is it possible to position the zoom buttons in highcharts/highstock?
- Highcharts not displaying chart from csv file
- How to force HighChart xAxis units to show custom format in all zoom levels?
- Highchart heatmap for days in a month from 8:00 to 17:00
- Highcharts: Change cursor of plot area
- VU meter: datalabel does not show in its position
- How to set HighCharts x-axis value
- drilldown chart in Highcharts changes back button