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
Logarithmic axis - negative values. #13914
Comments
Amazing. I have no idea yet, but I will look into that. |
For me this is the breaking commit: daddf2e |
Okay, so I found the reason. It is not a bug, but just the wrong usage of the axis prototype. If you set the option Highcharts.chart('container', {
title: {
text: 'Logarithmic axis with custom conversion allows negative values'
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
yAxis: {
type: 'logarithmic',
allowNegativeLog: true
},
series: [{
data: [-1000, -100, -10, -1, -0.1, 0, 0.1, 1, 10, 100, 1000]
}]
}); |
@bre1470 |
Negative values on a log axis is (mathematically) not a thing, and we only keep this hidden option as a convenience so that our demo can work. Please revert this commit, as we want to keep the footprint as low as possible, and don't need to support backwards compatibility. |
@TorsteinHonsi Please note, that without this change the LogarithmicAxis composition always have redundant conversion functions directly on the axis to allow the demo in its current state to work with ES6. See https://github.com/highcharts/highcharts/blob/master/ts/Core/Axis/LogarithmicAxis.ts#L227-L233 |
Expected behaviour
According to this article, the negative values should be displayed (thanks to this custom code), however, something is broken after the 8.0.4 version.
Last working version: http://jsfiddle.net/BlackLabel/bj3dwe4t/
Actual behaviour
The current version, the negative points are hidden: http://jsfiddle.net/BlackLabel/cdguh2zp/
Product version
Highcharts JS v8.1.2 (2020-06-16)
The text was updated successfully, but these errors were encountered: