g.raphael icon indicating copy to clipboard operation
g.raphael copied to clipboard

dot chart doesnt work fine with big labels

Open brodock opened this issue 11 years ago • 3 comments

If I create a dotchart with a big label, it shrinks the whole graph, not only the corresponding dimension. For example, if I use a big label on Y axis, it should only shrink the width, but maintain the height untouched.

I had been able to track what I think is the root cause of the problem, and may be related to the gutter recalculation after axis labels generation.

We should store gutter as a two dimension data, and use the correct dimension to calculate circles position.

brodock avatar Aug 22 '12 03:08 brodock

I'm also curious what happens when the x axis labels get too long. It appears that it actually just destroys the next label preventing it from being written at all if the spacing is too smal to accomodate it. I would rather the x axis labels be able to be rotated 45 degrees so that it could support much longer strings. I haven't found the root of the error - still experimenting. any thoughts @brodock ?

jeffchuber avatar Aug 29 '12 21:08 jeffchuber

Yes, we are playing with the code and figuring out the best solution for it. We will share it as soon as we get an acceptable one.

brodock avatar Aug 31 '12 18:08 brodock

Thanks!

jeffchuber avatar Aug 31 '12 20:08 jeffchuber