drill down chart tooltip...

2 posts, 0 answers
  1. sumin park
    sumin park avatar
    10 posts
    Member since:
    Sep 2009

    Posted 28 Sep 2009 Link to this post

    I have 2 questions.
    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?

    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;
                    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;


                    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);
                    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);

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

  2. Ves
    Ves avatar
    2926 posts

    Posted 01 Oct 2009 Link to this post

    Hi Sumin,

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

    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.
Back to Top