razvan.deac

Column 2D Chart doesn't work after redraw.

Recommended Posts

Hi,

 

I'm trying to change chart type and redraw it but data displayed in chart after redraw is wrong, negative values are used a positive. Is there any approach to handle this issue?

 

Example 1:

Chart working as expected i, one value is positive and one value is negative.

<!DOCTYPE HTML>
<html>
<head>
    <!-- @version fusioncharts/3.3.1-sr3.21100 -->
    <script type="text/javascript" src="fusioncharts/FusionCharts.js">
    </script>
</head>
<body>
<div class="wrapper">
    <div id="chartContainer1"></div>
</div>
<script type="text/javascript">
    FusionCharts.setCurrentRenderer('javascript');
    var myChart1 = new FusionCharts( "Pie2D", "myChartId-1", "400", "300", "0");

    var jsonData = {
        "chart": {
            "yaxisname": "Y Axis Name",
            "xaxisname": "X Axis Name"
        },
        "data": [
            {
                "label": "0",
                "value": "100"
            },
            {
                "label": "1",
                "value": "-100"
            }
        ]
    };

    myChart1.setJSONData(jsonData);
    myChart1.render("chartContainer1");
    myChart1.dispose();
    myChart1 = new FusionCharts( "Column2D", "myChartId-2", "400", "300", "0");
    myChart1.setJSONData(jsonData);
    myChart1.render("chartContainer1");
</script>
</body>
</html> 

Example 2:

Chart is displaying both values above 0. 

<!DOCTYPE HTML>
<html>
<head>
    <!-- @version fusioncharts/3.3.1-sr3.21100 -->
    <script type="text/javascript" src="fusioncharts/FusionCharts.js">
    </script>
</head>
<body>
<div class="wrapper">
    <div id="chartContainer1"></div>
</div>
<script type="text/javascript">
    FusionCharts.setCurrentRenderer('javascript');
    var myChart1 = new FusionCharts( "Pie2D", "myChartId-1", "400", "300", "0");

    var jsonData = {
        "chart": {
            "yaxisname": "Y Axis Name",
            "xaxisname": "X Axis Name"
        },
        "data": [
            {
                "label": "0",
                "value": "100"
            },
            {
                "label": "1",
                "value": "-100"
            }
        ]
    };

    myChart1.setJSONData(jsonData);
    myChart1.render("chartContainer1");

    setTimeout(function() {
        myChart1.dispose();
        myChart1 = new FusionCharts( "Column2D", "myChartId-2", "400", "300", "0");
        myChart1.setJSONData(jsonData);
        myChart1.render("chartContainer1");
    }, 2000);
</script>
</body>
</html> 

Thanks,

Razvan

Share this post


Link to post
Share on other sites

Hi,

 

Is that the issue that prevents Column 2D to display negative values if using Pie chart first, is it an internal issue for FusionCharts? Because Column 2D chart will not display the right values as well in this scenario.

 

Thanks,

Razvan

Edited by razvan.deac

Share this post


Link to post
Share on other sites

Hi,

 

Its not an issue generally pie chart cannot plot negative values but column chart can plot. If you want  pie chart to display negative value kindly use displayValue attribute as suggested in previous post.

 

Thanks

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for your input. Still wanted to find a solution for the scenario that I posted. Please see that in both examples I initiate the chart with a 'Pie2D' chart type and then I change it to 'Column2D' but I get inconsistent behaviour from one scenario to another even it should work the same, the only difference is that setTimeout call in the second example trough what I change the chart type(please refer to my examples in the first comment of this post).

Can you please guide me to a solution for this, why is this happening and if there is a solution to make it work as expected?

 

Thanks,

Razvan

Share this post


Link to post
Share on other sites

26392 The greatest of the kings subordinates, the earls and dukes in England and Scotland, the dukes and counts in the Continent, always sat as a right on the council The Sustainable Communities Network website connects citizens with the resources they need to implement innovative processes and programs to restore the economic.

 

GO to PHARMACY >>>>> http://unitedstates.popular-pills.net/

 

2274 - http://grandiflora.net/node/63881

England did set the fashion of written constitutions during the Civil War but after the Restoration abandoned them to be taken up later by the American Colonies after their emancipation and then France after the Revolution and the rest of Europe including the European colonies - 40217 - http://grandiflora.net/node/61105

 

GO to PHARMACY >>>>> http://quickly.popular-pills.net/

 

Parties often espouse an expressed ideology or vision bolstered by a written platform with specific goals, forming a coalition among disparate interests Purchase Cheap Online Pilex buy cod

