solucionar_tasker

Members
  • Content count

    7
  • Joined

  • Last visited

Posts posted by solucionar_tasker


  1. Hi,

     

    I have a problema with my DragNode Chart. I have to remove an node, from the dataset and from the chart visualy.

     

    I just try clone de object returned by .setJSONDATA(), later i try remove the index and later i try update de JSON using .setJSONDATA.

    This code is called into a FC_ChartUpdated.

     

    Look an example for this code:

     

    function FC_ChartUpdated(chartId, dataIndex, datasetIndex){

    if(remove){ //seted for other function

    chartJSONData = jQuery.extend(true, {}, FusionCharts(chartId).getJSONData());

    chartJSONData.dataset[datasetIndex-1].data.splice(dataIndex-1,1);

    FusionCharts(chartId).setJSONData(chartJSONData);

    }

    }

     

    This works fine if i NOT DRAG any node before this i want remove. Exemple:

    If i drag the node 'A1', and remove this node. The chart works fine.

    But, if i drag the node 'A2', and later i drag the node 'A1' and try remove him, the chart rendered the node 'A2' (and the others) for the wrong coordinate X and Y.

     

    Exists an method of remove only one node per time?

     

    Thank you


  2. Hi,

     

    i'm glad for your answer. This helped me so much and solve my problem! =)

     

     

    But, i have more two problems:

     1º -> in my drag node chart, sometimes, when i draging a node, appears an window with details of this node. I don't know how to make this window not show in my chart. Exists an method to set to make not show this window? 

     

     2º -> in my drag node charts, many nodes appears "blurred" (blurry). This problem ocurred in the Internet Explorer, Google Chrome and Firefox. How i can fix this?

     

     

     Thx


  3. Hi,

     

    Sorry for my english.

     

    I wish know if i can execute an js code when i DRAG a node on chart.

    For exemple:

    in the , i can set the "link" to be execute when i CLICK in a node on chart.

    But i can't execute this function when i DRAG a node.

     

    I need execute this functior for get a "id" (key value) for this node.

    When a set a drag event (JQUERY) for this node, i can't get the id because i don't have how to know if this is the same on the getJSONData() object.

     

    How i can do that?

    Thx