Page 1 of 1

SeriesHotspot tool show the same value in Area chart ?

Posted: Thu Nov 08, 2012 1:16 am
by 15053325
My language is C#. I used WebChart in Visual Studio 2010. I used 〝Area〞 chart and 〝SeriesHotspot〞 tool in my web page. When the mouse points to the Area chart anywhere, the SeriesHotspot tool only shows the same value. How do I solve this problem or find a way to show the value in Area chart correctly ?

Re: SeriesHotspot tool show the same value in Area chart ?

Posted: Fri Nov 09, 2012 11:03 am
by 10050769
Hello DSC,

I can not reproduce your problem using last version of TeeChartFor.Net and next code:

Code: Select all

		protected Steema.TeeChart.Tools.SeriesHotspot seriesHotspot1;
		private Steema.TeeChart.Chart ch1;
	
		protected void InitializeChart()
		{
			// Add Series and FillSampleValues

			ch1=WebChart3.Chart;
			ch1.Series.Add( new Steema.TeeChart.Styles.Area());
            seriesHotspot1 = new Steema.TeeChart.Tools.SeriesHotspot(ch1);
			double[]	yValues = {52, 23, 72, 66, 32, 54, 74, 21, 86, 15};
			Steema.TeeChart.Styles.StringList labels = new Steema.TeeChart.Styles.StringList(10);
			labels.Add("Surface");
			labels.Add("Bar");
			labels.Add("Candle");
			labels.Add("Pie");
			labels.Add("Line");
			labels.Add("Gantt");
			labels.Add("Volume");
			labels.Add("Bubble");
			labels.Add("Clock");
			labels.Add("Gauge");
			ch1.Series[0].Add(yValues);
			ch1.Series[0].Labels = labels;			
			ch1.Series[0].Title = "Chart Styles";
			ch1.Axes.Bottom.Labels.Angle = 90;
			ch1.Series[0].Marks.Visible = false;
			ch1.Series[0].ColorEach = true;		
			ch1.Axes.Bottom.Title.Text = "Most used Chart Styles";
			ch1.Axes.Bottom.Title.Font.Color = Color.DarkGray;
			ch1.Aspect.View3D = false;

			ch1.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Series;

			// Apply palette
			//Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(ch1.Chart,9);

			((Steema.TeeChart.Tools.SeriesHotspot)(ch1.Chart.Tools[0])).Style=Steema.TeeChart.Styles.MarksStyles.Value;
        }
Could you check if you use my previous code your problem appears? If your problem appears, can you please, explain exactly what are you doing, because we can reproduce it here? On the other hand, can you tell us what version of TeeChartFor.Net are you using, now?

Thanks,