Examples of legend()


Examples of org.sgx.yuigwt.yui.charts.CartesianChartConfig.legend()

    //a first cartesian chart.
    CartesianChartConfig chartConfig = CartesianChartConfig.create().cast();
    chartConfig.categoryKey("date");
    chartConfig.dataProvider(data1);
    chartConfig.render("#chart1");
    chartConfig.legend(legendConfig1);
    chartConfig.axe("category", AxisConfig.create().
      keys(new String[]{"date"}).
      styles(AxisStyle.create().
        label(AxisStyle.Label.create().rotation(45).fontSize("9px"))
      ).
View Full Code Here

Examples of org.sgx.yuigwt.yui.charts.CartesianChartConfig.legend()

      append("<p>a default chart with custom axes</p>");
   
    //now a second chart of type columns and a custom legend style. use the same config object
    chartConfig.type(ChartBase.TYPE_COLUMN);
    chartConfig.render("#chart2");
    chartConfig.legend(ChartLegendConfig.create().position("left"));
    CartesianChart chart2 = Y.newChart(chartConfig).cast().cast();
    chart2.boundingBox().getNode("parentNode").getNode("parentNode").
      append("<p>A <b>column</b> chart with custom axes and legend style</p>");
   
    //now the same chart of type bar and custom bar colors
View Full Code Here

Examples of org.sgx.yuigwt.yui.charts.CartesianChartConfig.legend()

      append("<p>A <b>column</b> chart with custom axes and legend style</p>");
   
    //now the same chart of type bar and custom bar colors
    chartConfig.type(ChartBase.TYPE_BAR);
    chartConfig.render("#chart3");
    chartConfig.legend(ChartLegendConfig.create().position("bottom"));
    chartConfig.seriesCollection(new CartesianSeries[]{
//      CartesianSeries.C
    });
    CartesianChart chart3 = Y.newChart(chartConfig).cast().cast();
    chart3.boundingBox().getNode("parentNode").getNode("parentNode").
View Full Code Here

Examples of org.sgx.yuigwt.yui.charts.CartesianChartConfig.legend()

    chart3.boundingBox().getNode("parentNode").getNode("parentNode").
      append("<p>the same as before but type <b>bar</b> and bottom legend and and custom bar colors.</p>");
   
    chartConfig.type(ChartBase.TYPE_MARKERSERIES);
    chartConfig.render("#chart4");
    chartConfig.legend(ChartLegendConfig.create().position("bottom"));
    CartesianChart chart4 = Y.newChart(chartConfig).cast().cast();
    chart4.boundingBox().getNode("parentNode").getNode("parentNode").
      append("<p>the same as before but type <b>markseries</b></p>");
   
  }
View Full Code Here

Examples of org.sgx.yuigwt.yui.charts.CartesianChartConfig.legend()

    JsObject axes = JsObject.one("percentage", AxisConfig.create().axisType("numeric"));
    CartesianChartConfig chartConfig = CartesianChartConfig.create().cast();
    chartConfig.categoryKey("date");
    chartConfig.dataProvider(data1);
    chartConfig.render("#chart1");
    chartConfig.legend(legendConfig1);
    chartConfig.axe("category", AxisConfig.create().
      keys(new String[]{"date"}).
      styles(AxisStyle.create().
        label(AxisStyle.Label.create().rotation(45).fontSize("9px"))
      ).
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.