FusionCharts - Initially hidden data series upon chart load
Created using FusionCharts Suite XT - www.fusioncharts.com
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 cosmetics of legend, including border, background and shadow
Attributes:
# legendBgColor
# legendBgAlpha
# legendBorderColor
# legendBorderThickness
# legendBorderAlpha
# legendShadow
-->
<div id="tabs">
<ul>
<li><a href="#tabs-1">Tab One</a></li>
<li><a href="#tabs-2">500x300</a></li>
<li><a href="#tabs-3">100% x 100%</a></li>
<li><a href="#tabs-4">100% x 100% fixed div</a></li>
</ul>
<div id="tabs-1">
<div id="first-chart-container">FusionCharts will render here</div>
<p>Visible chart renders fine, tabs 2, 3 and 4 do not.</p>
<p>All three charts have the exact same dataSource.</p>
</div>
<div id="tabs-2">
<div id="chart-container">FusionCharts will render here</div>
<p>Subtitle is overlapping data and values are not diplayed in bars.</p>
</div>
<div id="tabs-3">
<div id="second-chart-container">FusionCharts will render here</div>
<p>Initial size flicker and the legend is rendered over the bars.</p>
</div>
<div id="tabs-4">
<div id="third-chart-container">FusionCharts will render here</div>
<p>Initial size flicker.</p>
</div>
</div>
CSS
#third-chart-container {
width: 300px;
height: 200px;
}
JavaScript
$(function() {
$( "#tabs" ).tabs();
});
var ds = {
"chart": {
"caption": "Comparison of Quarterly Revenue",
"subCaption": "Last year Vs This year",
"xAxisname": "Quarter",
"yAxisName": "Revenue (In USD)",
"numberPrefix": "$",
"placevaluesInside": "1",
"rotatevalues": "1",
"valueFontColor": "#000",
"theme": "fint",
//Cosmetics for legend
"legendBgColor": "#CCCCCC",
"legendBgAlpha": "20",
"legendBorderColor": "#666666",
"legendBorderThickness": "1",
"legendBorderAlpha": "40",
"legendShadow": "1"
},
"categories": [
{
"category": [
{
"label": "Q1"
}, {
"label": "Q2"
}, {
"label": "Q3"
}, {
"label": "Q4"
}
]
}
],
"dataset": [
{
"seriesname": "Last Year",
"initiallyHidden" : "1",
"data": [
{
"value": "10000"
}, {
"value": "11500"
}, {
"value": "12500"
}, {
"value": "15000"
}
]
}, {
"seriesname": "This Year",
"data": [
{
"value": "25400"
}, {
"value": "29800"
...