This is a migrated thread and some comments may be shown as answers.

Internal Build 2010_1_0319

1 Answer 51 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Joe Giese
Top achievements
Rank 1
Joe Giese asked on 24 Mar 2010, 07:51 PM

Posted 1 day ago (permalink)

Due to grouping error on Grid control I was told to use the latest internal build. The grouping is fixed but now our chart is broken.


ObservableCollection<PHIMonth> items = e.Result as ObservableCollection<PHIMonth>;

            
            
            radChart.DefaultView.ChartTitle.Visibility = Visibility.Collapsed;

            //radChart.DefaultView.ChartLegend.Header = "Legend";
            radChart.DefaultView.ChartLegend.Visibility = Visibility.Collapsed;

            radChart.DefaultView.ChartLegend.UseAutoGeneratedItems = false;
            //Axis X
            radChart.DefaultView.ChartArea.AxisX.Title = "Month";

            radChart.DefaultView.ChartArea.AxisX.Visibility = Visibility.Collapsed;
            radChart.DefaultView.ChartArea.AxisX.AutoRange = false;
            radChart.DefaultView.ChartArea.AxisX.MinValue = 1;
            radChart.DefaultView.ChartArea.AxisX.MaxValue = 12;
            radChart.DefaultView.ChartArea.AxisX.Step = 1;
            radChart.DefaultView.ChartArea.AxisX.LayoutMode = AxisLayoutMode.Between;
            //Axis Y
            radChart.DefaultView.ChartArea.AxisY.Visibility = Visibility.Collapsed;
          

            radChart.DefaultView.ChartArea.NoDataString = string.Empty;

            DataSeries series = new DataSeries();
            
            series.Definition = new LineSeriesDefinition();
            //series.LegendLabel = "Product Sales";
            
            LineSeriesDefinition l = new LineSeriesDefinition();
            l.ShowItemToolTips = true;
            l.Appearance.PointMark.Stroke = new SolidColorBrush(Colors.Black);
            l.Appearance.PointMark.StrokeThickness = 1;

            series.Definition = l;

            
            foreach (PHIMonth item in items)
            {
                DataPoint dp = new DataPoint();
                dp.IsDateTime = true;
                dp.Tooltip = "{y}";
                dp.YValue = item.Total;

                dp.Tooltip = item.Month.ToString() + " " + item.Year.ToString();
   

                series.Add(dp);
                radChart.DefaultView.ChartTitle.Visibility = Visibility.Collapsed;

            }

            
           
            radChart.DefaultView.ChartArea.DataSeries.Add(series);

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 25 Mar 2010, 04:31 PM
Hi Martin,

Thank you for elaborating on this.

Indeed we were able to reproduce the problematic behavior in our local tests now and we have forwarded it to our developers for further review. We will do our best to address this issue for the next weekly internal build (scheduled for tomorrow) -- for the time being as a workaround we would suggest you to set the AxisX.Visibility to "Visible".

Sorry for the temporary inconvenience.


Sincerely yours,
Freddie
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart
Asked by
Joe Giese
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or