I have Winforms application with ChartView that received real time data and i have label the show the data value. After each point received inside my Timer tick all the points remove in order to show my label only once:private AreaSeries series;
private void timerStatistics_Tick(object sender, EventArgs e)
{
try
{
chartPoints.Add(AdapterStatistics.BitsPerSecond * 0.000001);
series.DataPoints.Add(new Telerik.Charting.CategoricalDataPoint(AdapterStatistics.BitsPerSecond * 0.000001));
RemoveLabels();
series.DataPoints[series.DataPoints.Count - 1].Label = AdapterStatistics.TrafficStatistics;
}
catch (Exception)
{ }
}
private void RemoveLabels()
{
for (int i = 0; i < series.DataPoints.Count - 1; i++)
series.DataPoints[i].Label = "";
}
my problem is that me label i in the right side of the lase point so almost all the label is hide (see attach file)
Any idea if it possible to remove the label to the left of the last point inside my chart ?
private void timerStatistics_Tick(object sender, EventArgs e)
{
try
{
chartPoints.Add(AdapterStatistics.BitsPerSecond * 0.000001);
series.DataPoints.Add(new Telerik.Charting.CategoricalDataPoint(AdapterStatistics.BitsPerSecond * 0.000001));
RemoveLabels();
series.DataPoints[series.DataPoints.Count - 1].Label = AdapterStatistics.TrafficStatistics;
}
catch (Exception)
{ }
}
private void RemoveLabels()
{
for (int i = 0; i < series.DataPoints.Count - 1; i++)
series.DataPoints[i].Label = "";
}
my problem is that me label i in the right side of the lase point so almost all the label is hide (see attach file)
Any idea if it possible to remove the label to the left of the last point inside my chart ?