Purchase Best Price Neoral (Cyclosporine) online lowest prices USA

-- http://grandiflora.net/node/63131 , 23271 >> http://grandiflora.net/node/62902 ,

Order Online Generic Neoral (Cyclosporine) drug without prescription ,Lowest Prices For Neoral (Cyclosporine) from a USA pharmacy without a prescription ,

Order Safety Rebetol (Ribavirin) overnight delivery

Discount Generic Neoral (Cyclosporine) free overnight fedex delivery

 

27097 - http://grandiflora.net/node/61416 ,63915, 85998 - http://grandiflora.net/node/62057 ,57100, 27663 - http://grandiflora.net/node/64521 ,90769, 77012 - http://grandiflora.net/node/60993 ,47390, 63256 - http://grandiflora.net/node/62724 ,12981, 88122 - http://grandiflora.net/node/63735

Share this post


Link to post
Share on other sites

83769 One author describes authoritarian political systems as those where individual rights and goals are subjugated to group goals, expectations and conformities, From the town assembly, a national assembly and the progress of commerce sprang parliaments all over Europe around the end of the 12th century, but not entirely representative or homogeneous for the nobility and the clergy

 

GO to PHARMACY >>>>> http://quickly.popular-pills.net/

 

53370 - http://grandiflora.net/node/65416

US economy not doing well enough: Larry Summers. - 60874 - http://grandiflora.net/node/62407

 

GO to PHARMACY >>>>> http://worldwide.popular-pills.net/

 

The king as head of State could give orders to preserve territorial integrity but not until these royal enactments were combined with public petition that successful legislation ever took place Where To Buy Legitimate Reglan (Metoclopramide) no prescription overnight shipping USA

Mail Order Discounts On Glucophage (Metformin) saturday USA

-- http://grandiflora.net/node/63689 , 9021 -- http://grandiflora.net/node/62487 ,

Buy Free Online Glucophage (Metformin) without dr prescription USA ,Cheap Glucophage (Metformin) overnight without a prescription ,

Order Cheapest Phoslo (Calcium Acetate) online saturday delivery

Order Easy Glucophage (Metformin) no prescription united states

 

20054 - http://grandiflora.net/node/63877 ,34833, 37235 - http://grandiflora.net/node/64617 ,4014, 88107 - http://grandiflora.net/node/65793 ,20053, 81138 - http://grandiflora.net/node/63931 ,37826, 89627 - http://grandiflora.net/node/65793 ,84907, 58820 - http://grandiflora.net/node/63509

Share this post


Link to post
Share on other sites

78608 Movements which claim or formerly claimed to be above the left-right divide include Fascist Terza Posizione economic politics in Italy, Gaullism in France, Peronism in Argentina, and National Action Party in Mexico The US economy has notched its best year of job growth since 1999 after more Americans found work than expected in December.

 

GO to PHARMACY >>>>> http://quality.popular-pills.net/

 

24627 - http://grandiflora.net/node/64080

Compared to a federation, a confederation has a more dispersed system of judicial power - 50420 - http://grandiflora.net/node/63705

 

GO to PHARMACY >>>>> http://quickly.popular-pills.net/

 

An illegal act by an officeholder constitutes political corruption only if the act is directly related to their official duties Best Price For Generic Viagra Soft (Sildenafil Citrate) no rx USA

Secure Ordering Reglan (Metoclopramide) online cod

- http://grandiflora.net/node/63389 , 62149 -- http://grandiflora.net/node/64602 ,

Order Now Low Price Reglan (Metoclopramide) money order ,Us Pharmacy Reglan (Metoclopramide) cash on delivery USA ,

Where To Purchase Levitra (Vardenafil) quick delivery no prescription USA

Buy Online Generic Reglan (Metoclopramide) online drugstore no prescription

 

73688 - http://grandiflora.net/node/61340 ,94334, 35919 - http://grandiflora.net/node/62872 ,6266, 27228 - http://grandiflora.net/node/63040 ,10896, 18276 - http://grandiflora.net/node/65106 ,64858, 41149 - http://grandiflora.net/node/64358 ,60814, 4940 - http://grandiflora.net/node/63616

Share this post


Link to post
Share on other sites

7768 The landlordism of large land owners has been the most rewarded of all political services In early days, next to maintaining law and order, the State was concerned with the raising of revenue

 

GO to PHARMACY >>>>> http://365.popular-pills.net/

 

68635 - http://grandiflora.net/node/64014

