using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
namespace Core.Components.Charting.Data
{
///
/// This class represents data in 2D space which is visible as points.
///
public class PointData : ChartData
{
///
/// Creates a new instance of .
///
/// A of as (X,Y) points.
/// Thrown when is null.
public PointData(IEnumerable> points)
{
if (points == null)
{
throw new ArgumentNullException("points", "A point collection is required when creating AreaData.");
}
Points = points.ToArray();
IsVisible = true;
}
///
/// Gets or sets a value indicating whether the is visible.
///
public bool IsVisible { get; set; }
///
/// Gets the collection of points in 2D space.
///
public IEnumerable> Points { get; private set; }
}
}