[ 4 posts ]

pentium10

  • Joined: Mon Jan 24, 2011 7:28 am
  • Posts: 32
  • Offline
  • Profile

Export to image?

Post Posted: Tue May 22, 2012 10:03 pm
+0-
We are wondering if there is an export to image function for the charts.
What do you know of?

Tripp Bridges

YUI Developer

  • Username: tripp
  • Joined: Wed Jan 07, 2009 1:54 pm
  • Posts: 435
  • GitHub: tripp
  • Gists: tripp
  • YUI Developer
  • Offline
  • Profile
Tags:

Re: Export to image?

Post Posted: Tue May 22, 2012 11:07 pm
+0-
There is no such functionality built into yui charts.

Thanks,
Tripp

pentium10

  • Joined: Mon Jan 24, 2011 7:28 am
  • Posts: 32
  • Offline
  • Profile

Re: Export to image?

Post Posted: Tue May 22, 2012 11:58 pm
+0-
Would a SVG to PNG converter help?

Like this one: http://www.svgopen.org/2010/papers/62-F ... index.html

Other question: is there a way to force the charts to render in different type of objects? svg, div etc?

Tripp Bridges

YUI Developer

  • Username: tripp
  • Joined: Wed Jan 07, 2009 1:54 pm
  • Posts: 435
  • GitHub: tripp
  • Gists: tripp
  • YUI Developer
  • Offline
  • Profile

Re: Export to image?

Post Posted: Wed May 23, 2012 7:13 am
+0-
It looks like it could although I have not worked with it. One thing that could cause issues is that the charts are not rendered entirely in svg. All the drawn elements (graphs, markers, ticks, etc) are svg, canvas or vml (depending on browser) while others such as text are dom elements. I don't know if that will be troublesome when converting or not.

Charts, by default, will use svg as its graphic engine when available. (ie6 - 8 will use vml, android 2 will use canvas)

As of 3.5, you can force charts to use canvas as its preferred graphic engine. Doing such will render charts in canvas (ie6 - 8 vml).

Code:
YUI({
    defaultGraphicEngine: "canvas"
}).use('charts', function (Y)
{
    //charts code
}


Thanks,
Tripp
  [ 4 posts ]
Display posts from previous:  Sort by  
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