Customizing font of y axis values
Created using FusionCharts Suite XT - www.fusioncharts.com
by Nabajeet Sonowal
HTML
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.charts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<!-- Customizing Legend font cosmetics. Attributes: # legendItemFont # legendItemFontSize # legendItemFontColor # legendItemFontBold # legendItemHoverFontColor # legendCaptionFont # legendCaptionFontSize # legendCaptionFontColor # legendCaptionAlignment # legendCaptionBold Legend items font hover color # legendItemHiddenColor" -->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function () {
var revenueChart = new FusionCharts({
type: 'mscolumn2d',
renderAt: 'chart-container',
width: '600',
height: '300',
dataFormat: 'json',
dataSource: {
"chart": {
"caption": "Comparison of Quarterly Revenue",
"subCaption": "Last year Vs This year",
"xAxisname": "Quarter",
"yAxisName": "Amount (In USD)",
"numberPrefix": "$",
"theme": "fint",
"captionFontColor": "#000000",
"xAxisNameFontColor": "#000000",
"yAxisNameFontColor": "#000000",
"labelFontColor": "#000000",
"outCnvBaseFont": "Arial",
"outCnvBaseFontSize": "11",
"outCnvBaseFontColor": "#55AA00",
},
"categories": [{
"category": [{
"label": "Q1"
}, {
"label": "Q2"
}, {
"label": "Q3"
}, {
"label": "Q4"
}]
}],
"dataset": [{
"seriesname": "Last Year",
"data": [{
"value": "10000"
}, {
"value": "11500"
}, {
"value": "12500"
}, {
"value": "15000"
}]
}, {
"seriesname": "This Year",
"data": [{
"value": "25400"
}, {
"value": "29800"
}, {
"value": "21800"
}, {
"value": "26800"
}]
}]
}
}).render();
});