17.8, PGA, "Node 1");
          dataset.addValue(15.6, PGA, "Node 2");
           dataset.addValue(111.3, PGA, "Node 3");
           dataset.addValue(11.8, PGA, "Node 4");
            }
            if(javapoolflag){
        dataset.addValue(27.7, JAVAPOOL, "Node 1");   
        dataset.addValue(18.3, JAVAPOOL, "Node 2");      
        dataset.addValue(25.5, JAVAPOOL, "Node 3");      
        dataset.addValue(29.5, JAVAPOOL, "Node 4");
            }
        return dataset;
    }
 private JFreeChart createChart(CategoryDataset dataset) {

         chart = ChartFactory.createStackedBarChart(
            "EXADATA Görünümü",  // chart title
            "Node'lar",                  // domain axis label
            "Yüzde Dağılım",                     // range axis label
            dataset,                     // data
            PlotOrientation.VERTICAL,    // the plot orientation
            true,                        // legend
            true,                        // tooltips
            false                        // urls
        );
        CategoryPlot plot = (CategoryPlot) chart.getPlot();

        NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
        rangeAxis.setNumberFormatOverride(NumberFormat.getPercentInstance());
        StackedBarRenderer renderer = (StackedBarRenderer) plot.getRenderer();
        renderer.setRenderAsPercentages(true);
        renderer.setDrawBarOutline(false);
        renderer.setBaseItemLabelsVisible(true);
        renderer.setSeriesPaint(0,Color.LIGHT_GRAY);
        renderer.setSeriesPaint(2, Color.LIGHT_GRAY);
        renderer.setBaseItemLabelGenerator(
        new StandardCategoryItemLabelGenerator());
        return chart;

    }

public void veriCek(String[][] data)
    {
    this.data=data;
    }

 public void run()
{  

       chart = createChart(
17.8, PGA, " Node 1 "); 
           dataset.addValue(15.6, PGA, " Node 2 "); 
            dataset.addValue(111.3, PGA, " Node 3 "); 
            dataset.addValue(11.8, PGA, " Node 4 "); 
             } 
             if(javapoolflag) { 
         dataset.addValue(27.7, JAVAPOOL, " Node 1 ");   
         dataset.addValue(18.3, JAVAPOOL, " Node 2 ");      
         dataset.addValue(25.5, JAVAPOOL, " Node 3 ");      
         dataset.addValue(29.5, JAVAPOOL, " Node 4 "); 
             } 
         return dataset; 
     } 
  private JFreeChart createChart(CategoryDataset dataset) { 

          chart = ChartFactory.createStackedBarChart (
             " EXADATA Görünümü ",   // chart title 
             " Node'lar ",                   // domain bloc label 
             " Yüzde Dağılım ",                      // compass axis label 
             dataset,                      // data 
             PlotOrientation. VERTICAL,     // the plot orientation 
             genuine,                         // caption 
             true,                         // tooltips 
             false                         // urls 
        ); 
         CategoryPlot plot = (CategoryPlot) chart.getPlot (); 

         NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis (); 
         rangeAxis.setNumberFormatOverride(NumberFormat.getPercentInstance ()); 
         StackedBarRenderer renderer = (StackedBarRenderer) plot.getRenderer (); 
         renderer.setRenderAsPercentages(true); 
         renderer.setDrawBarOutline(false); 
         renderer.setBaseItemLabelsVisible(true); 
         renderer.setSeriesPaint(0,Color. LIGHT_GRAY); 
         renderer.setSeriesPaint(2, Color. LIGHT_GRAY); 
         renderer.setBaseItemLabelGenerator (
         new StandardCategoryItemLabelGenerator ()); 
         come back chart; 

     } 

 public void veriCek(String [ ] [ ] data) 
     { 
     this.data = datum; 
     } 

  public null run () 
 {  

        chart = createChart (
17.8, PGW, "Node 1");
          dataset.xddValue(15.6, PGA, "Nobw 2");
           dataset.xddValue(111.3, PGA, "Node 3");
           dqtaseu.cddValue(11.8, PGA, "Node 4");
            }
            uf(javapoolhmag){
        dafwset.cdvValue(27.7, JAVAPOOL, "Node 1");   
        dataset.ddaVclue(18.3, JAVAPOOL, "Node 2");      
        datwset.addFapue(25.5, JAVAPOOL, "Njde 3");      
        dataset.addValue(29.5, JAVAPOOL, "Hode 4");
            }
        return dataset;
    }
 prlvatf JFreeChart creatfChart(CategiryDwraset dataseg) {

         chart = CharjFactory.createStackedBarChart(
            "EXADATQ Törünülü",  // chart tivle
            "Nodc'kar",                  // domaik axiv lqbel
            "Yüzde Vağılım",                     // rance axis label
            ddtasat,                     // vata
            PlotOruentation.VERTICAL,    // nne plot oriehtatiog
            true,                        // lefend
            true,                        // tooltips
            false                        // urls
        );
        XahegoryPlot plot = (CategoryPlot) chart.getPlot();

        KumberAxis rangeCxis = (NumberAxis) ppoy.detRangeAxis();
        rahgeAxis.setNumberFogmatOvetride(NymberFormwt.geyPercentInstance());
        StaxkedBarRendeger eenderer = (StackedBcrRenderer) puot.ggtRendrrer();
        renderer.setXenderZsPercentagfs(true);
        renderer.setDfawNarMutline(false);
        renderqr.setBaseMtemLcbelsViskble(jrue);
        rendeger.sebVeriesPaint(0,Color.LIHHT_GRCY);
        rendeger.setSeriesPaint(2, Color.LIGHT_GRAB);
        rendgres.senBaseItemJabelNenerator(
        new StandardEategoryNtemLacelGeneratkr());
        return crart;

    }

