Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        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}";
            }
        }