void UpdateChart(DateTime date) { Series.DataSource = provider.GetChartData(date); switch (provider.Mode) { case SalesPerformanceMode.Day: Annotation.Text = date.ToString("d"); break; case SalesPerformanceMode.Month: Annotation.Text = date.ToString("M/yyyy"); break; } }
void UpdateChart(DateTime date) { Series.DataSource = provider.GetChartData(date); switch (provider.Mode) { case SalesPerformanceMode.Day: Annotation.Text = date.ToString("d"); break; case SalesPerformanceMode.Month: Annotation.Text = date.ToString("M/yyyy"); break; } if (Series.ActualArgumentScaleType == ScaleType.Qualitative) { Diagram.AxisX.Label.TextPattern = "{A}"; } }