senthily88

Change Y-Axis Font Color,Size,And Family

Recommended Posts

Guest Sumedh

Hello,

 

You can use FusionCharts XT Font styles for YAXISVALUES chart element. The font style allows you to configure the font face, font size, color etc.

 

Ref. Code:

<styles>

    <definition>
        <style name='MyFirstFontStyle' type='font' font='Calibri' size='12' color='FF0000' bold='1'/>
    </definition>
    <application>
        <apply toObject='YAXISVALUES' styles='MyFirstFontStyle' />
    </application>
</styles>
 
Please find attached chart XML and screen-shot for your reference.
 
For more information, please refer the following link:

post-24802-0-97567300-1392292824_thumb.png

YaxisValuesFont_data.xml

Share this post


Link to post
Share on other sites

Hi,

<style> element has been deprecated and has been replaced by <chart> element attributes.

In order to change the y-axis font properties, you can use outCnvBaseFont attribute at the chart level. Please, note this attribute sets the base font family of the chart text which lies outside the canvas i.e., all the values and the names in the chart which lie outside the canvas will be displayed using the font name provided here.

Please refer this link for further reference - http://www.fusioncharts.com/dev/basic-chart-configurations/fonts.html

Share this post


Link to post
Share on other sites
4 hours ago, Ayan Bhadury said:

<style> element has been deprecated and has been replaced by <chart> element attributes.

Barely replaced, there is a few options (like underline) that is was not implemented in chart attributes.

4 hours ago, Ayan Bhadury said:

In order to change the y-axis font properties, you can use outCnvBaseFont attribute at the chart level. Please, note this attribute sets the base font family of the chart text which lies outside the canvas i.e., all the values and the names in the chart which lie outside the canvas will be displayed using the font name provided here.

Please refer this link for further reference - http://www.fusioncharts.com/dev/basic-chart-configurations/fonts.html

Unfortunately this will not be possible for me, I hoped there was some way to replicate the same behavior as the YAXISVALUES style, since there was this possibility.

I hope that in the next releases this possibility will be reimplementated in some way.

Edited by Marlon

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