anychart.onDocumentReady(function () {
var data = [
{ fullName: ‘Extroversion’, name: ‘Extro’, value: 62, color: ‘#00BFFF’ },
{ fullName: ‘Social Intelligence’, name: ‘SocIQ’, value: 73, color: ‘#1E90FF’ },
{ fullName: ‘Achievement’, name: ‘Ach’, value: 66, color: ‘#FF4500’ },
{ fullName: ‘Locus of Control’, name: ‘LOC’, value: 77, color: ‘#FFD700’ },
{ fullName: ‘Sales Interest’, name: ‘SI’, value: 82, color: ‘#2F4F4F’ },
{ fullName: ‘Sales Belief’, name: ‘SB’, value: 58, color: ‘#A9A9A9’ },
{ fullName: ‘Perseverance’, name: ‘Per’, value: 72, color: ‘#FF0000’ },
{ fullName: ‘Competitive’, name: ‘Comp’, value: 80, color: ‘#008080’ },
{ fullName: ‘Empathy’, name: ‘Empy’, value: 55, color: ‘#20B2AA’ },
{ fullName: ‘Purposefulness’, name: ‘Purp’, value: 62, color: ‘#FF8C00’ },
{ fullName: ‘Optimism’, name: ‘Opt’, value: 65, color: ‘#00BFFF’ },
{ fullName: ‘Influence’, name: ‘In’, value: 68, color: ‘#1E90FF’ },
{ fullName: ‘Curiosity’, name: ‘Cur’, value: 78, color: ‘#FF4500’ },
{ fullName: ‘Rejection Stamina’, name: ‘RS’, value: 79, color: ‘#FFD700’ },
{ fullName: ‘Assertiveness’, name: ‘Ast’, value: 69, color: ‘#2F4F4F’ }
];
var chart = anychart.polar();
// setup chart appearance settings
chart
.background(‘#FEFEFE’)
.sortPointsByX(true)
.xScale(‘ordinal’)
.yAxis(false);
// setup chart scales settings
chart.xScale().names(‘name’);
// set chart x-axis settings
chart.xAxis().fill(‘#EDECEF’).stroke(‘none’).overlapMode(‘auto-width’);
// set chart x-axis ticks settings
chart.xAxis().ticks().length(‘100%’).stroke(‘#FEFEFE’);
// set chart x-axis labels settings
chart.xAxis().labels().padding(0).fontSize(12).hAlign(‘center’).fontColor(‘black’);
// create range column series
var series = chart.column(data);
series.stroke(‘none’);
series.fill(function() {
return {color: this.iterator.get(‘color’), opacity: 0.7 };
});
series.tooltip().titleFormat(‘{%fullName}’);
series.tooltip().format(“{%value}”);
// set chart container id
chart.container(‘container’).draw();
});