Flexvision

How To Use Bold In Pie3D

Recommended Posts

Hello, good evening!  I need a little help.
 
I'm trying to use bold in Pie3D values but I have failure. I read the documentation and it recommend to use styles, I follow the examples, copy and paste and can't use styles on pie. This feature is enable in in Pie3D?
 
My chart XML, if you see, I try to use many types of "toObject" but none of this works, I try to use only one option at time and doesnt work.

 

<chart bgColor='E0E0E0' bgAlpha='100' canvasBgAlpha='100' canvasBgColor='E0E0E0' showValues='1' showPercentValues='1' showBorder='0' howLabels='0'  showLegend='0' slicingDistance='75' startingAngle='180'  legendPosition='RIGHT' chartLeftMargin='0' chartRightMargin='0' chartTopMargin='0' chartBottomMargin='0' captionPadding='0' valuePadding='0' manageLabelOverflow='1' animation='0' enableSmartLabels='1' bold='1' >
 <set label='Migradas' value='30' color='00CC00' toolText='Migradas'  isSliced='1' />
 <set label='Pendentes' value='70' color='FF4D4D' toolText='Pendentes' />
  <styles>
     <definition>
          <style name='myValuesFont' type='font' size='15' color='FFFFFF' bold='1' bgColor='666666' borderColor='666666'/>
     </definition>
     <application>
          <apply toObject='DataValues' styles='myValuesFont' />
          <apply toObject='DataPlot' styles='myValuesFont' />
          <apply toObject='Caption' styles='myValuesFont' />
          <apply toObject='Canvas' styles='myValuesFont' />
          <apply toObject='Value' styles='myValuesFont' />
          <apply toObject='Legend' styles='myValuesFont' />
      </application>
    </styles>
</chart> 

 

This values don't respect my styles.

 

chart.png

 


Thank you

Edited by Flexvision

Share this post


Link to post
Share on other sites

Hey,

 

To apply styles to Data labels of the pie chart, apply styles to "DATALABELS" object.

 

Please find the updated XML code:

<chart  bgColor='E0E0E0' bgAlpha='100' canvasBgAlpha='100' canvasBgColor='E0E0E0' showValues='1' showPercentValues='1' showBorder='0' howLabels='0'  showLegend='0' slicingDistance='75' startingAngle='180'  legendPosition='RIGHT' chartLeftMargin='0' chartRightMargin='0' chartTopMargin='0' chartBottomMargin='0' captionPadding='0' valuePadding='0' manageLabelOverflow='1' animation='0' enableSmartLabels='1' bold='1' >
 <set label='Migradas' value='30' color='00CC00' toolText='Migradas'  isSliced='1' />
 <set label='Pendentes' value='70' color='FF4D4D' toolText='Pendentes' />
  <styles>
     <definition>
          <style name='myValuesFont' type='font' size='15'  bold='1' bgColor='666666' />
     </definition>
     <application>
          <apply toObject='DATALABELS' styles='myValuesFont' />   
          <apply toObject='Caption' styles='myValuesFont' />
          <apply toObject='Legend' styles='myValuesFont' />
      </application>
    </styles>
</chart>

Hope this helps.

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