Microcharts icon indicating copy to clipboard operation
Microcharts copied to clipboard

Overlapping horizontal labels in large data sets

Open mgramley opened this issue 6 years ago • 5 comments

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!

overlapping labels bug

mgramley avatar Aug 20 '18 05:08 mgramley

@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 avatar Mar 19 '19 15:03 eddie010

@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.

mgramley avatar Mar 20 '19 04:03 mgramley

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.

Nixon-Joseph avatar Jul 27 '19 03:07 Nixon-Joseph

Are there any updates on this? I am running into the same issue

Alyssa-Crawford-dmi avatar May 07 '21 14:05 Alyssa-Crawford-dmi

No but if someone wants to make a pull request with a fix I'll look at it.

eman1986 avatar May 07 '21 14:05 eman1986