| Page 1 of 1 | [ 4 posts ] |
|
Hello,
Is there a way to change the shape of the round marker to a diamond, rectangle or other? I am particularly interested in assigning a uniques shape for each series.... I have searched through the APIs and this forum. If I missed it, please forgive me for the duplicate question. Thanks in advance, Serge Karalli |
|
Hi Serge,
You can specify different shapes for the marker but, currently, you have only 2 choices. ("circle" and "rect") The below code will set rectangular markers for the miscellaneous series. Code: var myDataValues = [ {category:"5/1/2010", miscellaneous:2000, expenses:3700, revenue:2200}, {category:"5/2/2010", miscellaneous:50, expenses:9100, revenue:100}, {category:"5/3/2010", miscellaneous:400, expenses:1100, revenue:1500}, {category:"5/4/2010", miscellaneous:200, expenses:1900, revenue:2800}, {category:"5/5/2010", miscellaneous:5000, expenses:5000, revenue:2650} ]; var mychart = new Y.Chart({ dataProvider:myDataValues, render:"#mychart", seriesCollection: [ { key: "miscellaneous", styles: { marker: { shape: "rect" } } } ] }); Please feel free to file a ticket for more/custom shapes. Thanks, Tripp |
|
Thanks Trip,
With a transform: rotate(45), I was also able to get a diamond. Ellipse also worked. Serge |
|
Please explain how you coded the rotation and got ellipse to work.
Thanks, Mark |
| 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