Drill Down Links
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Drill Down Links Expand / Collapse
Author
Message
Posted 3/8/2007 9:58:22 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/28/2007 9:41:09 AM
Posts: 6, Visits: 25
Hello,

I have a line chart that shows a data point for 30 days. I need to be able to click one of the data points and get the value for the DAY that was clicked. I have the drill down working I just need to get the day. Can I do this with just PHP and XML? How?

$stringData = "<set label='$date' Value='$xnum' link='http://mydomain.com/SPAWeb/ProbeApp/OneProbe.1.Day.Hourly.php?prbname=$prbname&day=DataFromClick' />";

Thank you.

Post #472
Posted 3/9/2007 1:20:06 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 2 days ago @ 8:20:12 AM
Posts: 2,194, Visits: 521
Yes - just make sure to URLEncode the link attribute part.

Thanks,
Pallav Nadhani
FusionCharts Team
Post #480
Posted 3/22/2007 12:13:10 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/28/2007 9:41:09 AM
Posts: 6, Visits: 25
Hello.

I dont understand how to get the click data.  The date is in my xml file like this:

<category label='2007-02-28' />

If I move the mouse over the datapoint I can see the date. How do I get that value when I click and get it into my drill down link??  Thanks

$stringData = "<set label='$date' Value='$xnum' link='http://mydomain.com/SPAWeb/ProbeApp/OneProbe.1.Day.Hourly.php?prbname=$prbname&day=DataFromClick' />";

Pallav (3/9/2007)
Yes - just make sure to URLEncode the link attribute part.
Post #610
Posted 3/23/2007 1:01:16 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 2 days ago @ 8:20:12 AM
Posts: 2,194, Visits: 521
When you're providing this link in the XML, make sure to URL Encode it so that it looks as under:

<set ... link='http%3A%2F%2Fmydomain%2Ecom%2FSPAWeb%2FProbeApp%2FOneProbe%2E1%2EDay%2EHourly%2Ephp%3Fprbname%3D%24prbname%26day%3DDataFromClick%27' />

Thanks,
Pallav Nadhani
FusionCharts Team

Post #613
Posted 3/25/2007 12:56:00 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/28/2007 9:41:09 AM
Posts: 6, Visits: 25
I posted a reply here on Friday, that appears to have been deleted ?

I will post again.. I dont think we are understanding each other..

My question is how do I get the value from the data point that is clicked on the chart? My chart has 30 days of the month for the x axis. Each data point is a date like this:

2007-03-21

I want to retrive the DATE value for my URL

http://mydomain.com/SPAWeb/ProbeApp/OneProbe.1.Day.Hourly.php?prbname=$probename&date=<---HOW DO I GET THIS VALUE?

When I code the php to write the XML:

$stringData = "<set value='$xnum' link='http://d2ml2491.dev.sprint.com/SPAWeb/ProbeApp/OneProbe.1.Day.Hourly.php?prbname=$prbname' /> ";  <<-- this works

I want to add "&date=" to the end of the link but I dont know the value of DATE until the chart is clicked. Is there a function that I should put here? &date=(function)? that will tell me what is clicked?

Please advise.

Thank you.

Post #621
Posted 3/27/2007 6:13:06 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 9/11/2007 3:43:24 AM
Posts: 13, Visits: 42
i don't know if i understood it properly, but if you're working in php you should do this:

$var=$_GET['date'];


Bye!
Post #629
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 8:25pm


Execution: 0.031.