Page 1 of 1

Problem with tooltip in Bar Chart

Posted: Thu Mar 25, 2010 12:38 pm
by 9641714
In my ASP.net web page I have multiple charts of style bar. I want to show tooltip when mouse hovered on a bar, shows the Y value of the bar. For each chart I am doing the things like –

Steema.TeeChart.Styles.Bar barD = new Steema.TeeChart.Styles.Bar();
chart.Series.Add(barD);
.
.
.
Steema.TeeChart.Tools.SeriesHotspot seriesHotspot1 = new
Steema.TeeChart.Tools.SeriesHotspot(chart);
seriesHotspot1.Style = Steema.TeeChart.Styles.MarksStyles.Label;
seriesHotspot1.Series = barD;

On mouse hover tooltip for each bar is visible. Well and good. But the issue is that the tooptip always reflects value from the first chart.

Re: Problem with tooltip in Bar Chart

Posted: Fri Mar 26, 2010 12:36 pm
by 10050769
Hello Beige,

I couldn't reproduce your problem. I have made a simple example using two Charts. Please modifier code, because we can reproduce your problem exactly here:

Code: Select all

 protected Steema.TeeChart.Styles.Bar bar1,bar2,bar3;
    protected Steema.TeeChart.Tools.SeriesHotspot SeriesHotspot1, SeriesHotspot2, SeriesHotspot3;
    protected void Page_Load(object sender, EventArgs e)
    {
        bar1 = new Steema.TeeChart.Styles.Bar(WebChart1.Chart);
        bar2 = new Steema.TeeChart.Styles.Bar(WebChart2.Chart);
        bar3 = new Steema.TeeChart.Styles.Bar(WebChart1.Chart);
        bar1.FillSampleValues();
        bar2.FillSampleValues();
        bar3.FillSampleValues();
        SeriesHotspot1 = new Steema.TeeChart.Tools.SeriesHotspot(WebChart1.Chart);
        SeriesHotspot2 = new Steema.TeeChart.Tools.SeriesHotspot(WebChart2.Chart);
        SeriesHotspot3 = new Steema.TeeChart.Tools.SeriesHotspot(WebChart1.Chart);
        SeriesHotspot1.Series = bar1;
        SeriesHotspot2.Series = bar2;
        SeriesHotspot3.Series = bar3;
    }

Thanks,