I was starting to use xChartLite. Brilliant library, thanks Klaus.
I invoked an error from the library on line 1748. Not sure you would want put a catch in place.
Entirely my own fault but after some debugging I found that the xCustomview I copied across was for a BAR chart, and I was filling it with line data.
It correctly flagged "Bar width = too small !!! Drawing of Bar chart skipped" and then failed on line 1748 when it was trying to use bitmapcreator with empty arrays.
Easily fixed by changing the view to a "LINE" chart.
I invoked an error from the library on line 1748. Not sure you would want put a catch in place.
Entirely my own fault but after some debugging I found that the xCustomview I copied across was for a BAR chart, and I was filling it with line data.
It correctly flagged "Bar width = too small !!! Drawing of Bar chart skipped" and then failed on line 1748 when it was trying to use bitmapcreator with empty arrays.
Easily fixed by changing the view to a "LINE" chart.