Rounding of Y Axis Values

138 views
Skip to first unread message

Ajee

unread,
Jul 13, 2012, 1:18:10 PM7/13/12
to elyc...@googlegroups.com
What's the best way to round the values on the Y-Axis? I am getting values such as 9999.39999999. I am using a bar chart.
 

wq

unread,
Sep 25, 2012, 10:31:44 PM9/25/12
to elyc...@googlegroups.com
the way? I hava it too !

在 2012年7月14日星期六UTC+8上午1时18分10秒,Ajee写道:

Jonathan Stevens

unread,
Sep 26, 2012, 11:23:13 AM9/26/12
to elyc...@googlegroups.com
I think from the code its a calculated value. This might be a bug to submit. I had this with a barchart but I hacked it to max out to 100 since my scale was a percentage.

Jonathan Stevens

unread,
Sep 26, 2012, 9:35:36 PM9/26/12
to elyc...@googlegroups.com
I tried to see if i could get this on chrome but the code rounds the y axis values. Could you send the series values that reproduced this?
Message has been deleted

Dreea S

unread,
Nov 5, 2012, 10:15:24 AM11/5/12
to elyc...@googlegroups.com
You could fix this by adding             val = Math.round(val); at line 3518 in elycharts.full.js

Dreea S

unread,
Nov 5, 2012, 10:16:12 AM11/5/12
to elyc...@googlegroups.com
I have this issue too. You can test it with the following values

  values: {
    serie1: [181000,101000],
    serie2: [2800,1800100]
  },

Why you deleted my previous comment?

Jonathan Stevens

unread,
Nov 6, 2012, 8:59:24 AM11/6/12
to elyc...@googlegroups.com
I will try and test it tonight or at least this week.


On Mon, Nov 5, 2012 at 9:08 AM, Dreea S <black...@gmail.com> wrote:
I'm having the same issue. Anybody found the solution to this?
Sample values that produce this output:
  var repSerie1 = new Array(121000,101000);
  var repSerie2 = new Array(2800,1000100);


On Thursday, September 27, 2012 4:35:57 AM UTC+3, Jono wrote:
Reply all
Reply to author
Forward
0 new messages