Examples of XAxis


Examples of br.digilabs.jqplot.axis.XAxis

    }

    public XAxis createXAxis() {
        Axes newAxes = createAxes();
        if (newAxes.getXaxis()==null) {
            XAxis xAxis = new XAxis();
            newAxes.setXaxis(xAxis);
        }
        return newAxes.getXaxis();
    }
View Full Code Here

Examples of br.digilabs.jqplot.axis.XAxis

        getChartConfiguration().setStackSeries(true);
        getChartConfiguration().setShowMarker(false);
        SeriesDefaults defaults = new SeriesDefaults();
        defaults.setFill(true);
        setSeriesDefaults(defaults);       
        XAxis xAxis = createXAxis();
        xAxis.setRenderer(JqPlotResources.CategoryAxisRenderer);
    }   
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.axis.XAxis

  @Override
  public void populateData(ChartConfig config) {
    BarChart chart = (BarChart) config;
    config.getValues().clear();

    XAxis xAxis = null;
    if (labelProperty != null || labelProvider != null) {
      xAxis = chart.getModel().getXAxis();
      if (xAxis == null) {
        xAxis = new XAxis();
        chart.getModel().setXAxis(xAxis);
      }
      xAxis.getLabels().getLabels().clear();
    }
    for (ModelData m : store.getModels()) {
      Number n = getValue(m);
      if (n == null) {
        chart.addNullValue();
      } else {
        chart.addBars(new Bar(n));
        minYValue = Math.min(minYValue, n.doubleValue());
        maxYValue = Math.max(maxYValue, n.doubleValue());
      }
      if (xAxis != null) {
        xAxis.addLabels(getLabel(m));
      }
    }
  }
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.axis.XAxis

  @Override
  public void populateData(ChartConfig config) {
    LineChart chart = (LineChart) config;
    chart.getValues().clear();

    XAxis xAxis = null;
    if (labelProperty != null || labelProvider != null) {
      xAxis = chart.getModel().getXAxis();
      if (xAxis == null) {
        xAxis = new XAxis();
        chart.getModel().setXAxis(xAxis);
      }
      xAxis.getLabels().getLabels().clear();
    }

    boolean first = true;
    for (ModelData m : store.getModels()) {
      Number n = getValue(m);
      if (n == null) {
        chart.addNullValue();
      } else {
        chart.addValues(n);
        maxYValue = first ? n.doubleValue() : Math.max(maxYValue, n.doubleValue());
        minYValue = first ? n.doubleValue() : Math.min(minYValue, n.doubleValue());
        first = false;
      }
      if (xAxis != null) {
        xAxis.addLabels(getLabel(m));
      }
    }
  }
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.axis.XAxis

  class AreaChartExample implements ChartModelExample {
    public ChartModel getChartModel(int segments) {
      ChartModel cm = new ChartModel("Growth per Region", "font-size: 14px; font-family: Verdana;");
      cm.setBackgroundColour("#ffffff");
      XAxis xa = new XAxis();
      xa.setLabels("J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D");
      cm.setXAxis(xa);
      AreaChart area1 = new AreaChart();
      area1.setFillAlpha(0.3f);
      area1.setColour("#ff0000");
      area1.setFillColour("#ff0000");
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.axis.XAxis

    public ChartModel getChartModel(int segments) {
      ChartModel cm = new ChartModel("Sales by Month",
          "font-size: 16px; font-weight: bold; font-family: Verdana; color:#008800;");
      cm.setBackgroundColour("#eeffee");
      cm.setDecimalSeparatorComma(true);
      XAxis xa = new XAxis();
      xa.setLabels(TestData.getShortMonths(segments));
      xa.getLabels().setColour("#009900");
      xa.setGridColour("#eeffee");
      xa.setColour("#009900");
      cm.setXAxis(xa);
      YAxis ya = new YAxis();
      ya.setRange(5000, 20000);
      ya.setSteps(1000);
      ya.setGridColour("#eeffee");
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.axis.XAxis

  class BarGlassChartExample implements ChartModelExample {
    public ChartModel getChartModel(int segments) {
      ChartModel cm = new ChartModel("Sales by Month 2007", "font-size: 14px; font-family: Verdana;");
      cm.setBackgroundColour("-1");
      XAxis xa = new XAxis();
      for (String m : TestData.getMonths()) {
        Label l = new Label(m, 45);
        l.setSize(10);
        l.setColour("#000000");
        xa.addLabels(l);
      }
      xa.setGridColour("-1");
      cm.setXAxis(xa);
      YAxis ya = new YAxis();
      ya.setSteps(16);
      ya.setMax(160);
      ya.setGridColour("#8888FF");
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.axis.XAxis

  class Bar3DChartExample implements ChartModelExample {
    public ChartModel getChartModel(int segments) {
      ChartModel cm = new ChartModel("Sales by Month 2008", "font-size: 14px; font-family: Verdana; color:#ffff00;");
      cm.setBackgroundColour("#000077");
      XAxis xa = new XAxis();
      xa.setLabels(TestData.getShortMonths(segments));
      xa.getLabels().setColour("#ffff00");
      xa.setGridColour("-1");
      xa.setColour("#aa5500");
      xa.setZDepth3D(5);
      cm.setXAxis(xa);
      YAxis ya = new YAxis();
      ya.setSteps(16);
      ya.setMax(160);
      ya.setGridColour("#000099");
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.axis.XAxis

  class HorizontalChartExample implements ChartModelExample {
    public ChartModel getChartModel(int segments) {
      ChartModel cm = new ChartModel("Voted Best AJAX Framework",
          "font-size: 14px; font-family: Verdana; text-align: center;");
      XAxis xa = new XAxis();
      xa.setRange(0, 200, 50);
      cm.setXAxis(xa);
      YAxis ya = new YAxis();
      ya.addLabels("Ext", "Dojo", "jQuery", "YUI");
      ya.setOffset(true);
      cm.setYAxis(ya);
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.axis.XAxis

  class CylinderChartExample implements ChartModelExample {
    public ChartModel getChartModel(int segments) {
      ChartModel cm = new ChartModel("Licenses by Quarter 2008",
          "font-size: 14px; font-family: Verdana; text-align: center;");
      cm.setBackgroundColour("#ffffff");
      XAxis xa = new XAxis();
      xa.setLabels("Q1", "Q2", "Q3", "Q4");
      xa.setZDepth3D(5);
      xa.setTickHeight(4);
      xa.setOffset(true);
      xa.setColour("#909090");
      cm.setXAxis(xa);
      YAxis ya = new YAxis();
      ya.setSteps(16);
      ya.setMax(160);
      cm.setYAxis(ya);
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.