Sign in to follow this  
JJ

Catergories label alignment

Recommended Posts

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

I have created a chart using the StackedBar2D.swf. The problem is I have long names for the catergories and will like to align them all to the left. I have played around with the margins,padding and labelDisplay but no joy. I have inserted the chart so you have an idea of what it currently looks like.

 

 

Thanks

 

[ code ]

<chart showCanvasBg="0" yAxisValuesPadding="50" xAxisValuesPadding="50" chartLeftMargin="0" chartrIGHTMargin="10" labelDisplay="WRAP" xAxisNamePadding="110" xAxisNameWidth="" chartleftMargin="0" yAxisNamePadding="" labelPadding="" showAlternateVGridColor="0" showLabels="1" showYAxisValues="0" showXAxisValues="0" plotSpacePercent="80" divLineColor="ffffff" zeroPlaneColor="ffffff" canvasBgColor="ffffff" canvasBorderAlpha="ffffff" canvasBorderColor="ffffff" bgColor="ffffff" showBorder="ffffff" caption="TestTestTest" shownames="1" showvalues="1" numberPrefix="%" showSum="0" decimals="1" useRoundEdges="0" legendBorderAlpha="0" >

<categories>

<category label="TestTestTest"/>

<category label="TestTestTestTest"/>

<category label="TestTestTestTestTestTest"/>

<category label="TestTestTestTestTestTestTestTestTestTest"/>

<category label="TestTestTestTestTestTes"/>

</categories>

<dataset seriesName="Test3" color="AFD8F8" showValues="1 " bgcolor="ffffff" decimals="1">

<set value="2.8" />

<set value="" />

<set value="2.8" />

<set value="" />

<set value="2.8" />

<set value="" />

</dataset>

<dataset seriesName="Test2" color="F6BD0F" showValues="1" decimals="1">

<set value="16.7" />

<set value="22.2" />

<set value="25" />

<set value="25" />

<set value="16.7" />

<set value="22.6" />

</dataset>

<dataset seriesName="Test1" color="8BBA00" showValues="1" decimals="1">

<set value="80.6" />

<set value="77.8" />

<set value="72.2" />

<set value="75" />

<set value="80.6" />

<set value="77.4" />

</dataset>

</chart>

[/ code ]

2c0342b4-fff4-4596-b63d-ffff.jpg

Share this post


Link to post
Share on other sites

Hi,

Could you please use multi line display with <BR> [ <BR> ] HTML? please use isHTML on via style. please see XML.

------------------------------

<chart  showYAxisValues="0" showXAxisValues="0" showAlternateVGridColor="0"  plotSpacePercent="80" divLineColor="ffffff" zeroPlaneColor="ffffff" canvasBgColor="ffffff" canvasBorderAlpha="ffffff" canvasBorderColor="ffffff" bgColor="ffffff" showBorder="0" caption="TestTestTest"  numberPrefix="%" decimals="1" useRoundEdges="1" legendBorderAlpha="0"  showValues='0' >

  <categories>

  <category label="TestTest<BR>Test"/>

  <category label="TestTest<BR>TestTest"/>

  <category label="TestTest<BR>TestTest<BR>TestTest"/>

  <category label="TestTest<BR>TestTest<BR>TestTest<BR>TestTest<BR>TestTest"/>

  <category label="TestTest<BR>TestTest<BR>TestTes"/>

  </categories>

  <dataset seriesName="Test3"  color="AFD8F8" >

  <set value="2.8" />

  <set value="" />

  <set value="2.8" />

  <set value="" />

  <set value="2.8" />

  <set value="" />

  </dataset>

  <dataset seriesName="Test2" color="F6BD0F">

  <set value="16.7" />

  <set value="22.2" />

  <set value="25" />

  <set value="25" />

  <set value="16.7" />

  <set value="22.6" />

  </dataset>

  <dataset seriesName="Test1" color="8BBA00">

  <set value="80.6" />

  <set value="77.8" />

  <set value="72.2" />

  <set value="75" />

  <set value="80.6" />

  <set value="77.4" />

  </dataset>

  <styles>

  <definition>

  <style name='MyFirstFontStyle' type='font' isHTML ='1'  />

  </definition>

  <application>

  <apply toObject='DATALABELS' styles='MyFirstFontStyle' />

  <apply toObject='TOOLTIP' styles='MyFirstFontStyle' />

  </application>

  </styles>

</chart> 

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