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()); }
protected Graph(GraphType GraphType, GraphEffect GraphEffect, GraphData <T> GraphData) { this.graphType = GraphType; this.graphEffect = GraphEffect; this.graphData = GraphData; }
public PieChart(GraphType GraphType, GraphEffect GraphEffect, GraphData <T> GraphData) : base(GraphType, GraphEffect, GraphData) { this.createChart(); }
public BarChart(GraphType GraphType, GraphEffect GraphEffect, GraphData GraphData) : base(GraphType, GraphEffect, GraphData) { this.createChart(); }