Skip to content

Commit

Permalink
修复曲线图表值为负数时Y轴上无法显示的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
youseries committed May 2, 2018
1 parent 04b0cbd commit 4a7fa0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public ChartData doCompute(Cell cell, Context context){
}else{
if(withoption && hasYAxes(dataset)){
sb.append(",");
sb.append("\"scales\":{\"yAxes\":[{\"ticks\":{\"min\":0}}]}");
sb.append("\"scales\":{\"yAxes\":[]}");
}
}
sb.append("}");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public String toJson() {
StringBuilder sb=new StringBuilder();
sb.append("{");
sb.append("\"ticks\":{");
sb.append("\"min\":0,");
sb.append("\"minRotation\":"+getRotation()+"");
sb.append("}");
ScaleLabel scaleLabel=getScaleLabel();
Expand Down

0 comments on commit 4a7fa0e

Please sign in to comment.