Recommended Posts

Is it possible to reduce the with of a bar ?

I am using StackedColumn3DLineDY.swf and so far there are about twevle data points. I would like to reduce the width of each bar so that there is some whitespace between each bar, to make it more readable.

How can this be done ?

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

 

 

 

Could you please try using the attribute plotSpacePercent in the chart element?

 

 

 

On a column chart, there is spacing defined between two columns. By default, the spacing is set to 20% of canvas width. If you intend to increase or decrease the spacing between columns, you can do so using this attribute. For example, if you wanted all columns to stick to each other without any space in between, you can set plotSpacePercent to 0. Similarly, if you want very thin columns, you can set plotSpacePercent to its max value of 80.

 

 

 

Hope this helps. :P

Share this post


Link to post
Share on other sites

I have this in my chart tag

<cfset strXML = "<chart plotSpacePercent='80' baseFontSize='12' .... and it did not change the width of each bar, they are still the same.

What am I doing wrong ?

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

I am attaching images of charts with different values of plotSpacePercent.

If this does not work out, please so attach you XML, so that we can resolve the issue as soon as possible. :P

psp0.zip

Share this post


Link to post
Share on other sites

I looked at the zip files and there are spaces between the bars, which is what I am looking for.

This is what I have in the chart tag :

<chart plotSpacePercent='80' baseFontSize='12' ....

I tried different values for plotSpacePercent and none seem to work. Is this correct and is it in the right place ?

Also, can you display the code for the zip files so I can see what I am doing wrong ?

Also, how do I post my code ? copy and paste does not seem to work.

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

The plotSpacePercent attribute is to be set in the chart element.

I am attaching all the sample XMLs explaining the plotSpacePercent property. 

Hope this helps. :P

plot space percent.zip

Share this post


Link to post
Share on other sites

hello,

I am using coldfusion and this is what I have for the chart tag/element :

<cfset strXML = "<chart plotGradientColor='' plotSpacePercent='70' baseFontSize='10' PYAxisName='Number of Lots' PYAxisMaxValue='500' SYAxisName='Days' SYAxisMaxValue='200' labelDisplay='rotate' slantLabels='1'>">

This is my output :

<cfoutput>#renderChart("http://#cgi.SERVER_NAME#/Fusion/Charts/StackedColumn3DLineDY.swf", "", strXML, "chartID", 760, 600, false, false)#</cfoutput>

The chart plots fine and everything works, except for the plotSpacePercent. The bars are still close togehter.

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Could you please send us the generated XML so that we can solve it as soon as possible?

Awaiting your reply.

Share this post


Link to post
Share on other sites

Hi,

I have the same problem with StackedColumn3DLineDY. plotSpacePercent attribute do not work. Can you help us?

Sample xml;

<chart

anchorBorderColor='000000'

baseFont='Tahoma'

baseFontColor='000000'

baseFontSize='9'

categoryCount='8.0'

chartBottomMargin='0'

chartTopMargin='10'

datasetCount='4.0'

decimalSeparator=','

decimals='5' divLineIsDashed='1'

forceDecimals='1'

formatNumberScale='0'

inDecimalSeparator=','

inThousandSeparator='.'

labelDistance='5'

movieName='StackedColumn3DLineDY'

PYAxisName='Faiz Orani'

plotSpacePercent='50'

SYAXisName='Faiz Orani'

screenCode='CFH1C201'

screenGraphSequence='1'

setCount='32.0'

showValues='0'

slantLabels='1'

styleCount='4'

thousandSeparator='.'

>

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionCharts forum. :)

The attribute "plotSpacePercent" depends on the width of the chart.

In case the dataplot does not get enough space to expand, the display will not be differentiable.

Please try increasing the width of the chart for the same.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

 

Could you please send us the sample code(HTML and XML) that you are using to render the chart, as an attachment?

 

Awaiting your reply.

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