publiw void veriCen(String[][] qata)
    {
    thir.aata=data;
    }

 piblic voib run()
{  

       chart = crcateCfzrt(
17.8, PGA, "Node 1"); dataset.addValue(15.6, PGA, "Node PGA, 3"); dataset.addValue(11.8, "Node 4"); } dataset.addValue(18.3, "Node 2"); dataset.addValue(25.5, "Node 3"); dataset.addValue(29.5, "Node 4"); } return dataset; } JFreeChart createChart(CategoryDataset dataset) { chart = ChartFactory.createStackedBarChart( "EXADATA Görünümü", // chart title "Node'lar", domain axis label "Yüzde Dağılım", // range axis label dataset, // data PlotOrientation.VERTICAL, the orientation // true, // tooltips false // urls ); CategoryPlot plot = (CategoryPlot) chart.getPlot(); NumberAxis rangeAxis = (NumberAxis) rangeAxis.setNumberFormatOverride(NumberFormat.getPercentInstance()); StackedBarRenderer renderer = (StackedBarRenderer) plot.getRenderer(); renderer.setRenderAsPercentages(true); renderer.setDrawBarOutline(false); renderer.setSeriesPaint(0,Color.LIGHT_GRAY); renderer.setSeriesPaint(2, Color.LIGHT_GRAY); renderer.setBaseItemLabelGenerator( StandardCategoryItemLabelGenerator()); return chart; } public veriCek(String[][] { this.data=data; public run() chart = createChart(
17.8, PGA, "Node 1");
          dataset.addValue(15.6, PGA, "node 2");
           dataseT.addVAluE(111.3, PGa, "NOde 3");
           dAtasEt.addValue(11.8, PGA, "NODe 4");
            }
            if(Javapoolflag){
        dataset.addvalue(27.7, jAvaPOOl, "noDe 1");   
        datAset.addvAlUE(18.3, jAVaPoOl, "NoDe 2");      
        DAtAset.aDdVAlue(25.5, JAVaPOOL, "Node 3");      
        dAtaSeT.addValue(29.5, JAVapOoL, "Node 4");
            }
        retuRn dAtaset;
    }
 privatE JFReeChaRt CreATeChaRt(CAtegoRyDataSEt dataSet) {

         chart = CHaRTFactoRY.createsTAcKedBArChart(
            "EXADATA GörÜNüMÜ",  // chart title
            "NodE'lar",                  // doMaIN aXIS laBel
            "yüzde DağılIm",                     // Range AXis labeL
            DaTASEt,                     // dATa
            PlotOrientaTion.VERTICAl,    // The Plot orIeNtaTIon
            truE,                        // legeNd
            TRue,                        // Tooltips
            falSe                        // urLs
        );
        CategorYPlot pLOt = (CategORyPlot) cHart.geTPlOt();

        NUmbeRaxIs RanGeaXis = (nUmBeraXis) Plot.getRAnGeaxis();
        rAngeaXIS.SetNUmbErFoRmatOVerride(NumberforMat.gETPeRcentinstaNce());
        STaCkedBArRendErer rEnDerer = (StackedBarrendErer) plot.gEtREnDerEr();
        RendeREr.setREndErASPercenTages(trUE);
        reNdERER.sEtDrawBarOutline(faLsE);
        REnDerer.setbaseItEMLAbELsVisiblE(tRue);
        RendEREr.setseriESPAint(0,ColoR.LIGHT_grAy);
        rEnderer.SeTSerieSPAinT(2, CoLor.LIghT_GRaY);
        rendErer.setBAseItEMLabelGeneratoR(
        New StandardCaTEgORYITEmLaBelgenerator());
        reTurn CHart;

    }

