I am trying to set the paletteColors property dynamically on Radar chart.
<div id ="chart-container" style="clear:both;">FusionCharts should load here..</div>
var char = {};
var jSonObj = {};
$(document).ready(function() {
chart.paletteColors = "#008ee4,#6baa01";
jsonObj.chart = chart;
myChart.setChartData(jsonObj, "json");
}
FusionCharts.ready(function (FusionCharts) {
myChart = new FusionCharts ({
type: 'radar',
renderAt: 'chart-container',
width: '650',
height: '450',
}
);
myChart.render('chart-container');
});
});
It's not working. Need a help here. Thanks.