mangeshlad86

Members
  • Content count

    11
  • Joined

  • Last visited

Posts posted by mangeshlad86


  1. Hi,

     

    I am using fusion charts XT javascript charts.

    Consider the following situation - I have created Pie Chart and I have facility to edit that chart and select different chart types.

    While I switch between different chart types, It works perfectly as I want, but while ajax call is fetching the data, it shows the error

    "Chart type not supported with fusion charts logo below it".

     

    Following is the code I user to switch between the charts - 

     

     

     

             
                var chartObject1 = FusionCharts("fu-chart-<?php echo $model->id ?>");                                                                                                                       
    
    
                //if chart is already created, then dispose it
                if(chartObject1 != null)
                    chartObject1.dispose();
                
               //create the chart dynamically with chart type chartType
                var myChart = new FusionCharts( chartType, "fu-chart-<?php echo  $model->id ?>", "100%", "100%");
               
                var chartDataUrl = "path/to/url";
    
    
                myChart.setXMLUrl(chartDataUrl); 
    
    
                myChart.render("chartdiv-<?php echo $canvasItem->id ?>");

    post-48943-0-97476800-1396447690_thumb.png


  2. Hi,

     

    I am using fusion charts XT javascript charts. I create a different types of charts using fusion charts.

    Consider the following situation - I have created Pie Chart and I have facility to edit that chart and select different chart types.

     

     

     

               var chartObject1 = FusionCharts("fu-chart-<?php echo $model->id ?>");                                                                                                                       
     
                if(chartObject1 != null)
                    chartObject1.dispose();
     
                var myChart = new FusionCharts( chartType, "fu-chart-<?php echo  $model->id ?>", "100%", "100%");
               
    var chartDataUrl = "path/to/url";
     
                myChart.setXMLUrl(chartDataUrl); 
     
                myChart.render("chartdiv-<?php echo $canvasItem->id ?>");

  3. Hi,

     

    Thanks for your reply.

    I have checked that link. I have already used the method mentioned there for other ajax calls (other than FC).

    But for fusion charts,  I am not using $.ajax for getting chart data,

    I am using

    myChart.setXMLUrl(chartDataUrl); 

    So I am not able to capture ajax calls sent through Fusion Chart. Is there any other way like API function of fusion chart ?


  4. Hi,

     

    I have page with multiple charts on it. On some date change trigger they all get refreshed.

    I am using 

    myChart.setXMLUrl(chartDataUrl); 

    to get chart data in xml format.

     

    I want cancel previous incomplete ajax request when new one is made. I have tried using

    $.ajaxSetup({
            beforeSend: function(jqXHR) {
                console.log('adding xhr');
                $.xhrPool.push(jqXHR);
            },       
            complete: function(jqXHR) {
                var index = $.xhrPool.indexOf(jqXHR);
                if (index > -1) {
                    console.log('deleting xhr');
                    $.xhrPool.splice(index, 1);
                }
            },
            global:true
        })
    

    and aborting all ajax calls in next date change.

    The problem is that I am not able to get fusion charts ajax request in my $.xhrPool requests array.

     

     

    Is there any other way to cancel in progress ajax request.

     

     

    Thanks 

     


  5. Hi,


     


    I am using StackedColumn3D/StackedBar3D chart.


    I am using server-side export using apache batik rasterizer as explained in Fusion chart documentation.


    For me export is working fine for Pie3D but for StackedBar2D in IE9 and IE10, it is generating Black and white images.


    It is working in mozilla,chrome and strangely in IE7 and IE8


     


    It is also working on Windows Server 2008 in IE9.


     


    My fusionchart version is 3.3.0-release.18739 and I am using Javascript charts.


    Operating System - Windows 7 Ultimate


     


    Let me know if it is bug and is there any workaround.


     


    I am attaching here XML for this report for your reference.


     


    Thanks in advance.

    chart-xml.txt


  6. Hi,

     

    I am using StackedColumn3D/StackedBar3D chart. It is working fine when I set stack100Percent='0'. If I set stack100Percent='1' it is giving me error.

    I have checked XML and found that If I remove elements in <dataset> having blank values  and set them to 0 then it works.

     

     

    My problem is I dont want to show <set value='0'> elements in chart. So I made them <set value=''>. This is causing problem.

     

    For further details I am attaching xml file herewith. My fusionchart version is 3.3.0-release.18739 and I am using Javascript charts.

     

     

    Let me know if it is bug and is there any workaround.

     

    Thanks in advance.

    xml