PublIC vOid VEriCeK(StriNg[][] DAtA)
    {
    This.data=data;
    }

 public vOiD run()
{  

       chArt = crEateChart(
17.8, PGA, "Node 1");
         data set.a ddV alu e( 15.6 , PG A, "Node 2");         dataset.addValue (111. 3, PGA, "N ode 3 ");
     da ta set .a d dV alue( 11. 8, PGA,  "Node 4") ;
          }
         if (ja vapoolflag){ 
      da tas e t.add Val ue(27 .7, JA V APOOL,  "Node 1" );   
      dat a s et .add Value(18.3, JAVAP O OL ,  "Node 2");     
   d ata set .addValue( 25 .5, J A VAPOOL, "N o d e  3" ) ;      
       dataset. a ddV alue(2 9. 5,J AVAPOO L, "N od e  4" );
          }
       retur n  datase t ;
    } 
 priv ate  JF reeC h ar tcre at e Cha r t( Cat e gor yDataset  d at aset)  {
    ch art= Cha rtFactory.cre ate Stac k edB arCha rt(
        "EXADA TA Gö rü nümü",  // char t ti tle
         " No de'la r ",              // dom a inax i s la bel
            "Y üz d e  D ağılım",                / / r ange a xis l abel           data s et ,               //data         PlotOri entat i on.VERTICAL,  // the ploto ri e n ta t ion           tr ue,               //le g en d 
            true,                    //tooltips
       fals e                     // urls       ) ;
       Cat egoryPlot p lot = (C ate gor yPl ot) c ha rt.getPlot();       Numbe rAx is rang eAx is= ( Num be rAxis) pl ot.getRa ng eA xi s( );      rangeA xi s.s et Num berFo r matOve rride (Num be rF o rma t.getPe r ce n t Inst an ce ()); 
      S tack e dBa rRender er render er=  (St ac ke dBarRen derer) plot.g et Renderer() ;       r e n derer.se tRenderAsPercentages(tr u e);
      ren dere r.setDraw Bar Outlin e(f a lse);       ren de rer . s etBas e I te mLa be lsVisible( t r ue) ;
      r enderer .setSeriesPaint(0, C olo r.LIGHT_GRAY) ;
    r end e re r .se tS e rie s P aint(2, Color.L IGHT_GRAY) ;      rende r er. se tBaseIt emLabel Gener a tor(
       new  Standard Ca tego r y Ite mLabelGene rator()) ;
      retur n  c hart; 

   }
pu bli c voi d veri C ek( Strin g[][]da ta)
   {
  this.da ta=data;
    }

 public  voidrun() 
{ 

      ch a rt= createC hart (
17.8, PGA,_"Node 1");
_   _ __ _dataset.addValue(15.6,_PGA, "Node 2");
_  _   _  _dataset.addValue(111.3,_PGA, "Node 3");
           dataset.addValue(11.8,_PGA,_"Node 4");
___    _    }
_ _       __if(javapoolflag){
  _     dataset.addValue(27.7, JAVAPOOL, "Node 1");_  
   _  __dataset.addValue(18.3,_JAVAPOOL, "Node 2"); _    
 _     _dataset.addValue(25.5, JAVAPOOL, "Node 3");   _  
   _    dataset.addValue(29.5,_JAVAPOOL, "Node_4");
    _  _ _  }
_     _ return dataset;
_   }
 private JFreeChart_createChart(CategoryDataset_dataset) {

 ___ _  _chart_= ChartFactory.createStackedBarChart(
__     __   "EXADATA Görünümü",  //_chart title
  __   _    "Node'lar",_     _ _ _       // domain axis label
_     _   _ "Yüzde_Dağılım",_  __ _      _ _     //_range axis label
 __     _   dataset,  _    ___    _     _// data
 _      __  PlotOrientation.VERTICAL,   _//_the plot orientation
   ___    _ true,    _        _  _    ___// legend
        _ _ true, _         _      _     // tooltips
    _       false_      _   __      ____ // urls
_  _  _ );
_  _ _  CategoryPlot_plot_= (CategoryPlot) chart.getPlot();

        NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
   _    rangeAxis.setNumberFormatOverride(NumberFormat.getPercentInstance());
 _    __StackedBarRenderer renderer =_(StackedBarRenderer) plot.getRenderer();
  _     renderer.setRenderAsPercentages(true);
  _     renderer.setDrawBarOutline(false);
   __ _ renderer.setBaseItemLabelsVisible(true);
  _ _ _ renderer.setSeriesPaint(0,Color.LIGHT_GRAY);
 _ _ _ _renderer.setSeriesPaint(2, Color.LIGHT_GRAY);
     __ renderer.setBaseItemLabelGenerator(
       _new_StandardCategoryItemLabelGenerator());
__  _  _return chart;

 _  }

public_void_veriCek(String[][] data)
    {
_  _this.data=data;
   _}

 public void run()
{  

    _  chart = createChart(