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

drill down chart tooltip...

1 Answer 105 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sumin park
Top achievements
Rank 1
sumin park asked on 29 Sep 2009, 03:17 AM

I have 2 questions.
1.
I made Drill-down-chart.

that chart rises 2 tooltips.

maybe, One is  the default tooltip(Yvalue-label).
Another tooltip is graph.

I want to only graph tooltip.
What must I do?

2.
and SomeTime,I Clicked the value and then are moved to a different graph.
but Tooltip of the previous graph does not disapear.
I use WCF.(maybe, some delay)
I want to remove tooltip.
What must I do?




                RadChart1.DefaultView.ChartArea.ChartItemClick -= this.RadChart1ChartItemDayClicked;
                RadChart1.DefaultView.ChartArea.ChartItemClick -= this.RadChart1ChartItemMonthClicked;
                RadChart1.DefaultView.ChartArea.ChartItemClick -= this.RadChart1ChartItemYearClicked;
                ////////////////
                RadChart1.SeriesMappings.Clear();
                SeriesMapping sm1 = new SeriesMapping();
                BarSeriesDefinition d1 = new BarSeriesDefinition();
                d1.ShowItemToolTips = false;
                d1.ShowItemLabels = false;
                //barSeries.Definition.ShowItemToolTips = true;
               
                sm1.SeriesDefinition = d1;
                sm1.LegendLabel = "Bar Series";
                sm1.CollectionIndex = 0;
               
                RadChart1.DefaultView.ChartTitle.Content = string.Format("Year(TAGID: {0})", tagID);
                ItemMapping im1 = new ItemMapping();
                im1.DataPointMember = DataPointMember.YValue;
                sm1.ItemMappings.Add(im1);

                RadChart1.SeriesMappings.Add(sm1);

                DoseRate.GetServiceDB.ps_Tag결과 a = item.Item as DoseRate.GetServiceDB.ps_Tag결과;
                DoseRate.GetServiceDB.DoseRateDBServiceClient dbClient = new DoseRate.GetServiceDB.DoseRateDBServiceClient();
                dbClient.ps_tagDoseRateYearCompleted += new EventHandler<DoseRate.GetServiceDB.ps_tagDoseRateYearCompletedEventArgs>(dbClient_ps_tagDoseRateYearCompleted);
                dbClient.ps_tagDoseRateYearAsync(a.tagid);
               
                tagID = a.tagid;
              
               
                RadChart1.DefaultView.ChartTitle.Content = string.Format("Year(TAGID: {0})", tagID);
                RadChart1.DefaultView.ChartArea.ItemToolTipOpening -= new ItemToolTipEventHandler(ChartItemToolTipOpeningMonth);
                RadChart1.DefaultView.ChartArea.ItemToolTipOpening -= new ItemToolTipEventHandler(ChartItemToolTipOpeningDay);
                RadChart1.DefaultView.ChartArea.ItemToolTipOpening -= new ItemToolTipEventHandler(ChartItemToolTipOpeningHour);
                RadChart1.DefaultView.ChartArea.ItemToolTipOpening += new ItemToolTipEventHandler(ChartItemToolTipOpeningMonth);

                ////////////////
                RadChart1.DefaultView.ChartArea.ChartItemClick += this.RadChart1ChartItemYearClicked;
                ////////////////
                d1.ShowItemToolTips = true;




///////////////////////////////////////////WCF to List
    ChartValueMonth = new double[e.Result.Count];
            ChartValueMonthVlue = new double[e.Result.Count];

            int count = 0;
            foreach (DoseRate.GetServiceDB.ps_tagDoseRateMonth결과 item in e.Result)
            {
                ChartValueMonth[count] = (double)item.month;
                ChartValueMonthVlue[count] = Math.Round((double)item.doserate, 2);
                count++;
            }

            List<double[]> itemsSource = new List<double[]>
                {
                    ChartValueMonthVlue
                };
            int startYear = 0;
            chart.ItemsSource = itemsSource;
            foreach (TickPoint tickPoint in chart.DefaultView.ChartArea.AxisX.TickPoints)
            {
                tickPoint.Label = ChartValueMonth[startYear].ToString();
                startYear++;
            }

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 01 Oct 2009, 06:26 AM
Hi Sumin,

You can find the answers to both your questions in this online example.

Sincerely,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart
Asked by
sumin park
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or