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

Internal Build 2010_1_0319

3 Answers 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joe Giese
Top achievements
Rank 1
Joe Giese asked on 23 Mar 2010, 04:40 AM
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.

3 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 23 Mar 2010, 09:41 AM
Hi Martin,

Unfortunately we are unable to reproduce the problem in our local tests. Could you send us a runnable sample application or the chart declaration code so we can provide you with proper advise how to proceed?

Looking forward to your reply.


Regards,
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.
0
Joe Giese
Top achievements
Rank 1
answered on 23 Mar 2010, 05:44 PM
            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);

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.


Regards,
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
General Discussions
Asked by
Joe Giese
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Joe Giese
Top achievements
Rank 1
Share this question
or