Valuation by Asset Class - Highcharts
by verashn
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; max-width: 600px; margin: 0 auto"></div>
JavaScript
$(function () {
Highcharts.setOptions({
colors: ['#203770', '#3d91ce', '#498F8F', '#6E5DA4', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
lang: {
decimalPoint: '.',
thousandsSeparator: ','
},
chart: {
style: {
fontFamily: 'Source Sans Pro'
}
}
});
// Build the chart
$('#container').highcharts({
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false,
type: 'pie'
},
title: {
text: 'Valuation by Asset Class'
},
subtitle: {
text: 'hi by Asset Class'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: false,
format: '<b>{point.name}</b>: {point.percentage:.1f} %',
style: {
color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
}
}
}
},
series: [{
name: "% Value",
data: [
{name: "Banking", y: 5.4},
{name: "Fixed Income", y: 30.8},
{name: "Equities", y: 52.5},
{name: "Alternative Investments", y: 11.4}
]
}]
});
});