score:3
Example: http://jsfiddle.net/1ktmb2d2/1/
Series format:
series: [{
name: 'Happy',
id: 'Happy',
stack: 'Corolla',
color: 'blue',
data: [20],
pointPlacement: -0.25
}, {
id: 'Unhappy',
name: 'Unhappy',
stack: 'Corolla',
color: 'black',
data: [10],
pointPlacement: -0.25
}, {
linkedTo: 'Happy',
stack: 'Prius',
color: 'blue',
data: [30],
pointPlacement: 0.25
}, {
linkedTo: 'Unhappy',
stack: 'Prius',
data: [30],
color: 'black',
pointPlacement: 0.25
}, {
linkedTo: 'Happy',
stack: 'Civic',
color: 'blue',
data: [ [1,30] ],
pointPlacement: -0.25
}, {
linkedTo: 'Unhappy',
stack: 'Civic',
data: [ [1, 30] ],
color: 'black',
pointPlacement: -0.25
}, {
linkedTo: 'Happy',
stack: 'Accord',
color: 'blue',
data: [ [1, 30] ],
pointPlacement: 0.25
}, {
linkedTo: 'Unhappy',
stack: 'Accord',
data: [ [1, 30] ],
color: 'black',
pointPlacement: 0.25
}]
There is bug in Highcharts for stackedLabels. Workaround will be to use simple label formatter: http://jsfiddle.net/1ktmb2d2/2/
Note: It may be possible to use a slightly different format for series and get the same result, I guess.
Note2: I really don't like plnkr, o I used jsFiddle. Also, looks like Highcharts-ng doesn't support stackLabels.formatter
: http://plnkr.co/edit/7bjXpBXppv1UXf0YzGMZ?p=preview
score:-1
I'm facing a similar problem, and here's what I did to solve it.
http://jsfiddle.net/ldong/h2jysu9f/
Basically, I pulled http://blacklabel.github.io/grouped_categories/grouped-categories.js and customized the series
, x
and y
axis to the format that this highchart plugin uses.
score:0
Just make the below given changes to https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/demo/column-stacked-and-grouped/ and get a grouped stacked bar chart in highchart.
chart: {
type: 'bar'
},
plotOptions: {
bar: {
stacking: 'normal'
}
}
Source: stackoverflow.com
Related Query
- Grouping a stacked bar chart in Highcharts
- Highcharts stacked bar chart hide data labels not to overlap
- R highcharts multiple stacked bar chart
- Adding round corners to Highcharts Bar Chart with stacked bars when value is 0
- Highcharts 4.0.3 stacked bar chart bug adds â-
- Highcharts vertical stacked bar chart with negative values, is it possible?
- Vertical line within bars of a stacked bar chart using recharts or highcharts
- Highcharts stacked bar chart for multiple bars
- HighCharts line series not displaying properly with stacked bar combo chart
- Highcharts single horizontal stacked bar chart with data names (labels) and %-ages always shown and data numbers and series name shown on mousehover
- How can I prepare a Group Stacked Bar Chart in Highcharts using multiple and different types of data?
- Highcharts stacked bar chart Likert scale centering
- Highcharts stacked bar chart comes empty
- Highcharts - Stacked bar chart - Remove axis
- How to make highcharts stacked bar chart start from a specific date
- How to plot stacked bar chart in highcharts with dynamic data?
- Highcharts stacked bar chart - how to get the stacks values
- Highcharts Stacked bar chart with db value (Dynamic Data)
- 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
- Highcharts percentage of total for simple bar chart
- HighCharts - Y-Axis padding in a bar chart
- highcharts jquery dynamic change chart type column to bar
- Highcharts Bar Chart - How to set the minimum bar width/length
- Shadow in Highcharts bar chart
- Highcharts stacked bar graph as timeline
- Hide 0 values in Stacked Column Chart in Highcharts
- Highcharts tootip for stacked bar charts
- Highcharts stacking bar chart border not displaying on right side
More Query from same tag
- Highcharts scatter set markers
- Highcharts plotLine drag xAxis event
- Extending Highchart's show() and hide() functions
- Drawing mysql data with highcharts
- Highcharts add left column to grouped data
- High charts showing the composition of count as tooltip
- HighCharts plugin JQuery
- Highcharts has missing markers at the top for very specific heights
- How do I force HighCharts to label every column?
- Highcharts show tooltip on load with table datasource?
- Highchart disappear on resize and not taking parent width
- HighCharts how to place dates in the Y-Axis (vertical axis)
- Density Plot in R Highcharter
- Javascript variable with Comma separated values not working in HighChart
- How to add Highcharts view data table option to the exports dropdown?
- how to get highchart data from external json
- Creating multiple series in Highcharts within a loop
- How to remove the white outline/border on Highcharts 3D on setData?
- how to add comma between the digit (as a label )
- Dynamically feeding the column based highcharts from json assosiative array in jquery?
- How to use the tooltip formatter and still display chart color (like it does by default)?
- How to make a HighCharts drilldown column/bar chart that does not hide the non-drilldown categories
- Ember.js , HighCharts - accessing JSON data from controller
- Slanted highcharts axis labels overlap with legend
- Highstock graph showing data outside selected range
- Highcharts: Click to update column color --- need a mouseover?
- Hiding items in highchart legend
- HighStocks - Adding 2 charts on same page
- Resize specific chart
- react-highcharts-official lazy loading data