Esempio n. 1
0
 public void Plot(LineGraph graph, Stock.Type type, int min, int max)
 {
     graph.Data.Clear();
     for (int i = min; i <= max; ++i)
     {
         float value = GetValue(type, i);
         graph.Data.Add(value);
     }
     graph.SetColor(0, 0, 0);
     graph.SetBaseline(1);
     graph.SetBaselineColor(128, 0, 0);
     graph.SetBackgroundColor(232, 255, 240);
     graph.ShowBaseline(false);
     graph.HideLegendMinMax();
     graph.SetLabel("24m");
     graph.Refresh();
 }
Esempio n. 2
0
 public void PlotGlobal(LineGraph graph, int min, int max)
 {
     graph.Data.Clear();
     for (int i = min; i <= max; ++i)
     {
         float value = GetValue(Stock.Type.Transportation, i);
         value += GetValue(Stock.Type.Energy, i);
         value += GetValue(Stock.Type.Financial, i);
         value += GetValue(Stock.Type.Services, i);
         value += GetValue(Stock.Type.Technology, i);
         value += GetValue(Stock.Type.Healthcare, i);
         graph.Data.Add(value);
     }
     graph.SetColor(0, 0, 0);
     //graph.SetBaseline(6);
     graph.SetBaselineColor(128, 0, 0);
     graph.SetBackgroundColor(232, 255, 240);
     graph.ShowBaseline(false);
     graph.HideLegendMinMax();
     graph.SetLabel("All time");
     graph.Refresh();
 }
Esempio n. 3
0
 public void PlotGlobal(LineGraph graph, int min, int max)
 {
     graph.Data.Clear();
     for (int i = min; i <= max; ++i)
     {
         float value = GetValue(Stock.Type.Transportation, i);
         value += GetValue(Stock.Type.Energy, i);
         value += GetValue(Stock.Type.Financial, i);
         value += GetValue(Stock.Type.Services, i);
         value += GetValue(Stock.Type.Technology, i);
         value += GetValue(Stock.Type.Healthcare, i);
         graph.Data.Add(value);
     }
     graph.SetColor(0, 0, 0);
     //graph.SetBaseline(6);
     graph.SetBaselineColor(128, 0, 0);
     graph.SetBackgroundColor(232, 255, 240);
     graph.ShowBaseline(false);
     graph.HideLegendMinMax();
     graph.SetLabel("All time");
     graph.Refresh();
 }
Esempio n. 4
0
 public void Plot(LineGraph graph, Stock.Type type, int min, int max)
 {
     graph.Data.Clear();
     for (int i = min; i <= max; ++i)
     {
         float value = GetValue(type, i);
         graph.Data.Add(value);
     }
     graph.SetColor(0, 0, 0);
     graph.SetBaseline(1);
     graph.SetBaselineColor(128, 0, 0);
     graph.SetBackgroundColor(232, 255, 240);
     graph.ShowBaseline(false);
     graph.HideLegendMinMax();
     graph.SetLabel("24m");
     graph.Refresh();
 }