Pallav

Change X-Axis Variable via SELECT box

Recommended Posts

Hi,

 

 

 

I have a scatter plot where I would like to offer the possibility to change the x-axis variable. The default is GDP, but the user could choose as well Population or Fish Catch. One could do it by adding below the graph an HTML SELECT box with the available variables. But I would prefer to have the box within the graph area - looks much nicer. Is there any possibility to achieve this?

 

 

 

Thanks for any hints!

 

 

 

Stef

 

 

 

 

 

____________________________________________________________________

 

 

 

Lean Back and Relax - Enjoy some Nature Photography:

 

http://photoblog.la-famille-schwarzer.de

 

 

 

Appetite for Global Data? UNEP GEO Data Portal:

 

http://geodata.grid.unep.ch

 

____________________________________________________________________

Share this post


Link to post
Share on other sites

I'm afraid you cannot have a drop down in the chart. However, you can have your drop down in HTML and connect the data to chart using client side JavaScript - without invoking any page refreshes.

Share this post


Link to post
Share on other sites

Yes - this is one example where we use JavaScript + dataXML method.

 

 

 

You can use also use JavaScript + dataURL method.

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