Jump to content

 

Photo
- - - - -

Label is cutting from right hand side in Point chart given LabelAngle = -0.01,


  • Please log in to reply
1 reply to this topic

#1 svyadav19

svyadav19

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 25 April 2012 - 07:59 AM

Attached File  SamplePointChart.png   33.16K   5 downloadsHi,

I have attached screen shot for point graph.


for place lable at right side "LabelAngle = -0.01"
and for place lable at leftside "LabelAngle = 0.01"

If I set lable at left side label can be cut from left side or set lable at right side label can be cut from right side as in current screen shot.

If "LabelAngle" is not provide then lable is getting override on point itself.


1. So how can I set auto placement of lable ?
2. How can I get date interval in chart as date inetrval is changing per data after rendering graph ?
I have maximum date in chart as maxDate.
I want add days for setting XAxisMaximum = maxDate.AddDays(dateinterval).ToString(DateFormat);

Here is some line of code


<vc:DataSeries RenderAs="Point" LegendText="Sample Data Scenario # 1" LabelEnabled="True" MarkerType="Square" MarkerSize="10" LabelAngle="-0.01" ToolTipText="" AxisYType="Primary" >

<vc:DataSeries.DataPoints>
<vc:DataPoint AxisXLabel="15-Dec-12" XValue="15-Dec-12" YValue="6.7972477100" LabelText=" Bulgaria" ToolTip=" Lauch date:#AxisXLabel , Price:#YValue EUR" />
<vc:DataPoint AxisXLabel="15-Aug-12" XValue="15-Aug-12" YValue="5.5158212700" LabelText=" France" ToolTip=" Lauch date:#AxisXLabel , Price:#YValue EUR" />
<vc:DataPoint AxisXLabel="15-Sep-12" XValue="15-Sep-12" YValue="6.7291125800" LabelText=" Italy" ToolTip=" Lauch date:#AxisXLabel , Price:#YValue EUR" />
<vc:DataPoint AxisXLabel="01-Dec-12" XValue="01-Dec-12" YValue="0" LabelText=" Romania" ToolTip=" Lauch date:#AxisXLabel , Price:#YValue EUR" />
</vc:DataSeries.DataPoints>

</vc:DataSeries>

Please suggest me regarding this

#2 shoaib

shoaib

    Advanced Member

  • Members
  • PipPipPip
  • 924 posts
  • Gender:Male
  • Location:Bangalore

Posted 26 April 2012 - 07:38 AM

Hi,

If I set lable at left side label can be cut from left side or set lable at right side label can be cut from right side as in current screen shot.
If "LabelAngle" is not provide then lable is getting override on point itself.


In this case i suggest you to set LabelAngle property in DataPoints instead of setting it in DataSeries as shown below.

Example:-
<vc:DataSeries RenderAs="Point" LegendText="Sample Data Scenario # 1" LabelEnabled="True" MarkerType="Square" MarkerSize="10"  ToolTipText="" AxisYType="Primary" >
   <vc:DataSeries.DataPoints>
		<vc:DataPoint AxisXLabel="15-Dec-12" XValue="15-Dec-12" YValue="6.7972477100" LabelText=" Bulgaria" LabelAngle="0.01" ToolTipText=" Lauch date:#AxisXLabel , Price:#YValue EUR" />
		<vc:DataPoint AxisXLabel="15-Aug-12" XValue="15-Aug-12" YValue="5.5158212700" LabelText=" France" LabelAngle="-0.01" ToolTipText=" Lauch date:#AxisXLabel , Price:#YValue EUR" />
		<vc:DataPoint AxisXLabel="15-Sep-12" XValue="15-Sep-12" YValue="6.7291125800" LabelText=" Italy" LabelAngle="0.01" ToolTipText=" Lauch date:#AxisXLabel , Price:#YValue EUR" />
		<vc:DataPoint AxisXLabel="01-Dec-12" XValue="01-Dec-12" YValue="0" LabelText=" Romania" LabelAngle="-0.01" ToolTipText=" Lauch date:#AxisXLabel , Price:#YValue EUR" />
  </vc:DataSeries.DataPoints>
</vc:DataSeries>

How can I get date interval in chart as date inetrval is changing per data after rendering graph ?
I have maximum date in chart as maxDate.
I want add days for setting XAxisMaximum = maxDate.AddDays(dateinterval).ToString(DateFormat);


Please checkout the documentation here on how to obtain actual interval of axis which is calculated by Visifire internally.

Regards,
Shoaib




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users