using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Globalization;
namespace OpenFlashChartASPNETLibraryV2.ChartDataValues
{
///
/// Data values for scatter chart
///
public class ScatterCircleChartData : ChartDataBase
{
// Methods
///
/// constuctor
///
/// Maximum number of decimal places
public ScatterCircleChartData(int maxDecimals)
: base(maxDecimals)
{
}
///
/// Add next data value
///
/// circle cener X value
/// circle cener Y value
/// circle radius value
public void Add(float valueX, float valueY, float valueRadius)
{
ScatterCircleChartDataItem item = new ScatterCircleChartDataItem();
item.ValueX = (float)Math.Round(valueX, _maxDecimals);
item.ValueY = (float)Math.Round(valueY, _maxDecimals);
item.Radius = (float)Math.Round(valueRadius, _maxDecimals);
_values.Add(item);
base._minValue = Math.Min(base._minValue, valueX);
base._minValue = Math.Min(base._minValue, valueY);
base._maxValue = Math.Max(base._maxValue, valueX);
base._maxValue = Math.Max(base._maxValue, valueY);
}
public override IEnumerable GetValues()
{
//return (IEnumerable