| Page 1 of 1 | [ 3 posts ] |
|
Hi,
The current documentation about Charts mentions: Quote: Based on device and browser capabilities, Charts leverages SVG, HTML Canvas and VML to render its graphical elements. This caused me to believe that I would get a HTML Canvas based graph in browsers like Chrome 17 or FF 10.0.2 (details below) but instead the examples were all rendered using SVG. What capabilities are required to get a canvas-rendered graph? Browser details: Code: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0.2) Gecko/20100101 Firefox/10.0.2 Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11 |
|
SVG is considered to be superior to Canvas, because Canvas is an opaque blob.
|
|
Charts was built using svg with canvas and vml for fallbacks when svg was not available. With 3.5 and higher, you can specify canvas as your default engine when declaring your YUI instance.
Code: YUI({ defaultGraphicEngine: "canvas" }).use('charts', function (Y) { //code }); Thanks, Tripp |
| 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