Need Help in adding values in Point series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
vivek
Newbie
Newbie
Posts: 40
Joined: Thu Jul 19, 2007 12:00 am

Need Help in adding values in Point series

Post by vivek » Wed Aug 12, 2009 2:14 pm

Hello,

I want to add string in Y parameter, when i add values in Point series.
I want to add Point.Add(double, String, String, Color).
There is no direct way to do that. Is there any other way to acheive this?

With regards,
Vivek.J

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

Re: Need Help in adding values in Point series

Post by Sandra » Thu Aug 13, 2009 7:58 am

Hello vivek,
I want to add Point.Add(double, String, String, Color).
There aren't no headers as use String with Y parameter. Please you could exactly what could you doing in your application? So If possible , we can find alternative soultion.


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

vivek
Newbie
Newbie
Posts: 40
Joined: Thu Jul 19, 2007 12:00 am

Re: Need Help in adding values in Point series

Post by vivek » Thu Aug 13, 2009 9:24 am

Actualy I want to add double in X axis , string in Y axis . Each point should be different color according to the condition. At the same time i have to add lable for each point as a tool tip. With the help of the lable we have to do so many operation. Thats why i asked.
I have achieved this through different way. It would be appriciate if you give any better solution.
Thank you.

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

Re: Need Help in adding values in Point series

Post by Sandra » Thu Aug 13, 2009 11:17 am

Hello vivek,

I made a simple project that put Y axis string and you could use a similar project for this. Please see next code works as you want:

Code: Select all

  private void InitializeChart()
        {
            bar = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
            tChart1.Aspect.View3D = false;
            bar.Marks.Visible = false;
            tChart1.Legend.Visible = false;
            bar.ColorEach = true;
            Random rnd = new Random();
            for( int j= 0; j<5; j++)
            {
                bar.Add(j,rnd.NextDouble());
                bar[j].Label = "Point Y :" + j.ToString();
                
            }
            tChart1.Axes.Left.Labels.Style = Steema.TeeChart.AxisLabelStyle.Text;
            tChart1.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.Value;
            tChart1.Axes.Left.MinorTicks.Visible = false;
          }

I hope will helps.

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