i am an invient charts beginner and i can generate charts without problems so far. Now I am trying to export the generated charts in PDF or PNG. On the highcharts demo site i found this funcionality which is located as a button in the right corner of the chart. How can i achieve this for my invient charts? Is there a possibility to “activate” these buttons or what do i have to do? Thanks in advance for the responses.
It is possible but with a hiccup. Currently, SVG is availabe by registering a listener ChartSVGAvailableListener. This is due to the fact that SVG is generated on the client side and is unavailable until it is rendered.
Thanks for your reply !
It might be a silly question but i have no clue how to use the ChartSVGAvailableListener to get the SVG in my Charts. I use following code sequence but apparently this is not the solution:
You wrote in another Thread (“New Add-on:Invient Charts”) that [quote]
“You have to register a callback which is called when the SVG is ready.”
[/quote]. Can you give me a hint what to do ? Do you mean the Listener as Callback?
i too faced the problem of the registered listener never getting the ChartSVGAvailableEvent. As it turned out though my application didn’t load the exporting.js. See the following line in the demo’s InvientChartsDemoAppServlet class: