SeriesHotspot tool show the same value in Area chart ?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
DSC
Newbie
Newbie
Posts: 17
Joined: Wed May 20, 2009 12:00 am
Location: Taichung, Taiwan

SeriesHotspot tool show the same value in Area chart ?

Post by DSC » Thu Nov 08, 2012 1:16 am

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 ?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

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

Post by Sandra » Fri Nov 09, 2012 11:03 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply