CareKit icon indicating copy to clipboard operation
CareKit copied to clipboard

Chart Vertical Axis Label

Open desmondbaldwin opened this issue 5 years ago • 3 comments

I believe the Chart is calculating the first axis label incorrectly. My data values are as follows

S - 188 M - 200 T - 194 W - 192 T - 190 F - 190 S - 188

It seems that the chart is drawn according to the min and max values. if that's the case I believe the 1st vertical axis label should be "194" , rather than 100 (in my example below). I tested with other values and it seems that the first label is simply 1/2 of the max value when it should be the mid point between the max and min values.

Screen Shot 2020-06-30 at 12 36 55 AM

desmondbaldwin avatar Jun 30 '20 05:06 desmondbaldwin

Thanks for reporting this Desmond! Can you confirm which commit you have checked out?

Is this on a version of CareKit from before or after we merged #449?

erik-apple avatar Jul 14 '20 15:07 erik-apple

I have the most recent stable branch.

desmondbaldwin avatar Jul 24 '20 02:07 desmondbaldwin

Can you try checking out a recent commit from master? We recently made a change that might fix your issue, but it hasn’t made it into a stable release yet.

erik-apple avatar Jul 24 '20 04:07 erik-apple