Example #1
0
        public PlotModel createGraph(GraphType graphType, GraphEffect graphEffect, GraphData <T> graphData)
        {
            switch (graphType)
            {
            case GraphType.Line:
                Chart = new LineChart <T>(graphType, graphEffect, graphData);
                break;

            case GraphType.Pie:
                Chart = new PieChart <T>(graphType, graphEffect, graphData);
                break;

            default:
                Chart = new BarChart <T>(graphType, graphEffect, graphData);
                break;
            }
            return(Chart.createChart());
        }
Example #2
0
 protected Graph(GraphType GraphType, GraphEffect GraphEffect, GraphData <T> GraphData)
 {
     this.graphType   = GraphType;
     this.graphEffect = GraphEffect;
     this.graphData   = GraphData;
 }
Example #3
0
 public PieChart(GraphType GraphType, GraphEffect GraphEffect, GraphData <T> GraphData) : base(GraphType, GraphEffect, GraphData)
 {
     this.createChart();
 }
Example #4
0
 public BarChart(GraphType GraphType, GraphEffect GraphEffect, GraphData GraphData) : base(GraphType, GraphEffect, GraphData)
 {
     this.createChart();
 }