amcharts - Synchronize ValueAxis grids -


i have these 2 valueaxes:

{     ...     minimum: 0,     maximum: 100,     strictminmax: true,     autogridcount: false,     gridcount: 10 }, {     ...     minimum: -15,     maximum: 215,     strictminmax: true,     autogridcount: false,     gridcount: 10 } 

now grid lines of both axes creating total mess in chart , hard not confused while trying read values. reason is, amcharts rounds labels or down ten-steps, not respecting gridcount.

i need know if there's way amcharts stop trying round labels. i'm totally fine have numbers 62 label, long reduces amount of grid lines.

my workaround pretty easy.
i introduced new option, normal strictminmax still work: strictgridcount

i used implementation of strictminmax , added these lines few lines above place strictminmax used:

if(_this.strictgridcount) {     if (!isnan(_this.minimum)) {         _this.min = _this.minimum;     }      if (!isnan(_this.maximum)) {         _this.max = _this.maximum;     }      _this.step = (_this.max - _this.min) / _this.gridcount; } 

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -