Skip to content

Commit

Permalink
Fixed #5887, a regression causing bubbles to move on hover.
Browse files Browse the repository at this point in the history
Closes #5867.
  • Loading branch information
TorsteinHonsi committed Oct 26, 2016
1 parent d0992fa commit c259259
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/parts-more/BubbleSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ seriesType('bubble', 'scatter', {
trackerGroups: ['group', 'dataLabelsGroup'],
bubblePadding: true,
zoneAxis: 'z',
markerAttribs: null,

/*= if (build.classic) { =*/
pointAttribs: function (point, state) {
Expand Down
2 changes: 1 addition & 1 deletion js/parts/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ extend(Point.prototype, {
return;
}

if (markerOptions) {
if (markerOptions && series.markerAttribs) {
markerAttribs = series.markerAttribs(point, state);
}

Expand Down
6 changes: 6 additions & 0 deletions samples/highcharts/demo/area-inverted/demo.details
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: Highcharts Demo
authors:
- Torstein Hønsi
compareTooltips: true
...
6 changes: 6 additions & 0 deletions samples/highcharts/demo/bubble/demo.details
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
name: Highcharts Demo
authors:
- Torstein Hønsi
compareTooltips: true
...
1 change: 1 addition & 0 deletions utils/samples/compare-iframe.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ function tryToRun(proceed) {
// Start with tooltip open
Highcharts.Chart.prototype.callbacks.push(function (chart) {
if (chart.series[0] && chart.series[0].points[2]) {
chart.series[0].points[2].onMouseOver();
chart.tooltip.refresh(
chart.tooltip.options.shared ?
[chart.series[0].points[2]] :
Expand Down

0 comments on commit c259259

Please sign in to comment.