score:4
Accepted answer
you can disable the inactive
effect and use the hover
state:
plotoptions: {
...,
column: {
stacking: 'normal',
states: {
inactive: {
enabled: false
},
hover: {
color: 'blue'
}
}
}
}
live demo: https://jsfiddle.net/blacklabel/lg796ha3/
api reference: https://api.highcharts.com/highcharts/series.column.states.hover.color
score:2
use shared: true
in your tooltip
highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: 'stacked column chart'
},
xaxis: {
categories: ['apples', 'oranges', 'pears', 'grapes', 'bananas']
},
yaxis: {
min: 0,
title: {
text: 'total fruit consumption'
},
stacklabels: {
enabled: true,
style: {
fontweight: 'bold',
color: (highcharts.theme && highcharts.theme.textcolor) || 'gray'
}
}
},
legend: {
align: 'right',
x: -30,
verticalalign: 'top',
y: 25,
floating: true,
backgroundcolor: (highcharts.theme && highcharts.theme.background2) || 'white',
bordercolor: '#ccc',
borderwidth: 1,
shadow: false
},
tooltip: {
headerformat: '<b>{point.x}</b><br/>',
pointformat: '{series.name}: {point.y}<br/>total: {point.stacktotal}',
shared: true
},
plotoptions: {
column: {
stacking: 'normal',
datalabels: {
enabled: true,
color: (highcharts.theme && highcharts.theme.datalabelscolor) || 'white'
}
}
},
series: [{
name: 'john',
data: [5, 3, 4, 7, 2]
}, {
name: 'jane',
data: [2, 2, 3, 2, 1]
}, {
name: 'joe',
data: [3, 4, 4, 2, 5]
}]
});
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
Source: stackoverflow.com
Related Query
- Can I with highcharts column stacking on hover not highlighting the whole serie
- How to export the whole page or html content with Highcharts not just the chart?
- Highcharts - Small column not clickable when covered with a (sp)line serie
- How can I get HighCharts column chart to scale the yAxis to not have so much whitespace?
- The RTL language (Arabic) is not working with HighCharts pie chart correctly, how can I fix this?
- Add a gap between the second and third series in a Highcharts column plot with four series displayed
- Highcharts - update column graph with setData() not working
- Highcharts column + line combination chart with multiple series. Issue aligning line over the column
- Gauge Series of Highcharts with React not the Solid Gauge but Gauge Series
- c# WPF Webbrowser with Highchart, Javascript from external source not working "An error has occurred in the script on this page"
- Setting highcharts datalabels backgroundColor with the same color of its serie
- How can I make milestone lines with a GANTT chart using the highcharts library?
- How can I display crosshair labels on top of the chart with Highcharts
- Highcharts stacked column don't show the stacked with min value
- Highcharts multiple x axis and yaxis. The width of the 1st x-axis is not in sync with browser resize
- Highcharts behaviour in mobile browser (scrolling the whole graph not the specific point)
- Highcharts donut pie not showing hover indicator if the slice color is white
- I am facing this error highcharts.js:formatted:1 Uncaught ReferenceError: Highcharts is not defined can any one help me with this
- In highcharts how can I provide data with values x, y, title so that I can put the title in the tooltip?
- How can I make HighCharts 4.2.5 with boost.js invoke the tooltip formatter?
- Highstock.js: Not able to create multi pane chart with two stacked column charts, one "normal" and the other "percent"
- Stacked column not lining up with highcharts
- Highcharts column with drilldown results in blurred data label in main chart, except for the drilled down columns
- Highcharts - Column labels with different widths are not aligned
- Highcharts Chart Bar - How can I display in the chart, only one column from my HTML table?
- Highcharts Highmaps the data does not match with polygons correctly
- Highcharts column how to move series name to the title position with bigger text size
- Angular 9 Highcharts - when using series of type pie with type gauge the innerSize of pie is not working
- Highcharts tooltip for single series always centre. Can I force it to be left hover of the marker?
- The continuous update highcharts with more data plotting the continuity is not visible so we need that continuity in the centre of the graph
More Query from same tag
- Highcharts renderTo container not found (error 13)
- How to set datalebels formatter in highcharts
- Highmaps from sharepoint data
- How can I remove the legend symbol for a SINGLE legend in Highcharts?
- How to set the z-index of points on a HighCharts scatter plot?
- Highstock From/To Invalid Date Issue
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- Import CSV to highcharts scatterplot with tooltip populated by point name and x,y values
- use highchart and highstock on the same page
- Highcharts navigator error: Invalid negative value for <rect> attribute width
- Highcharts tooltip custom CSS turning the caret/arrow white
- Highchairs how to prepend HTML to legend
- Using the DotNet.HighCharts Library To Create Chart Based on DataTable Result From Webservice
- JSON data from URL
- Highcharts x-axis cannot be seen when range is huge
- HighCharts.StockChart remove zoom feature
- Highcharts dual axes navigator
- jQuery - HighCharts Labels outside Series (Bar Chart)
- HighChart : plot line and plot click event
- TreeMap chart of Highcharts in Angular
- How to zoom chart line same as legend hover and reset automatically on button click in highcharts?
- Highcharts: Change cursor of plot area
- Highcharts: How to add HTML inside of chart area
- load data from text file into HIGHCHART graphic using PHP
- Highcharts: issue to load multiple series
- Adding a Dropdown Select menu to select csv files in highcharts
- 31 days on the highcharts x-axis
- Change the font color of drillUpButton text
- Find number of data points in each series in highcharts
- How to render multiple HighCharts using a queue to prevent long load times