tag:blogger.com,1999:blog-5824660313967021040.post5357670881968749214..comments2022-03-26T08:56:28.677-07:00Comments on cfSearching: Who knew you could create CFCHART Maps with ColdFusion 8Unknownnoreply@blogger.comBlogger11125tag:blogger.com,1999:blog-5824660313967021040.post-25960202453682125372010-07-14T13:28:57.095-07:002010-07-14T13:28:57.095-07:00@Anonymous,
It sounds like you may have some off ...@Anonymous,<br /><br />It sounds like you may have some off code in either your .wcp file or perhaps the .SHP image is not valid. You may want to run your image through the utility first to make sure it is valid. Because if it does not work there, it will not work in CF either.<br /><br />-LeighcfSearchinghttps://www.blogger.com/profile/11564374520734454860noreply@blogger.comtag:blogger.com,1999:blog-5824660313967021040.post-70653161467985646192010-07-14T06:50:31.962-07:002010-07-14T06:50:31.962-07:00Very nice... problem is I'm getting this an er...Very nice... problem is I'm getting this an error<br /><br />Invalid attribute: outline <br /><br />on this code:<br /><br /><br />#oSvr.getImageTag(oMyChart2, baseURL& "CFIDE/GraphData.cfm?graphCache=wc50&graphID=")#Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5824660313967021040.post-54217068157203820402009-09-04T05:26:56.351-07:002009-09-04T05:26:56.351-07:00@Leigh
I was trying to put the action tag in the ...@Leigh<br /><br />I was trying to put the action tag in the cfml where it creates sample chart data. Went into the wc50 editor and BAM! Works like a charm. Now on to experiment with some jQuery to see if I can make the action display a div below the map.<br /><br />This is one of those 'duh' things that was right in front of my face the whole time, but I couldn't find anywhere in the docs. The maps page in WebCharts3d help is about 3 paragraphs and doesn't mention action anywhere. <br /><br />Thanks for this post!Paigehttps://www.blogger.com/profile/03819645450472865953noreply@blogger.comtag:blogger.com,1999:blog-5824660313967021040.post-25980027889477292732009-09-03T18:33:05.130-07:002009-09-03T18:33:05.130-07:00@Steve,
I updated the entry to include a screen s...@Steve,<br /><br />I updated the entry to include a screen shot of where you would set the action property in the webcharts utility.<br /><br />HTH<br />-LeighcfSearchinghttps://www.blogger.com/profile/11564374520734454860noreply@blogger.comtag:blogger.com,1999:blog-5824660313967021040.post-85150432931670925852009-09-03T16:59:13.010-07:002009-09-03T16:59:13.010-07:00@Steve,
LOL. That had me scratching my head for a...@Steve,<br /><br />LOL. That had me scratching my head for a moment ;)<br /><br />It works fine for me. So I am not sure why it is not working for you. Are you using the webcharts utility to add the "action" property to the wcp file? That is what I used ..<br /><br />-LeighcfSearchinghttps://www.blogger.com/profile/11564374520734454860noreply@blogger.comtag:blogger.com,1999:blog-5824660313967021040.post-66072808374575861322009-09-03T15:49:29.018-07:002009-09-03T15:49:29.018-07:00@Leigh
Sorry, I meant clicking the state, not the...@Leigh<br /><br />Sorry, I meant clicking the state, not the popup (that would be rather difficult wouldn't it?)<br /><br /><br />"For example:<br />map action="somePage.cfm?elemValue=$(value)" ...<br /><br />I'm not familiar with the action and target attribs you speak of. I tried to search but couldn't find anything. Got a link to some syntax docs?<br /><br />Anyway, I added the action attribute to my map tag and nothing happened...I think I need to find a way to edit the imagemap tags that the WebCharts spits out, if I could just slip an onClick attrib in there somehow...Paigehttps://www.blogger.com/profile/03819645450472865953noreply@blogger.comtag:blogger.com,1999:blog-5824660313967021040.post-27825457438650785762009-09-03T15:12:21.544-07:002009-09-03T15:12:21.544-07:00@Steve,
I do not think you could place it in the ...@Steve,<br /><br />I do not think you could place it in the pop-up, because how would you click on it? <br /><br />Try using the usual "action" and "target" attributes in the xml style. Using one of the psuedo variables to pass element properties to the action page.<br /><br />For example:<br /><map action="somePage.cfm?elemValue=$(value)" ...><br /><br />-LeighcfSearchinghttps://www.blogger.com/profile/11564374520734454860noreply@blogger.comtag:blogger.com,1999:blog-5824660313967021040.post-44818868930277674352009-09-03T12:18:36.480-07:002009-09-03T12:18:36.480-07:00Leigh,
I have successfully gotten the USA map to ...Leigh,<br /><br />I have successfully gotten the USA map to display popups with data from my SQL db (loops on the item, looks for two letter state abbv in DB and compares it to the item name in the .wcp file), and it works really well. I also got it to change the state colors based on recordcounts. Kinda like the Woot stat charts that shows how many Wooters are Wooting. http://woot.com/stats<br /><br />I'm banging my head against the desk on my next challenge though. It seems that with other WebCharts types it is possible to add event handlers for onClick per element. Have you seen or maybe developed a way to do this with map charts? <br /><br />I'd like to have the mouseover popup show a snippet (result.recordcount), which it already does, and then if clicked maybe a window.open call to a page with more details on the data for that state. I've seen this done on the web, but not sure if WebCharts is being used or not. Any thoughts?Paigehttps://www.blogger.com/profile/03819645450472865953noreply@blogger.comtag:blogger.com,1999:blog-5824660313967021040.post-32966401442626160022009-05-25T08:15:24.315-07:002009-05-25T08:15:24.315-07:00@Asaf,
My guess would be that webcharts uses the ...@Asaf,<br /><br />My guess would be that webcharts uses the runtime context to determine the base path. So say you are using the developer version (with the Jrun server), webcharts defaults to C:\ColdFusion8\runtime\bin, because that is where jrun.exe is located. <br /><br />- LeighcfSearchinghttps://www.blogger.com/profile/11564374520734454860noreply@blogger.comtag:blogger.com,1999:blog-5824660313967021040.post-69970731985427252262009-05-21T14:08:22.261-07:002009-05-21T14:08:22.261-07:00I approached this problem in a slightly different ...I approached this problem in a slightly different manner. Instead of creating my own .MAP files, I downloaded the most updated version of webcharts from their website (which includes the map files) and just pasted the entire folder into the CF8 charting directory. So in terms of my style and model, I just copied them directly out of the webcharts editor (rather than grab them using the .wcp file). At first this produced an error due to the fact that the source attribute in the style (source="maps/Continents/USA.map") ends up resolving to the CF8/runtime/bin directory. Do you know why it's resolving there? Do you know if grabbing the style from .wcp corrects this problem? I guess this is all moot because I'm able to just hardcode the full path of the .MAP file into the style but I'm more curious why it thinks it should be looking in the runtime/bin directory.<br /><br /><br />P.S. My interest is in the USA Map file but I had to do some editing of the .MAP file to get it to load with the older version of webcharts including with CF8. There are arrows in the chart that help label the small cramped states in New England (such as RI) and WebCharts 5.1 throws an error because of these tags. You will need to remove them to get it to work properly.Asafnoreply@blogger.comtag:blogger.com,1999:blog-5824660313967021040.post-49108684888236127012008-09-03T01:07:00.000-07:002008-09-03T01:07:00.000-07:00nice and helpful. i can use this stuff soonernice and helpful. i can use this stuff soonerAnonymousnoreply@blogger.com