Jump to content

 

Photo

How do I add a label of zero point to the axis Y


  • Please log in to reply
4 replies to this topic

#1 EvgenyV

EvgenyV

    Advanced Member

  • Members
  • PipPipPip
  • 41 posts

Posted 07 May 2012 - 09:43 AM

Hi guys,

In using the visifire chart ,
the Y-Axis is displaying 2 labels the maximum and minimum of the axis.
I would like to show another label (at the zero point) how do I add a label to the axis?

Thanks,
Evgeniy

Attached Files



#2 sharmila

sharmila

    Advanced Member

  • Administrators
  • PipPipPip
  • 697 posts
  • Gender:Female

Posted 07 May 2012 - 10:58 AM

Hi,

Can you please tell me whether you have set Interval in y-axis ? It will be very helpful if you provide us the y-axis settings.

Regards,
Sharmila

#3 EvgenyV

EvgenyV

    Advanced Member

  • Members
  • PipPipPip
  • 41 posts

Posted 07 May 2012 - 02:48 PM

Hi Sharmila ,
i have set interval in Y-axis in the end of the creating of the chart:


chart.AxesY[0].AxisLabels = new AxisLabels();
chart.AxesY[0].AxisLabels.MinWidth = ct_MIN_WIDTH;// 40;


for (int i = 0; i < 512; i++)
{
dp.AxisXLabel = xDate.ToString(strTimeFormat);// +dblMcSec.ToString();

dp.YValue = listChannelArray[i];
chart.Series[0].DataPoints.Add(dp);
}



chart.AxesY[0].Interval = max - min - 0.0000001;
chart.AxesY[0].AxisMinimum = min;
chart.AxesY[0].AxisMaximum = max;

Thank you ,
Evgeniy

#4 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,605 posts
  • Gender:Male
  • Location:Bangalore

Posted 08 May 2012 - 05:05 AM

Evgeniy,

Please try setting Interval value as shown below:

chart.AxesY[0].Interval = (max - min) / 2;
chart.AxesY[0].AxisMinimum = min;
chart.AxesY[0].AxisMaximum = max;

Regards,
Vivek
Team Visifire


#5 EvgenyV

EvgenyV

    Advanced Member

  • Members
  • PipPipPip
  • 41 posts

Posted 08 May 2012 - 07:10 AM

Hi Vivek,

Thank you very mach,
Evgeniy.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users