HighCharts Report Styling
How to adjust Global HighCharts report styling

The JS
The CSS
How to Implement
Last updated
Was this helpful?
How to adjust Global HighCharts report styling

Last updated
Was this helpful?
Was this helpful?
/***************************************/
/**** Global Reporting Page Styling ****/
/***************************************/
Highcharts.setOptions({
chart: {
backgroundColor: {
linearGradient: [500, 500, 500, 500], /*for report container, set to same value for no gradient*/
stops: [
[0, 'rgb(255, 255, 255)'],
[1, 'rgb(240, 240, 255)'] /*we create a light blue report container background to contrast the data with the white plot area and white page*/
]
},
borderWidth: 0, /*border width for report container, does not include title, print/download, or filter menu*/
plotBackgroundColor: 'rgba(255, 255, 255, .9)', /*how much lighter you want the plot background to be compared to report background color.
We make the plot background almost transparent to be similar as the page color and contrast with the light blue report container color*/
plotShadow: false, /*adds shadow to bottom and right of plot and gives a 3D effect. We make it flat.*/
plotBorderWidth: 2 /*for plot only. Helps user focus on data in the plot*/
}
});