FusionCharts - JSON Data

 var chart1 = new FusionCharts("MSCombiDY2D.swf", "ChartID", "100%", "100%", "0", "0");
          chart1.setJSONData(
           {
        animation:"1",
        caption:"JSON Data",
        lineThickness:'5',
        showValues:'0',
        sNumberSuffix:'%',
        decimals:'3',
        setAdaptiveYMin:'1',
        setAdaptiveSYMin:'1',
        categories:{category:[{label:"1"},{label:"2"},{label:"3"},{label:"4"},{label:"5"}]},
        dataset:[{  
       seriesName:"Product 1",
       set:[{value:"111"},{value:"122"},{value:"224"},{value:"124"},{value:"124"}]
        },{  
         seriesName:"Product 2",
         set:[{value:"123"},{value:"141"},{value:"224"},{value:"124"},{value:"122"}]
        },{  
         seriesName:"Product 1-1",
         parentYAxis:'S',
         set:[{value:"23"},{value:"41"},{value:"22"},{value:"14"},{value:"22"}]
        },{  
         seriesName:"Product 2-1",
         parentYAxis:'S',
         set:[{value:"12"},{value:"14"},{value:"24"},{value:"12"},{value:"12"}]
        }],
        trendlines:{
         line:[{startValue:6,color:"FFFF00"},{startValue:10,color:"ff0000",endvalue:"15",isTrendZone:true}
        ]}}
          );
        chart1.render("srp_wo_main2_chart");

你可能感兴趣的:(软件开发,json,animation,dataset)