FusionCharts - Configuring scoreless color in Spark Win/Loss chart
Created using FusionCharts Suite XT - www.fusioncharts.com
by FusionCharts
HTML
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
<!-- Configuring color to show matches with no scores by a side in Spark Win/Loss chart using attributes:
# scoreLessColor - Fill colors for bar indicating scoreless matches
-->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function() {
var winLossChart = new FusionCharts({
type: 'sparkwinloss',
renderAt: 'chart-container',
width: '450',
height: '70',
dataFormat: 'json',
dataSource: {
"chart": {
"theme": "fusion",
"caption": "Argentina (Last 10 Matches)",
"subcaption": "2014 FIFA World Cup",
"subCaptionFontSize": "11",
"numberPrefix": "$",
"chartBottomMargin": "20",
"scoreLessColor": "#aa0000"
},
"dataset": [{
"data": [{
"value": "W"
},
{
"value": "W"
},
{
"value": "W"
},
{
"value": "W"
},
{
"value": "W"
},
{
"value": "W"
},
{
"value": "W"
},
{
"value": "W"
},
{
"value": "W"
},
{
"value": "L",
"scoreless": "1"
}
]
}]
}
})
.render();
});