anychart.onDocumentReady(function () {
var dataSet = anychart.data.set([
['Education', 1, 4, 2.3, 2.8],
['Social class', 1, 3.5, 1.6, 3.2],
['Children in household', 1, 1.2, 1.08, 1.7],
['Literacy', 1, 3.5, 2.7, 2.4],
['Income', 1, 2.3, 3.2, 3.152],
var data1 = dataSet.mapAs({'x': 0, 'value': 1});
var data2 = dataSet.mapAs({'x': 0, 'value': 2});
var data3 = dataSet.mapAs({'x': 0, 'value': 3});
var data4 = dataSet.mapAs({'x': 0, 'value': 4});
var chart = anychart.radar();
chart.title('Equality of digital use')
chart.padding().bottom(70);
.ticks({'interval': 0.2});
.text('This chart compares the equality of digital use by specific indicators for the UK adult population.\n' +
'From our research, there are 5 key predictors for internet use; income, age of leaving education, social class,\n' +
'number of children in household and confidence in literacy skills.\n' +
'To compare how these indicators determine the likelihood of being an internet user, limited user or a non-user, \n' +
'the odds ratio for each indictor has been assigned.\n' +
'We have also mapped how these indicators impact non-users who say the internet "is not for me".\n' )
.position('center-bottom')
.fontColor('rgb(35,35,35)')
chart.line(data1).name('Equality').markers(true);
chart.line(data2).name('Non users').markers(true);
chart.line(data3).name('Limited users').markers(true);
chart.line(data4).name('"Not for me" non users').markers(true);
chart.tooltip().format('Likelihood: {%Value}{decimalsCount: 2}');
chart.container('container');