Journal: 18 Jan 2019

18th January 2019 PERMALINK • 1 min read

An interesting day at work today. I had to reimplement a line-chart in one of our apps, because the framework that we previously used was producing inconsistent results.

The chart we have shows time-based data, and the problem stems from the fact that the data provided by the API isn’t consistent with the timing of records. So for example there might be 10 data points for one day, two for the next, and six for another. We spread out the values on the y-axis and the associated dates on the x-axis, but the spacing of data is based on the amount of data points, with no way to override this.

Luckily I done a bit more research, and there’s a framework called Charts by Daniel Cohen Gindi, that’s actually a Swift/iOS Chart framework for a Android. It also happens to be the one used in our Android app, so just based on consistency it’s better than the one we had before.

Apart from that, it’s been a pretty average day.