Jump to content

 

Photo

Displaying AxisXLabel?


  • Please log in to reply
4 replies to this topic

#1 KarthikGunasekaran

KarthikGunasekaran

    Advanced Member

  • Members
  • PipPipPip
  • 41 posts
  • Location:Coimbatore

Posted 19 February 2009 - 05:36 AM

Hi,

I want to display AxisXLabel to be displayed after certian intervals only.. How to achieve it?
eg:

[codebox]<vc:DataPoint AxisXLabel="2/11/07" XValue="0" YValue="6000"/>
<vc:DataPoint XValue="10" YValue="3000"/>
<vc:DataPoint XValue="20" YValue="4545"/>
<vc:DataPoint AxisXLabel="3/11/07" XValue="30" YValue="3560"/>
<vc:DataPoint XValue="40" YValue="4525"/>
<vc:DataPoint XValue="50" YValue="2552"/>
<vc:DataPoint AxisXLabel="4/11/08" XValue="60" YValue="3828"/>
<vc:DataPoint XValue="70" YValue="2000"/>
<vc:DataPoint XValue="80" YValue="2000"/>[/codebox]


In the above code its displaying xvalue and AxisXlabel in X axis. How to modify this code so that i want to display only AxisXLabel in the Specified Datapoint? Thx in advance....
Regards,

Karthik Gunasekaran

#2 vivek

vivek

    Advanced Member

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

Posted 19 February 2009 - 05:44 AM

Hi Karthik,

You can set Interval property in AxisX if you don't want the XValues to appear.

Example:

<vc:Chart.AxesX>
<vc:Axis Interval="30"/>
</vc:Chart.AxesX>

Regards,
Vivek
Team Visifire


#3 KarthikGunasekaran

KarthikGunasekaran

    Advanced Member

  • Members
  • PipPipPip
  • 41 posts
  • Location:Coimbatore

Posted 19 February 2009 - 09:34 AM

Hi Karthik,

You can set Interval property in AxisX if you don't want the XValues to appear.

Example:

<vc:Chart.AxesX>
<vc:Axis Interval="30"/>
</vc:Chart.AxesX>

Hi vivek,

Its working.. Xvalue is not coming. I need AxisXvalue at certain points alone. My data is given below

<vc:DataPoint ToolTipText="6/1/2008 12:00:00 AM, 0" AxisXLabel="6/1/2008" YValue="10" />  <vc:DataPoint   YValue="20" /> <vc:DataPoint   YValue="50" /> <vc:DataPoint   YValue="60" /> <vc:DataPoint ToolTipText="6/2/2008 12:00:00 AM, 0" AxisXLabel="6/2/2008" YValue="10" /> <vc:DataPoint   YValue="20" /> <vc:DataPoint   YValue="50" /> <vc:DataPoint   YValue="60" /> <vc:DataPoint ToolTipText="6/3/2008 12:00:00 AM, 0" AxisXLabel="6/3/2008" YValue="10" /> <vc:DataPoint   YValue="20" /> <vc:DataPoint   YValue="50" /> <vc:DataPoint   YValue="60" /> <vc:DataPoint ToolTipText="6/4/2008 12:00:00 AM, 0" AxisXLabel="6/4/2008" YValue="10" /> <vc:DataPoint   YValue="20" /> <vc:DataPoint   YValue="50" /> <vc:DataPoint   YValue="60" />

I have attached a document which contains the output of the above data. Pls take a look on it and give me a solution..

Attached Files


Regards,

Karthik Gunasekaran

#4 vivek

vivek

    Advanced Member

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

Posted 19 February 2009 - 10:27 AM

Hi Karthik,

Just change the Interval property in AxisX as shown below:

<vc:Chart.AxesX>
	   <vc:Axis Interval="4"/>
</vc:Chart.AxesX>

Regards,
Vivek
Team Visifire


#5 KarthikGunasekaran

KarthikGunasekaran

    Advanced Member

  • Members
  • PipPipPip
  • 41 posts
  • Location:Coimbatore

Posted 19 February 2009 - 12:55 PM

Hi Karthik,

Just change the Interval property in AxisX as shown below:

<vc:Chart.AxesX>
	   <vc:Axis Interval="4"/>
</vc:Chart.AxesX>


Hi vivek,

Thanks for ur co-operation..

Regards,
Karthik Gunasekaran
Regards,

Karthik Gunasekaran




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users