score:8
I was trying to achieve the same results. Check this fiddle and let me know =] I used:
chart: {
type: 'column'
},
plotOptions: {
series: {
stacking: 'normal'
}
}
jsfiddle for vertical stacked bars w negatives
EDIT: try changing the type to 'bar'. This will make the chart "columns" go horizontal =]
score:0
You can use stacked column and then set inverted parameter as true, then chart will be rotated.
score:1
The Highcharts demo code for a 'Stacked column' does not work for negative values for the simple reason that the y-axis range is limited in the example code. The answer lies in removing the min=0
argument from the yAxis
options.
The yAxis options should read
yAxis: {
title: {
text: 'Total fruit consumption'
},
stackLabels: {
enabled: true,
style: {
fontWeight: 'bold',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
}
}
}
With these options in place the example code for the 'Stacked Column' chart will display negative values correctly.
Source: stackoverflow.com
Related Query
- Highcharts vertical stacked bar chart with negative values, is it possible?
- Highcharts - Stacked Bar Column - Total Value of Stacked Bar not Correct with Negative and Positive Values
- Highcharts: having trouble recreating stacked area chart from Excel with positive and negative values
- Highcharts - Area Chart - Stacking with series containing negative and positive values
- Adding round corners to Highcharts Bar Chart with stacked bars when value is 0
- Column chart with negative values and categories on xAxis in HighCharts
- Highcharts - Pie chart with negative values
- Vertical line within bars of a stacked bar chart using recharts or highcharts
- 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
- Highcharts do not hold all the values of stacked columns chart with data time axes
- 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)
- Highcharts bar chart with negative and positive data
- stacked bar chart shows hanging zeros when all values are 0 highcharts
- negative values in highcharts stacked column chart
- dealing with highcharts bar chart with really long category names
- Highcharts - Keep Zero Centered on Y-Axis with Negative Values
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Highcharts stacked bar chart hide data labels not to overlap
- Highcharts - Column With Negative Values - Column Color
- Highcharts - Issue with negative values when displaying multiple axes
- Grouping a stacked bar chart in Highcharts
- Hide 0 values in Stacked Column Chart in Highcharts
- Highcharts stacked column bar with line
- Highcharts 3.0, area chart with stacked and unstacked series - how to fix?
- Highcharts stacked bar negative / positive total
- creating a bar chart using Highcharts with React - getting an error that rendering div isn't found
- Using Trellis Chart with Stacked Columns in Highcharts
More Query from same tag
- Highcharts don't export custom SVG elements added after created
- In Highcharts, how to move annotations along with the chart when it changes?
- HighCharts - Add vertical lines from a desire point
- Workers for phantomJs fail to start in a Docker container
- Highcharts - series order on stacked charts
- Highcharts Orientation
- stop redrawing chart on highcharts
- highcharts gauge chart and the pane option
- Highcharts issue when dealing with 3D pie and large labels
- Highcharts rounding yaxis and xaxis digits
- When trying to display a chart using ChartIt, Error saying template does not exist arises
- Highcharts Solid Gauge: Remove Wasted Space in Pane
- How to show only weekday on xAxis with Highcharts?
- How do you get the mouse hovered label value with the highcharts custom event plugin?
- How to force data labels to all be displayed?
- xAxis.Categories does not works in highcharts when used with range selector
- Highcharts Auto Calculate Multiple Series Position
- How to get bar id in react highcharts?
- HighCharts TypeError: ha is not a function
- How to show an empty chart in beginning and populate values on button click
- How to display hovered point value in Highcharts Crosshair
- Pass Chart Mouse events to formatted labels
- Change window position with button HighStocks
- Joing multiple courtries in highmaps
- change the Top and Left in highcharts
- using JS event function twice in shiny R to create a dropdown
- Highcharts does not display when a line of PHP header('location...') is added
- Issue with Scroll bar in Hicharts/Histock chart
- HighChart: Tooltip box thousand seperator
- Exporting png in HighCharts