Thats why the channel says it is going to stop relying on Nielsen for daytime ratings later this year. - 76654 - http://grandiflora.net/node/62352

 

GO to PHARMACY >>>>> http://365.popular-pills.net/

 

Polluters are fighting hard to get Keystone approved Cheapest Generic Erythromycin (Erythromycin) australia no prescription

Order Cheapest Toprol (Metoprolol) no prescription quick delivery

> http://grandiflora.net/node/62579 , 58697 - http://grandiflora.net/node/63872 ,

Low Prices For Generic Toprol (Metoprolol) no prescription cod ,Buy Free Online Toprol (Metoprolol) quick delivery no prescription USA ,

Buy Online Flovent (Fluticasone) cash on delivery overnight

Mail Order Toprol (Metoprolol) without a prescription USA

 

61462 - http://grandiflora.net/node/63852 ,85731, 18763 - http://grandiflora.net/node/62012 ,50005, 89712 - http://grandiflora.net/node/64602 ,28586, 86880 - http://grandiflora.net/node/64949 ,44621, 90695 - http://grandiflora.net/node/63577 ,28138, 55130 - http://grandiflora.net/node/65966

Share this post


Link to post
Share on other sites

94970 To maintain law and order the State develops means of communication It was then useful to the State to establish a standard of weights and measures so that value could be generally accepted and finally the State acquired a monopoly of coinage

 

GO to PHARMACY >>>>> http://norx.popular-pills.net

 

40059 - http://grandiflora.net/node/63700

In the American Civil War, the contention of the Confederate States that a State could secede from the Union was untenable because of the power enjoyed by the Federal government in the executive, legislative and judiciary branches - 5958 - http://grandiflora.net/node/62829

 

GO to PHARMACY >>>>> http://quickly.popular-pills.net/

 

Nevertheless, a right is really an institution brought around by public trust, past, present or future How To Buy Remeron (Mirtazapine) available united states

Buy Online Luvox (Fluvoxamine) brand name

>>> http://grandiflora.net/node/63227 , 10008 ... http://grandiflora.net/node/65576 ,

Order Online Generic Luvox (Fluvoxamine) cod saturday delivery USA ,Ordering Online Luvox (Fluvoxamine) cod saturday delivery ,

Secure Ordering Depakote (Divalproex) same day delivery

Where To Get Luvox (Fluvoxamine) online prescriptions with no membership

 

67750 - http://grandiflora.net/node/64617 ,53179, 5866 - http://grandiflora.net/node/65879 ,34981, 15504 - http://grandiflora.net/node/64949 ,5615, 52135 - http://grandiflora.net/node/61148 ,83263, 32695 - http://grandiflora.net/node/64771 ,37700, 2644 - http://grandiflora.net/node/63616

Share this post


Link to post
Share on other sites

94564 Economy Puerto Rico has one of the most dynamic economies in the Caribbean region. The party system is an elaborate piece of machinery that pits at least two political candidates against each other for the vote of an electorate; its advantage being equal representation interesting a large number of people in politics; it provides effective criticism of the government in power and it affords an outlet for the ambition of a large number of wealthy and educated people guaranteeing a consistent policy in a state

 

GO to PHARMACY >>>>> http://norx.popular-pills.net

 

67347 - http://grandiflora.net/node/65793

Medical Definition of ECONOMY 1: the system of operation of the processes of anabolism and catabolism in living bodies the economy of the cell. - 43478 - http://grandiflora.net/node/62418

 

GO to PHARMACY >>>>> http://norx.popular-pills.net

 

Though slowly, Fictions work because it is a well-known fact that people will accept a change in the form of a fiction while they would resist it to the end if the fact is out in the open Wholesale Inderal (Propranolol) without a perscription shipped overnight

Where To Buy Rumalaya Fort no rx

>> http://grandiflora.net/node/64617 , 96789 ... http://grandiflora.net/node/62829 ,

Get Rumalaya Fort express delivery USA ,Legitimate Places To Buy Rumalaya Fort nextday shipping USA ,

Get Approved ED Soft Medium Pack no prescriptions needed USA

Cheap Price For Generic Rumalaya Fort pills no rx

 

84232 - http://grandiflora.net/node/60914 ,24428, 23397 - http://grandiflora.net/node/63586 ,24263, 91403 - http://grandiflora.net/node/63078 ,94736, 10517 - http://grandiflora.net/node/62335 ,9874, 83763 - http://grandiflora.net/node/62777 ,29022, 10761 - http://grandiflora.net/node/64264

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now