Sign in to follow this  
Sanjukta

To Keep fixed intervals in the Stacked 2D bar chart at all times irresspective of the values

Recommended Posts

Hi is there a posibility to keep a fixed intervals on the XAxisis value in the 2D stacked bar chart right now my intervals show as 0,22,44,66,88,110 but i want it to be 0,20,40,60,80,100 at all times irresspective of the values.

Note : that my values do not exceed 100%

Thanks

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

There are a few floating number issues which causes this error. Our developers are currently looking into this issue for a permanent fix.

Could you please try setting the attribute yAxisMaxValue='100.000001' explicitly in the <chart> element?

Also, please try using the attributes "numDivLines" and "adjustDiv='0'" in the <chart> element for achieving what you intend to display.

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi This is my xml just for one instance of the chart there are many such instances that the same thing occurs.

Please help on this

<

chart decimals='0' showPercentValues='1' XAxisValuesDecimals='0' XAxisAdjustDiv='0' adjustDiv='0' XAxisMaxValue='100.000001' XAxisMinValue='0' slantLabels='1' animation='0' labelDisplay='Rotate' caption='Application Owner %25 OverAllStatus By SubLOB' startingAngle='60' outCnvBaseFontSize='11' formatNumberScale='0' chartRightMargin='40' bgColor='FFFFFF' bgAlpha='50' showBorder='0' borderThickness='1' borderAlpha='50' canvasbgColor='F2F2F2' canvasBorderColor='4A7EC5' canvasBorderThickness='1' canvasBorderAlpha='80' exportEnabled='1' exportHandler='Charts/FCExporter.aspx' exportAtClient='0' exportAction='download' showExportDataMenuItem='1' exportDataSeparator='%7Btab%7D' numDivLines='4' baseFontSize='8pt' baseFontColor ='000000' isHTML='1' bold='0' baseFont='Frutiger 45 Light' xAxisName='SUBLOB' yAxisName='OverAllStatus %25' showAlternateVGridColor='0' showValues='0' numberSuffix='%25' divLineColor='969696' divLineThickness='1' borderColor='FFFFFF' debugMode='1'>

<

categories>

<

Category label='HR IT'/>

<

Category label='IT L %26 C'/>

<

Category label='IT R %26 S'/>

<

Category label='PCP IT'/>

<

Category label='Rcds Mgmt IT'/>

<

Category label='Recs IT'/>

<

Category label='Unknown'/>

</

categories>

<

dataset seriesName='Assessment' color='499DF5'>

<

set value='98.66666666666666666666666667' color='499DF5'/>

<

set value='100' color='499DF5'/>

<

set value='100' color='499DF5'/>

<

set value='100' color='499DF5'/>

<

set value='100' color='499DF5'/>

<

set value='100' color='499DF5'/>

<

set value='98.21428571428571428571428571' color='499DF5'/>

</

dataset>

<

dataset seriesName='Complete' color='3EA055'>

<

set value='1.00' color='3EA055'/>

<

set value='' color='3EA055'/>

<

set value='' color='3EA055'/>

<

set value='' color='3EA055'/>

<

set value='' color='3EA055'/>

<

set value='' color='3EA055'/>

<

set value='' color='3EA055'/>

</

dataset>

<

dataset seriesName='Remediation' color='FFE600'>

<

set value='0.3333333333333333333333333300' color='FFE600'/>

<

set value='' color='FFE600'/>

<

set value='' color='FFE600'/>

<

set value='' color='FFE600'/>

<

set value='' color='FFE600'/>

<

set value='' color='FFE600'/>

<

set value='' color='FFE600'/>

</

dataset>

<

dataset seriesName='Testing' color='FAAC58'>

<

set value='' color='FAAC58'/>

<

set value='' color='FAAC58'/>

<

set value='' color='FAAC58'/>

<

set value='' color='FAAC58'/>

<

set value='' color='FAAC58'/>

<

set value='' color='FAAC58'/>

<

set value='' color='FAAC58'/>

</

dataset>

<

trendlines>

<

line startValue='42000' color='91C328' displayValue='Target' showOnTop='1'/>

</

trendlines>

<

styles>

<

definition>

<

style name='myHTMLFont' type='font' isHTML='0' />

<

style name='myCaptionFont' type='font' font='Frutiger 45 Light' size='13' color='000000' bold='1' />

<

style name='myAxisTitlesFont' type='font' font='Frutiger 45 Light' size='11' bold='0' color='000000'/>

<

style name='myLabelsFont' type='font' font='Frutiger 45 Light' size='11' color='000000' bold='0' />

<

style name='myValuesFont' type='font' font='Frutiger 45 Light' size='11' color='000000' bold='0'/>

</

definition>

<

application>

<

apply toObject='Canvas' styles='CanvasAnim' />

<

apply toObject='LEGEND' styles='myHTMLFont' />

<

apply toObject='Canvas' styles='CanvasAnim' />

<

apply toObject='LEGEND' styles='myHTMLFont' />

<

apply toObject='Caption' styles='myCaptionFont' />

<

apply toObject='XAxisName' styles='myAxisTitlesFont' />

<

apply toObject='YAxisName' styles='myAxisTitlesFont' />

<

apply toObject='DataLabels' styles='myLabelsFont' />

<

apply toObject='YAXISVALUES' styles='myValuesFont' />

<

apply toObject='XAXISVALUES' styles='myValuesFont' />

</

application>

</

styles>

</

chart>

 

thanks

Share this post


Link to post
Share on other sites

Hi,

In a Bar chart, the horizontal axis that seems to be the X-Axis, actually represents the Y-Axis and the vertical axis represents the X-Axis.

In this case you need to explicitly set the value of the attribute "yAxisMaxValue" to "100" in the <chart> element.

Please check with the attached screenshot of the rendered chart and the modified XML for your reference.

Hope this helps. :)

post-8143-128441586873_thumb.jpg

StBar2D.xml

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
Sign in to follow this