| Page 1 of 1 | [ 4 posts ] |
|
Is there a config to add a horizontal scrollbar to a column chart?
I added the style overflow:scroll to the parent div of the chart, but it did not work. BTW, i am using yui3. thx in advance. |
|
Try using an outer div for setting scroll. Below is sample css, html and javascript that would accomplish scrollbars.
Code: /* css */ #mychartouter { position: absolute; top: 50px; left: 50px; width:400px; height:350px; overflow: scroll; } #mychartinner { width:750px; height:350px; } <!--html--> <div id="mychartouter"> <div id="mychartinner"></div> </div> //Javascript var myChart = new Y.Chart({ type: "bar", categoryKey: "date", dataProvider:myDataValues, render:"#mychartinner" }); Thanks, Tripp |
|
It does work!cool!but just a little problem, the rightmost tooltip will be covered by the parent div.
thx tripp. |
|
There is a discussion on this thread for changing the positioning algorithm of the tooltip.
http://yuilibrary.com/forum/viewtopic.php?f=92&t=8256&p=26509&hilit=chart+tooltip#p26509 Post back if you run into any issues. Thanks, Tripp |
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group