Sign in to follow this  
Leo_T

Render Chart In A Different Popup Html Page

Recommended Posts

Hi,

 

I need to pass the rendered chart to a popup window (preview page). Has this ever been done?

All the examples I've seen up to now only deal with the chart being generated in a div inside the html

page you are currently on.

 

 

Currently, I have a page where a user clicks a generate graph button and then the chart shows up in the div inside that page.

 

Page1.html

<div id="chartContainer"> FusionCharts will load here! </div>

 

 

But on page1.html, I want to also add a preview link that will open a new html page & display the chart in that new popup html page.

 

Any help would be appreciated.

Thanks

Share this post


Link to post
Share on other sites

Hi,

 

The easiest way is to create an template HTML or webpage for the popup. You pass your required chart type data source and other details as querstring to the page and that page should be programmed to render chart based on the inputs.

 

A bigger example can be found in our Management Dashboard where "More charts" links open charts in popus. Although the charts shown are a bit different, but the underlying concept remains same.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this