Page 1 of 1

Need Help in adding values in Point series

Posted: Wed Aug 12, 2009 2:14 pm
by 13046152
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

Re: Need Help in adding values in Point series

Posted: Thu Aug 13, 2009 7:58 am
by 10050769
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,

Re: Need Help in adding values in Point series

Posted: Thu Aug 13, 2009 9:24 am
by 13046152
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.

Re: Need Help in adding values in Point series

Posted: Thu Aug 13, 2009 11:17 am
by 10050769
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,