I am attaching a preview of the picture.
I am using HigchartsStocks for .NET
here is the snippet:
Code: Select all
public Series GetShape(IShape shape)
{
var serie = new LineSeries();
var data = new List<LineSeriesData>();
for (int i = 0; i <= shape.Points.Count() - 1; i++)
{
var lineData = new LineSeriesData()
{
Drilldown = shape.Points.ElementAt(i).DateTime.ToString(),
Y = Convert.ToDouble(shape.Points.ElementAt(i).Value),
Name = shape.Title,
Marker = new LineSeriesDataMarker()
{
Enabled = shape.Points.ElementAt(i).IsEnabled,
FillColor = shape.Points.ElementAt(i).IsEnabled? shape.Points.ElementAt(i).Color: "#00FFFFFF",
LineWidth = shape.LineWidth,
}
};
data.Add(lineData);
}
serie.Data = data;
serie.Name = shape.Title;
return serie;
}