| Page 1 of 1 | [ 4 posts ] |
|
I am continuing with my charting adventures, and would like to know - how does one prevent a chart from trying to plot fields in the data that exist, but are not defined in the series that I wish to show?
I am carrying around this data for the sake of creating informative tool tips and labels, but instead the chart is plotting them. Thank you, Brett |
|
Hi Brett,
You can use the seriesKeys attribute to limit the series items. http://yuilibrary.com/yui/docs/api/classes/ChartBase.html#attr_seriesKeys If specified, only the key values in the array will be included in the axes and series. Code: var mychart = new Y.Chart({ dataProvider: myDataProvider, seriesKeys: [ "hi", "lo", "open", "close"], ... }); Thanks, Tripp |
|
Thank you, Tripp.
I am dynamically building up this seriesKeys array, and I can confirm that it is only passing in the fields that I wish to be show. I will try to come up with an example. Brett |
|
Nope, I was wrong. Thanks for making me double check.
Brett |
| 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