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
- how to create a world map using highmaps and disable part of legend?
- JavaScript line and area chart with similar interface as shown
- Highcharts - is possible to have stackLabels only for a subset of the series?
- Highcharts live chart: JSON showing Strings -- not working
- HighCharts using Text in yAxis instead of numbers
- Highcharts pie animation: disable scaling
- Show stackLabels at both top and bottom in highchart
- Split last 2 weeks of data into current and previous week
- How can I scrape Json data from Highcharts (stats.twitchapps.com)
- Restrict Highchart draggable points
- Gauge central value don't show
- column charts first date cut issue
- Highchart pie - array dynamic for dynamic pie
- Highcharts: legendItemClick: make background transparent instead of deleting it
- Highchart, is it possible to have a 'for loop' inside 'series' section?
- stepped color shading in highcharts doughnut chart
- How do I add json data to custom flags in Highstock?
- Map in Highcharts not display the India map?
- highcharts marker: {radius: 10} on individual data points makes certain data points disappear?
- Highcharts:Column Range chart having height of bar same as the height of interval in y Axis
- Convert pandas json for highstock data format in a angularjs controller
- Can we add negative color in highcharts stockchart based on a variable other that data?
- Highcharts export in IE malformed
- highcharts: change color of pie slice on hover
- Dealing with large numbers on yAxis
- Highcharts x-range how to show Data?
- Max 2 series visible in hightcharts.js
- How can I stop HighCharts drawing an extra 'tick' outside the graph area?
- Is it possible to mix columns with a horizontal line on each category?
- Move dial numbers on gauge highchart?