Sign in to follow this  
TomMancine

plotSpacePercent problem with Bar2d

Recommended Posts

Hello. I'm trying to use the plotSpacePercent property to increase the spacing between bars in a Bar2D chart. I have successfully used this property to increase the spacing between bars in a Column2D chart. Unfortunately, increasing the plotSpacePercent property on a Bar2D chart seems to only increase the space above and below the bars, and they remain right next to one another, even when I pick an extreme value like 80% (they are all squeezed tightly together in the middle 20% of the chart!).

 

 

 

If someone could tell me whether this is a known issue, or whether I'm just doing something wrong that I can't see, I'd really appreciate it. And if it is a known issue, it'd be nice to get a timetable on the fix so that I can tell my boss! :)

 

 

 

Here is the XML I am generating:

 


<?xml version="1.0" encoding="utf-16"?>

<chart borderThickness="0" canvasBorderThickness="1" showBorder="0" bgColor="f1f5fb" bgAlpha="100" defaultAnimation="1" alternateHGridColor="CCCCCC" alternateHGridAlpha="20" divLineColor="888888" divLineAlpha="50" baseFontColor="666666" showLabels="1" showValues="0" decimals="2" showLegend="0" rotateLabels="0" showYAxisValues="0" yAxisMaxValue="3" caption="Marginal ROI" debug="1" useRoundEdges="1" plotSpacePercent="20" >

   <trendLines>

       <line startValue="1" color="888888" displayValue="$1/$ (Break even)" thickness="2" />

   </trendLines>

   <categories>

       <category label="" />

   </categories>

   <dataset color="#957CCE">

       <set value="5.597108491501471" />

   </dataset>

   <dataset color="#ED7C40">

       <set value="5" />

   </dataset>

   <dataset color="#64AD9C">

       <set value="5" />

   </dataset>

   <dataset color="#EABB45">

       <set value="5.019340681236006" />

   </dataset>

   <dataset color="#4E7AC2">

       <set value="5.008364034539923" />

   </dataset>

   <dataset color="#56C750">

       <set value="32.714110752297515" />

   </dataset>

   <dataset color="#B5B649">

       <set value="5.005023160360537" />

   </dataset>

   <dataset color="#DF91E1">

       <set value="5" />

   </dataset>

   <dataset color="#7BC9CE">

       <set value="5" />

   </dataset>

   <styles>

       <definition>

           <style name="CaptionFont" type="font" size="18" Color="365277" />

           <style name="MyShadow" type="Shadow" alpha="30" />

       </definition>

       <application>

           <apply toObject="CAPTION" styles="CaptionFont" />

           <apply toObject="DATAPLOT" styles="MyShadow" />

           <apply toObject="CANVAS" styles="MyShadow" />

       </application>

   </styles>

</chart> 

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

There is no known issue of plotSpacePercent not working in Bar2D chart.

We have checked your XML. After making minor changes the issue has been resolved.

 

I am attaching the files and screen-shots of the chart.

 

Hope this helps. :)

bar2d.zip

Share this post


Link to post
Share on other sites

This solution does seem to work with the Bar2D chart. I should have specified more precisely that I was trying to get it to work with the MSBar2D chart. Is there a way to get plotSpacePercent to work correctly using the MSBar2D instead of the Bar2D?

 

 

 

Thanks again,

 

Tom Mancine

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello Tom,

In the MSBar2D chart the datasets of different series under the same category are grouped together. The spacing between the columns of this individual group cannot be specified. The spacing between two different categories can be mentioned using plotSpacePercent.

 

Here, in your XML, you have specified only a single category, and thus all the datasets of different series have been grouped together.

 

I'm afraid, we donot have a feature that supports the spacing between the bars of the same category, as of now.

However, we have made a note of your suggestion and added it to our wishlist.

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