| Page 1 of 1 | [ 3 posts ] |
Steven Bedrick
|
I'm having trouble using the YUI3 chart component. I've set up what looks to me like a very simple bar chart with two data points. If I understand things correctly, this should result in two side-by-side bars; I've also set an option for a legend.
When I load the page, I do see the bars, but I don't see any legend, and mousing over the bars throws a DOM error ("Uncaught Error: NOT_FOUND_ERR: DOM Exception 8"). The gist below contains a minimal example. Any ideas? ExampleClick here to see the revision history on this Gist.
|
|
You need to load the 'charts-legend' module to add a legend to the chart.
Code: YUI().use('charts-legend', function(Y) { //your code here }); That should do it. Thanks, Tripp |
Steven Bedrick
|
Yup, that did it. Thanks for the help!
|
| Page 1 of 1 | [ 3 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