Issue 42 in elycharts: Elycharts labels does not show on jQuery tabs

38 views
Skip to first unread message

elyc...@googlecode.com

unread,
Oct 28, 2014, 9:34:33 PM10/28/14
to elyc...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 42 by marco.he...@heyrex.com: Elycharts labels does not show on
jQuery tabs
https://code.google.com/p/elycharts/issues/detail?id=42

What steps will reproduce the problem?
1. Same charting code used on different jquery tabs
2. produced a jsfiddle test to recreate the issue
3. http://jsfiddle.net/g98825zf/1/

What is the expected output? What do you see instead?
The expected output should show identical labels on each tabs

What version of the product are you using? On what operating system?
Window 7 - Google Chrome and Firefox, Mac OS X 10.8.5 - Safari

Please provide any additional information below.
I think this is the same issue with native getBBox() function wherein
hidden elements does not return correct bounding box.

Also, if there is a fix, can you let me know or how can I contribute to
your code.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

davor brunovic

unread,
Mar 31, 2015, 4:31:21 AM3/31/15
to elyc...@googlegroups.com, codesite...@google.com, elyc...@googlecode.com
Hey there,

I started using elycharts a couple hours ago and ran into the same issue.
I ended up going to the source code of elycharts and chaning the following lines:

laby = env.height - opt.margins[2] + axis.x.props.labelsDistance; (the for loop under the comment // Label X axis)

To

laby = (env.height - opt.margins[2] + axis.x.props.labelsDistance)/2;

And

laby = env.height - opt.margins[2] - i * deltaY; (the for loop under the comment  // Label + Title L/R Axis)

To

laby = (env.height - opt.margins[2] - i * deltaY)/2;

It works fine now. I realize this is not a solution but a nasty hack, but it's good enough for my needs. It would be good if you guys would check out why the Y gets multiplied by 2 in tabs. Or something.

Cheers
Reply all
Reply to author
Forward
0 new messages