This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
using System;
using System.Collections;
using System.Text;
using JsonFx.Json;
namespace OpenFlashChart
{
public class Chart<T> :ChartBase
{
public Chart()
{
this.values = new ArrayList();
FillAlpha = 0.35;
//fontsize = 20;
}
//public override double GetMaxValue()
//{
// if (values.Count == 0)
// return 0;
// double max = double.MinValue;
// Type valuetype = typeof(T);
// if (!valuetype.IsValueType)
// return 0;
// foreach (T d in values)
// {
// double temp = double.Parse(d.ToString());
// if (temp > max)
// max = temp;
// }
// return max;
//}
//public override double GetMinValue()
//{
// if (values.Count == 0)
// return 0;
// double min = double.MaxValue;
// Type valuetype = typeof (T);
// if (!valuetype.IsValueType)
// return 0;
// foreach (T d in values)
// {
// double temp = double.Parse(d.ToString());
// if(temp<min)
// min = temp;
// }
// return min;
//}
public void Add(T v)
{
this.values.Add(v);
}
}
}