Using JavaScript to get CSS properties

On a work project using Highcharts, we needed the colours of each series to be “configurable”. Unfortunately on first glance, Highcharts doesn’t supportgetting colours from CSSout of the box. Instead we need write some code to allow us to use JavaScript to get CSS properties, specifically the colour propertyand then give those colours to Highcharts to apply to a series. When creating a chart using Highcharts, we can set the colour »