export var chartOptions = {
credits: {
enabled: false
},
chart: {
renderTo: "container",
defaultSeriesType: "column",
backgroundColor: "rgba(0,0,0,0)"
},
xAxis: {
categories: [],
crosshair: true
},
yAxis: {
title: {
text: ""
},
labels: {
style: {
color: "#d4d2d2",
font: "11px Trebuchet MS, Verdana, sans-serif"
}
}
},
legend: {
itemStyle: {
color: "#d4d2d2"
}
},
tooltip: {
headerFormat: '{point.key}
',
pointFormat:
'| {series.name}: | ' +
'{point.y:.0f} pesos |
',
footerFormat: "
",
shared: true,
useHTML: true
},
responsive: {
rules: [
{
condition: {
maxWidth: 500
},
chartOptions: {
legend: {
layout: "horizontal",
align: "center",
verticalAlign: "bottom"
}
}
}
]
}
};
export var pieOptions={
chart: {
renderTo: "container",
defaultSeriesType: "pie",
backgroundColor: "rgba(0,0,0,0)"
},
xAxis: {
categories: [],
crosshair: true
},
credits: {
enabled: false
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
format: '{point.name}: {point.percentage:.1f} %'
}
}
},
};