hi,
there is a divide-by-zero condition in chart_layer_update_layout() that should be handled.
my y-data contains an array of zeros:
int y[] =
{0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0};
min-y and max-y are not set for the chart.
this (silently) causes a divide-by-zero error:
https://github.com/ae-code/PebbleChart/blob/master/src/pebble_chart.c#L373
const float fYScale = (float)(bounds.size.h - (2 * pData->iMargin)) / (fMaxY - fMinY);
https://github.com/ae-code/PebbleChart/blob/master/src/pebble_chart.c#L384
pData->iYTicks = (int)(fYScale * exponential10(closest_log10(fMaxY - fMinY)));
thanks, mike