Microcharts
Microcharts copied to clipboard
Overlapping horizontal labels in large data sets
So I've found a bug where, with large data sets, horizontal labels seem to get cut off because I assume they are overlapping.
Here's a little context on what I'm trying to do. I've got a large data set (hundreds of points) that I'm graphing as a line chart. I've created a neat little widget that allows the user to see the graph at different snapshots. It works great when you have a small number of points! However, when I graph a large enough number of points, labels start overlapping. Now, I'm not trying to draw hundreds of labels, I only assign label values to 7 or chart entries, regardless of how many points I put into the chart. My assumption was that for larger data sets, only the labels I assigned would appear. This does not appear to be working.
For the moment, as a workaround, I'm only going to graph the data points that I label, but doing means my graph loses a lot of granularity and detail. Any help with this would be appreciated.
Thanks for all your work, this is a great library and I'm glad I pulled it into my project!
@mgramley have you found any workaround for this yet? I'm running into this issue right now as well. I don't really want to go as far as to add another controller that will be put on top of the bottom of the chart so that I can show the horizontal labels on 'larger' datasets...
@eddie010 I haven’t found a good solution to this yet. I’ve been a bit inactive on the project that was using micro charts which is why I haven’t gotten around to fixing it. My plan was to pull the source and try to contribute to the project with a solution, but I haven’t gotten around to it yet.
I believe @aloisdeniel didn't implement something like this on purpose, to keep the data represented by the library as simple as possible. This library wasn't designed for complex/super detailed data. That said, I'll look into it, and see if there's anything that we can accomplish.
Are there any updates on this? I am running into the same issue
No but if someone wants to make a pull request with a fix I'll look at it.