Commit c1317aa3 authored by Evgeny's avatar Evgeny

Fix CHRT-206 for non-normalized charts

parent 6071db2b
......@@ -4891,8 +4891,9 @@
if($$.config.normalized){
sizesY.max = Math.min(sizesY.max, 1);
sizesY.min = Math.max(sizesY.min, -1);
}
sizesY.max = Math.min(sizesY.max, minmax.maxY);
if(sizesY.min < 0 && minmax.minY < 0){
sizesY.min = Math.max(sizesY.min, minmax.minY);
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -401,8 +401,9 @@ c3_chart_internal_fn.tuneAxis = function(sync, callback){
if($$.config.normalized){
sizesY.max = Math.min(sizesY.max, 1);
sizesY.min = Math.max(sizesY.min, -1);
}
sizesY.max = Math.min(sizesY.max, minmax.maxY);
if(sizesY.min < 0 && minmax.minY < 0){
sizesY.min = Math.max(sizesY.min, minmax.minY);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment