juliansteenbakker / community_charts

This project is a fork of google/charts.
Apache License 2.0
84 stars 34 forks source link

Fix potential divide by zero error for the DateTime tick provider #7

Closed Jetz72 closed 11 months ago

Jetz72 commented 1 year ago

When a chart with an AutoAdjustingDateTimeTickProvider on one axis is zoomed in to the point where only one tick is visible, the console gets flooded with divide by zero warnings.

I'm not sure if this will be encountered under usual circumstances; my chart configuration had specific positions for the ticks. Still, it's seems like a good safety measure.