score:3
I looked up the API documentation (see http://api.highcharts.com/highcharts#yAxis.stackLabels) and found something that may be useful for you.
Try adding verticalAlign: bottom
to your stackLabels
attribute. This will push your label to the inside bottom of your columns. If you wish, you can also add a value to y
to move them directly under the column.
I'm curious why you're choosing to display your columns this way, as this presentation usually indicates negative value.
I hope this is helpful for you!
stackLabels: {
enabled: true,
style: {
fontWeight: 'bold',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
},
// verticalAlign puts the stack labels at the bottom
verticalAlign: 'bottom',
// the y value moves the label outside the stack;
// note that "15" or higher in your fiddle will push it off the chart altogether
y: 12
}
score:1
If you wish to have the labels still appear at the 0
mark for the axis you can either:
Pad the axis so that there is space in the plot area for the labels to be visible (JSFiddle):
yAxis: { min: -10, // Now there is space in the plot area for the labels to show // ... }
Allow the stack labels to show outside the plot area by setting the
crop
value (JSFiddle):yAxis: { stackLabels: { crop: false, // Now the labels ignore being outside the plot area // ... } }
If you want them to appear at the top of the columns I suggest the verticalAlign
and y
approach detailed by @brightmatrix.
Source: stackoverflow.com
Related Query
- Highcharts stacked column stackLabels do not show when axis is reversed
- Highcharts axis does not show properly values when numbers are so small
- not able ot show date in x axis in highcharts
- highcharts stacked column overlaps when toggling the legends visibility
- Fourth y axis does not show labels in Highcharts
- Highcharts show days of month dates in X axis (from JSON file). tickInterval: not work?
- how to show column and area charts with different y axis with same category and same x axis in highcharts
- Show data labels on top in stacked column graph in highcharts
- Highcharts stacked column don't show the stacked with min value
- Highcharts not showing value when two stacked columns have value = 1
- Highcharts stacked column: show total when a stack is hidden
- Highcharts - Small column not clickable when covered with a (sp)line serie
- highcharts not displaying line when last point is before current x Axis minimum and next point is after current X Axis maximum
- Stacked column not lining up with highcharts
- Highcharts Stacked Column chart from JSON not charting correct values
- highcharts column charts show sum single 0 when entire column data total is 0
- X axis tick not centering on column series in highcharts (jsFiddle)
- Column rang chart is not getting reset when click on legends in highcharts
- Highcharts - column stacked Y axis
- Stacked column does not format timestamp to date on x axis
- Highcharts how to use column title as X axis and not as Legend
- Highcharts column chart extends off container and doesn't properly show X axis
- Highcharts show stacked column total sum always on top (even negatives)
- Bars does not show up when loading JSON encoded data from PHP in Highcharts
- Why is Highcharts x axis not respecting my categories in stacked area chart
- Highcharts population pyramid opposite x axis not labeled correctly when using axis type 'category'
- Highstock highcharts stacked column jQuery.getJSON array not working
- Highcharts Stacked column drill down not working?> How to set drill down series for my scenario?
- How to make Highcharts default pie not show when Angular page loading
- Highcharts - Stacked Bar Column - Total Value of Stacked Bar not Correct with Negative and Positive Values
More Query from same tag
- Highcharts - Column Chart: Compare corresponding values to change color
- Irregular time data in highcharts
- Highcharts jumping a whole month
- Highcharts javascript
- Centering a data label in Highcharts Bar Chart
- Highcharts : How to update Plotoptions pointStart on Ajax call?
- HighChart Title text implemented HTML Style is not applying in exporting files
- Ruby on Rails: How to generate an array from records to display in Highcharts?
- How to show circular progress pie chart using the highcharts
- Highcharts: Show x-axis labels ony for years ending in zero (1950, 1960, 1970, ...)
- Creating a ring chart with Highcharts
- Stock Highcharts date format
- Highcharts plotOptions.series.compare='percent' renders blank
- Issue on Highchaert Fill Opacity and Legend Color on Spiderweb
- Highcharts line chart doesn't respect legend customization
- How to group area chart extremes for x-axis dynamically with day,week,months value in highstock
- How to correctly utilize the timezone option in Highcharts
- How can I get every bar in different colour using Highchart?
- Highcharts - How to prevent long title with line break from overflowing subtitle
- Angular dynamic highchart integration - response is not updating in the chart component
- Having Trouble Plotting JSON Data in HighCharts
- How can I faded label in Highchart Timeline if it's not selected?
- highcharts column chart with line, need line start at bar start
- Highcharts - equal spacing between X-axis values having tickPositioner
- Highcharts pie/variablepie align multilines label on plotedge
- Highchart stacked column tooltip issue
- HighChart generating table without chart
- HighCharts Pattern Fill striped
- Using Highcharts with Rails 6
- Highchart - Displaying the last yaxis value in the guage