Bharat Patel

yAxisValuesStep not working as expected

Recommended Posts

Hi there,

yAxisValuesStep is not working as expected for me. I would like to see a step value of 1 for the vertical values. Can you please let me know if I am missing something here.

 

<chart caption='Monthly Returns' 
subCaption='' 
captionPadding='15' 
xAxisName='Date' 
yAxisName='Net Returns (%) ' 
showValues='0' 
showPlotBorder='0'
borderColor='DDDDDD'
borderThickness='0'
canvasBorderThickness='1'
canvasBorderColor='DDDDDD'
showLegend='0'
legendBorderThickness='1'
legendBorderColor='DDDDDD'
legendShadow='0'
legendAllowDrag='0'
legendBgColor='FFFFFF'
legendPosition='BOTTOM'
interactiveLegend='0'
dateFormat='yyyy-mm-dd'
outputDateFormat='dd/mm/yyyy'
numberScaleValue='1000,1000'
numberScaleUnit='Bn,Tn'
showPercentageValues='0'
alternateHGridColor='FFFFFF'
divLineColor='DDDDDD'
vDivLineColor='DDDDDD'
vDivLineThickness='1'
vDivLineIsDashed='1'
numVDivLines='19'
numDivLines='16'
divLineAlpha='0'
yAxisMinValue='-6'
yAxisMaxValue='7'
NumberPrefix=''
formatNumber='1'
formatNumberScale='0'
sformatNumberScale='0'
sNumberPrefix=''
syncAxisLimits='1'
rotateValues='0'
showSum='0'
canvasPadding='5'
valuePadding='0'
baseFont='Verdana'
valuePosition='AUTO'
paletteColors='2664C1, C73800, 46B1C2, 76C82D, ECB346, BAA3F0, 228999, FA7550, 9ACED6, 1E545C'
plotGradientColor=''
labelDisplay='Rotate'
slantLabels='1'
unescapeLinks='0'
labelStep='3'
yAxisValuesStep='1'
showDivLineValues='1'
bgColor='FEFEFE'
>
<categories>
<category label='Jul 2012' />
<category label='Aug 2012' />
<category label='Sep 2012' />
<category label='Oct 2012' />
<category label='Nov 2012' />
<category label='Dec 2012' />
<category label='Jan 2013' />
<category label='Feb 2013' />
<category label='Mar 2013' />
<category label='Apr 2013' />
<category label='May 2013' />
<category label='Jun 2013' />
<category label='Jul 2013' />
<category label='Aug 2013' />
<category label='Sep 2013' />
<category label='Oct 2013' />
<category label='Nov 2013' />
<category label='Dec 2013' />
<category label='Jan 2014' />
<category label='Feb 2014' />
<category label='Mar 2014' />
</categories>
 
<dataset seriesName='MonthlyReturns' >
<set value='2.84000000' />
<set value='1.34000000' />
<set value='0.90000000' />
<set value='-2.84000000' />
<set value='1.52000000' />
<set value='3.14000000' />
<set value='6.57000000' />
<set value='-0.33000000' />
<set value='3.37000000' />
<set value='4.68000000' />
<set value='-1.37000000' />
<set value='-3.66000000' />
<set value='3.88000000' />
<set value='-3.75000000' />
<set value='5.38000000' />
<set value='4.78000000' />
<set value='3.29000000' />
<set value='2.12000000' />
<set value='-5.56000000' />
<set value='5.09000000' />
<set value='-0.79000000' />
<set value='-0.23000000' />
</dataset>
 
<styles>
<definition>
<style name='CanvasAnim' type='animation' param='_xScale' start='0' duration='1' />
<style name='CaptionStyle' type='font' font='Verdana' isHTML='1' />
</definition>
<application>
<apply toObject='Canvas' styles='CanvasAnim' />
<apply toObject='Caption' styles='CaptionStyle' />
</application>
</styles>
</chart>
 
Thanks,
 

Share this post


Link to post
Share on other sites

Hi,

 

It is working fine from our end.

 

Please find attached screen shot of the chart rendered.

 

Hope this helps!

post-62559-0-17609200-1402309136_thumb.png

Share this post


Link to post
Share on other sites

Hi Bindhu,

This is sorted. I had to set the height of the chart to 400px to get the desired result. If the range will vary over fixed period then I will have no way to ensure the Y Axis values will still have specific interval values. Is there a way to be able to guarantee that the chart will follow the step value that I feed through the XML data? 

Kind Regards,

Share this post


Link to post
Share on other sites

Hi,

 

If the chart height is sufficient, then it will display all the y-axis values.

 

If there is no space to display all the y-axis values, then few values will be hidden, for good, ignoring the yAxisValuesStep attribute definition, to make the chart legible.

 

Hope this clarifies.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now