wbdvlpr

Members
  • Content count

    20
  • Joined

  • Last visited

Everything posted by wbdvlpr

  1. Hi, I am displaying multiple charts on a single webpage. I load the first chart page onload and the remaining charts get loaded upon clicks on first or other charts. Some of the javascript functions look like this -> function updateChart2(id1,id2){ var strURL = "file1.php?id1=" + id1 + "&id2=" +id2; strURL = strURL + "&currTime=" + getTimeForURL(); //alert(strURL); strURL = escape(strURL); var chartObj = getChartFromId("chart1Id"); chartObj.setDataURL(strURL); } I call these functions as: id1=2; id2=3; updateChart2(id1,id2); updateChart3(id1,id2); updateChart4(id1,id2); file1.php, file2.php, fileX.php return either "< chart ..> < / chart>" when no record available OR some values in these chart tags. If I put following check if(typeof chartObj == '[object]') { chartObj.setDataURL(strURL); } else { alert("Not object"); } OR chartObj != Null chartObj.SetDataURL(strURL) then I dont get this error. why I get chartObj as null even if I have initialised it with "< chart > .. < / chart>" tags. Because its empty?? (I initialise charts in main.php file with empty chart tags and update these with updateChartX functions (as above)) I think I have observed that If I call these functions one per click I dont get the "is not a function" error .. but if I call 3-4 updateChartX functions in one go then If fileX.php returns empty "< chart > .. < / chart>" data then I get this "setDataURL is not a function" error. How do I debug/solve this? Please help. Thank you.
  2. Hi there, I have just one chart, pyramid, on my webpage (having 5 slices). This page displays/works fine in FF. But as soon as I open this page in IE (7) it throws up following error message. Internet Explorer can't open the site http://www.mysite.com/page_fusionwidgets.php. Operation Aborted [OK] Clicking OK just takes me out to "Internet Explorer cannot display this webpage" page. How do I make my page working in IE?? Please help me out. Thanks, ~~CJ~~
  3. Thanks for your reply Rahul. The main reason I posted my question here was that my other fusioncharts on another website are working fine in IE. So I thought it is something to do with fustion widgets. I think I have got it working now .. I was using this method to print my chart on the page. I just changed it into the php method and it worked fine for me. < div id="chartdiv" align="center" > The chart will appear within this DIV. This text will be replaced by the chart. < script type="text/javascript"> var myChart = new FusionCharts("Charts/AngularGauge.swf", "myChartId", "400", "200", "0", "0"); myChart.setDataURL("Data.xml"); myChart.render("chartdiv"); script > The links helped me in understanding the problem. Thanks, ~~CJ~~
  4. Pyramid animation .. not working

    Thanks for your reply. CJ
  5. Hi all, I was just trying to animate pyramid using following code .. but it didnt animate .. < chart animation='1' defaultAnimation='0' caption='my caption' subCaption='activity' numberPrefix='aaa ' > < set label='Callahan' value='49000' /> < set label='Davolio' value='63000' /> < set label='Dodsworth' value='41000' /> < set label='Fuller' value='74000' /> < set label='King' value='49000' /> < set label='Leverling' value='77000' /> < set label='Peacock' value='54000' /> < set label='Suyama' value='14000' /> < styles > < definition> < style type='font' name='captionFont' size='18' /> < style name='MyXScaleAnim' type='animation' duration='1' start='0' param='_xscale' /> < style name='MyYScaleAnim' type='animation' duration='1' start='0' param='_yscale' /> definition> < application> < apply toObject='caption' styles='captionFont' /> < apply toObject='Canvas' styles='MyXScaleAnim,MyYScaleAnim' /> application> chart> How do I debug this? thanks for your help.
  6. Pyramid animation .. not working

    http://www.fusioncharts.com/widgets/docs/ - Pyramid Chart > XML Sheet CANVAS The entire area inside which the chart is plotted. * Animation * Shadow * Glow * Bevel * Blur * _alpha * _x * _y * _xScale * _yScale But the documentation does mention about animation.. doesnt it? Thanks for your reply.
  7. I'll start with example I am using drill downs functionality with fusion charts .. I was just thinking if I could change ChartNoDataTExt message to something different when the there is not any data for a click. For example, in employees chart, click on emp1 updates sales chart for emp1 .. but if there is not any sales data available for emp1 can I change ChartNoDataText? When I instantiate chart I set ChartNoDataText as follow .. "FusionCharts/Pie3D.swf?ChartNoDataText=Sales values are displayed in this Chart." This chart gets updated with some bars or lines .. but if no sale value is present it keeps saying "sales values are displayed in this chart" .. I want this to be "No sales value present for this emp"; is it possible? It is not necessary to have "text message only", any other trick by which I could show that there is not any data available for that click would do. Please help. Thanks
  8. Hi, Thanks for your reply. Is there any way around if not chart data is available I can show empty chart canvas with some text? thanks
  9. chartObj.SetDataURL is not a function

    Hi Can I email it to you? Thanks
  10. chartObj.SetDataURL is not a function

    Thank you for your reply. Sorry I forgot to mention that I am using Registered = True; render_chart(......., true); If I do one click per chart ( for example click on chart 1 updates chart 2, click in chart2 updates chart3) then I pass thru check if(typeof chartObj == 'function' || typof chartObj == 'object') WHEN I am IN IF BLOCK and if the data file returns some values I dont get this error and chart gets displayed. IF THERE IS NOT DATA THEN I DONT GET THE "is not a function" error. Thats Perfect. However things change when I try to call functions in one go function updateAll(id) { updateChart1(id) updateChart2(id) updateChart3(id) } Now if UpdateChart3 has some data it will print otherwise it passes thru above IF CHECK and throughs me error "chartobj.setdataurl is not a function" ?? Please help me how to solve/debug this. Thanks
  11. Saving chart as an image.

    Hi Using fusioncharts I am able to save chart as an image. in Chart tag ..... imageSave='1' imageSaveURL='ChartAsImage.php in java script -> var chartToPrint = getChartFromId(chartId); chartToPrint.saveAsImage(); The problem is when I click on button/link to save chart as image it takes me to ChartAsImage.php .. is it possible to avoid this (making it happen in background) or in new window?? The reason I want this in background or new window is that .. when we do drill downn we pass some values using java script to another chart (which is to be updated) .. Opening in same window causes users to restart their drill down action from the beginning. I tried java script history go back -1 when the image is saved, but the charts get restarted to original values. Is there any way (PHP/Java Script etc) to avoid this? Please help/guide me .. and it will be highly appreciated. Thank you. Cj
  12. Saving chart as an image.

    Thank you for your reply.
  13. hi we set javascript links in charts (for drill down) as .. $strXML .= " set label='" . $ors['name'] . "' value='" . $ors['numVal'] . "' link='javaScript:updateChart2(" . $ors['catid'] . ")' "; Is it possible to call 2 functions with one click? can we set 2 functions like "link=javascript:func1();func2()". please guide me to correct way. PS: I can call func2() within func1().. but want to set it on the click. Thanks, Cj
  14. Hi I am using pro version of FusionCharts and trying drill down functionality using PHP and Javascript. I am using a series of charts for drill downs .. I mean .. Click in chart A -> updates chart B Click in chart B -> updates Chart C Click in chart C -> updates D, E and F. Now that D,E, and F are loaded, if I click on chart B, the charts D, E, and F remain loaded. But I want them to be dependent on C. Is it possible that after first drill down till D, E, F if I click back on B, charts D,E,F are re-initiated / removed / reloaded to blank?? so that I can click on C to refresh them with fresh values (depending upon click in C). Please help. If you don't get the question I can try rephrasing all!! Thanks Cj
  15. Reload / reInit / remove a chart??

    Hi, Thanks for your reply. Yes, it was about coding/logic flow. I have another question related to this functionality. As I am using series of drill down .. when I click on Chart C I load D,E,F,G,H,I (6-7) other charts. It works fine but sometimes one or two of the charts will not load and I see message error loading data. Just a re-click on Chart C makes these charts work fine. Is it due to number of charts on the same page? Any idea to avoid this situation will definitely be a great help. Could not stop myself from another question. This is more with javascript .. should I put this in Java Script Problems section?? function toggleme(elem) { elem = document.getElementById(elem); if (elem.style.display == 'block' || elem.style.display == '') elem.style.display = 'none'; else elem.style.display = 'block'; return; } I am using this function to show/hihde some charts. Its show/hide functionality works but when I hide a section and then ask show all the charts of that section are reset!! Section 1 has charts A,B - Section 2 has C,D which get updated by click in A or B. But click on show/hide (above js function) for section 2 makes it hide/show but resets charts C & D as well!! Is it possible to avoid this? if yes please guide. Thank you for your valuable time. Cj