Sign in to follow this  
Hari G S

'Legend Font Color' and 'Data Values Font Color' for Pie chart

Recommended Posts

Hi all,

 

Is there a way I can set these options, 'Legend Font Color' and 'Data Values Font Color' for Pie chart? I can set these in column chart but not working for pie chart.

 

Thanks and Regards

Hari G S

Share this post


Link to post
Share on other sites

Hi Hari,

 

Can you please try using the following style elements for Pie chart?

 <styles>
    <definition>
        <style name='MyFirstFontStyle' type='font' font='Verdana' size='12' color='FF0000'  />     
    </definition>
    <application>
        <apply toObject='Legend' styles='MyFirstFontStyle' />
        <apply toObject='DataLabels' styles='MyFirstFontStyle' />
    </application>
  </styles>

Share this post


Link to post
Share on other sites

 

Hi Hari,

 

Can you please try using the following style elements for Pie chart?

 <styles>
    <definition>
        <style name='MyFirstFontStyle' type='font' font='Verdana' size='12' color='FF0000'  />     
    </definition>
    <application>
        <apply toObject='Legend' styles='MyFirstFontStyle' />
        <apply toObject='DataLabels' styles='MyFirstFontStyle' />
    </application>
  </styles>

 

Hi Swarnam,

 

Yes I have tried this in for pie chart but not working. This same will work for column chart but not for pie chart.

 

Thanks and Regards

Hari G S

Share this post


Link to post
Share on other sites

Hi Hari,

 

It works for Pie charts. Please find the attached screenshot.

 

Can you please confirm the version of FusionCharts used at your end?

Capture.PNG

Share this post


Link to post
Share on other sites

Hi Hari,

 

It works for Pie charts. Please find the attached screenshot.

 

Can you please confirm the version of FusionCharts used at your end?

 

 

Thanks Swarnam, I actually missed the attribute type='font' inside the style tag.

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