Rev | Line | |
---|
[7849] | 1 | using System;
|
---|
| 2 | using System.Collections;
|
---|
| 3 | using System.Text;
|
---|
| 4 | using JsonFx.Json;
|
---|
| 5 |
|
---|
| 6 |
|
---|
| 7 | namespace OpenFlashChart
|
---|
| 8 | {
|
---|
| 9 | public class Chart<T> :ChartBase
|
---|
| 10 | {
|
---|
| 11 | public Chart()
|
---|
| 12 | {
|
---|
| 13 | this.values = new ArrayList();
|
---|
| 14 | FillAlpha = 0.35;
|
---|
| 15 | //fontsize = 20;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | //public override double GetMaxValue()
|
---|
| 19 | //{
|
---|
| 20 | // if (values.Count == 0)
|
---|
| 21 | // return 0;
|
---|
| 22 | // double max = double.MinValue;
|
---|
| 23 | // Type valuetype = typeof(T);
|
---|
| 24 | // if (!valuetype.IsValueType)
|
---|
| 25 | // return 0;
|
---|
| 26 | // foreach (T d in values)
|
---|
| 27 | // {
|
---|
| 28 | // double temp = double.Parse(d.ToString());
|
---|
| 29 | // if (temp > max)
|
---|
| 30 | // max = temp;
|
---|
| 31 | // }
|
---|
| 32 | // return max;
|
---|
| 33 | //}
|
---|
| 34 |
|
---|
| 35 | //public override double GetMinValue()
|
---|
| 36 | //{
|
---|
| 37 | // if (values.Count == 0)
|
---|
| 38 | // return 0;
|
---|
| 39 | // double min = double.MaxValue;
|
---|
| 40 | // Type valuetype = typeof (T);
|
---|
| 41 | // if (!valuetype.IsValueType)
|
---|
| 42 | // return 0;
|
---|
| 43 | // foreach (T d in values)
|
---|
| 44 | // {
|
---|
| 45 | // double temp = double.Parse(d.ToString());
|
---|
| 46 | // if(temp<min)
|
---|
| 47 | // min = temp;
|
---|
| 48 | // }
|
---|
| 49 | // return min;
|
---|
| 50 | //}
|
---|
| 51 | public void Add(T v)
|
---|
| 52 | {
|
---|
| 53 | this.values.Add(v);
|
---|
| 54 | }
|
---|
| 55 | }
|
---|
| 56 |
|
---|
| 57 |
|
---|
| 58 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.