Sign in to follow this  
monster2k

Draw Line And Capture Data Of The Point

Recommended Posts

how do i do this

 

i have a line chart on screen loaded via xml. there is a button named draw line...when i click on the button i want to be able to draw a line between 2 points on the chart and to be able to capture the values of the point in variables.

 

plz guide

Share this post


Link to post
Share on other sites

when i draw a line i want 2 variables in flash to capture the values for those points.

 

 

 

 

Hi,

 

 

Welcome to FusionCharts Forum.

 

Could not fully understand you requirement.

 

Quick question:

 

1. Do you want to click on the chart to create points or do you have a input/source for the points?

Share this post


Link to post
Share on other sites

when i draw a line i want 2 variables in flash to capture the values for those points.

 

 

 

 

 

 

plz not the points on chart or rather the chart is created from the preloaded data via xml or excel. so each point has a value.

 

 

 

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

If you want to plot a line chart from a button click, you would need to update the entire chart XML with plot values to the chart using FusionCharts JavaScript method "setXMLUrl()" or "setXMLData()".

 

For more information on "Providing and Updating data", please follow the link below:

http://docs.fusioncharts.com/charts/contents/?JavaScript/JS_ChangeData.html

 

Also, to get the data of the plot anchors, you can use the FusionCharts JavaScript method "getChartData()", which will give you the entire XML data and from that you can get your desired information.

 

For more information on "Getting data back from chart", please follow the link below:

http://docs.fusioncharts.com/charts/contents/?JavaScript/JS_DataBackFromChart.html

 

Hope this helps!

Share this post


Link to post
Share on other sites

Hi,

 

If you want to plot a line chart from a button click, you would need to update the entire chart XML with plot values to the chart using FusionCharts JavaScript method "setXMLUrl()" or "setXMLData()".

 

For more information on "Providing and Updating data", please follow the link below:

http://docs.fusionch...ChangeData.html

 

Also, to get the data of the plot anchors, you can use the FusionCharts JavaScript method "getChartData()", which will give you the entire XML data and from that you can get your desired information.

 

For more information on "Getting data back from chart", please follow the link below:

http://docs.fusionch...kFromChart.html

 

Hope this helps!

 

I just want only the value of the point selected not the of entire chart

 

 

 

Share this post


Link to post
Share on other sites

Hi,

 

I just want only the value of the point selected not the of entire chart

 

Could you please try using a JavaScript function as link that would return the label and value or any data that you would use there, for the particular data plot/point that is clicked at that moment, using the FusionCharts Drill Down feature?

Ex:

<set label='USA' value='235' link="j-myJS-USA,235"/>

 

In the above code snippet, "myJS" refers to a custom JavaScript function present in the HTML page that embeds this chart and "USA,235" is the parameter value passed to the function. You can pass only a single String parameter to this function. When you now click the data item (column, pie, bar etc.) for this particular data, "myJS" function will be invoked and 'USA, 235' will be passed to the function as the function parameter.

 

Here, we have passed the data label and value just for demonstration purposes. In actual charts, you can pass identifier numbers or strings of each data. When the user clicks on the link, these identifiers can be sent back to your JavaScript function for further actions (like loading detailed data for that identifier using AJAX or anything - the possibilities are endless).

 

For further details on the above, please refer to the following link.

Ref.- http://docs.fusioncharts.com/charts/contents/?DrillDown/JavaScript.html

 

Hope this helps. :)

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

I am afraid, FusionCharts does not support this feature right now.

 

You would need to either get the entire XML using "getChartData()" or entire CSV data only (excluding all chart properties) by using "getDataAsCSV()" function and then retrieve the information which you require.

 

Hope this helps!

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