New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3d column chart with scrollbar shows other points in top-left corner. #13840
Comments
Hi @marklofdahl! Thank you for reporting your issue. It looks that the problem is related to this b886b66 commit. Internal Note: |
Any update on this bug? It doesn't appear to be fixed in Highcharts 8.2. Is there any workaround I can use? |
No, it's still not fixed @marklofdahl Could you try my workaround? Take a look: (function(H) {
H.wrap(
H.seriesTypes.column.prototype,
'drawPoints',
function(p) {
p.apply(this, Array.prototype.slice.call(arguments, 1));
var extremes = this.xAxis.getExtremes();
if (!this.visible) {
return;
}
this.points.forEach(function(point) {
if (point.x > extremes.max || point.x < extremes.min) {
point.graphic.animate({
opacity: 0
});
} else {
point.graphic.animate({
opacity: 1
});
}
});
}
);
H.wrap(
H.seriesTypes.column.prototype,
'translate3dShapes',
function(p) {
p.apply(this, Array.prototype.slice.call(arguments, 1));
var extremes = this.xAxis.getExtremes();
var series = this;
if (!series.visible) {
return;
}
series.points.forEach(function(point) {
if (point.x > extremes.max || point.x < extremes.min) {
point.shapeArgs.y = series.yAxis.len;
point.shapeArgs.x = point.plotX;
}
});
}
);
})(Highcharts); |
Thanks for the response. The workaround fixes the issue, but introduces a different one. When scrolling the chart, the columns on the left/right edges are not shown when they would be partially in the view area. This looks quite strange when the label shows, but the column doesn't. |
Good point! Added the same workaround to the data labels: http://jsfiddle.net/BlackLabel/ps8fxwc5/2/ Edit: It's still not perfect, it's just a workaround to hide the top left elements. |
Thank you. I appreciate the workarounds. However, when I mouse-over where the hidden column would be, it draws the column (strange), but shifted down far lower than it should be (even stranger). I realize this is a workaround - ideally the bug fix would still show the labels and columns if they are partially in the view area, like it did in the past. |
Good point! Replaced |
Thanks for the update. |
Any chance this will be fixed in the next Highcharts release? |
@marklofdahl |
If you happen to have a workaround that fixes the issue, without changing other behaviors, it would be much appreciated. We are still affected by this bug. Thank you. |
Hi @marklofdahl! I will work on the problem during the current/next week and hopefully we will find the workaround for this buggy functionality. Best, |
Thank you! I appreciate it... |
@marklofdahl, could you please check if below code works for you? |
Thanks for the fast response. Your example does work. |
Great to hear that! I will work more on preparing the full solution directly in Highcharts-3d code. |
Internal Note: It looks that after changing
the problem is not visible for columns with borderWidth as well. If changing this |
Thanks for your continued work on this issue. I tried this change out on my project, and it appears to work fine. |
Expected behaviour
http://jsfiddle.net/marklofdahl/r9j31ocn/
Behaves correctly in Highcharts 7.
No blue pixels in upper left of chart. Click on scrollbar animation shows column moving around from right to left, and vice versa.
Actual behaviour
http://jsfiddle.net/marklofdahl/r9j31ocn/
Highcharts 8.
Blue pixels representing points not in view are visible in upper left of chart. If you are very careful, you can even produce the tooltip by hovering over a specific pixel or 2. Click on scrollbar animation shows columns switching between plot area and this upper left corner.
There should not be visible blue pixels in upper left corner, and I should not be able to produce a tooltip by hovering.
Live demo with steps to reproduce
http://jsfiddle.net/marklofdahl/r9j31ocn/
Product version
Highstock 8
Affected browser(s)
Tested in Firefox, Chrome
The text was updated successfully, but these errors were encountered: