score:1
Accepted answer
You need to enable useHTML
.
stackLabels: {
style: {
backgroundColor: 'rgba(252, 255, 197, 0.7)',
color: 'black',
borderWidth: 1
},
enabled: true,
useHTML: true
}
score:1
With formatter and enable useHTML
`
yAxis:{ stackLabels: {
style: {
color: 'black'
},
enabled: true,
useHTML: true,
formatter: function() {
return '<span style="background-color:red">' + this.total + '</span>';
}
}
},`
Source: stackoverflow.com
Related Query
- Highcharts Stacklabel Style backgroundColor
- Color contrast setting on dataLabels style parameter using Highcharts 5 is not working on some colors
- Style highcharts x and y axis
- How do I style the series labels on a Highcharts pie chart?
- Highcharts applying custom style to context button using css class
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts - Global configuration with common code and unique data & Headings
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- How do I change speedometer caption style changes in highcharts
- Highcharts -- Can't apply style to x axis labels
- HighCharts Stock Chart error code 18
- highcharts change rendered image source on click
- Setting highcharts datalabels backgroundColor with the same color of its serie
- How do i add mouse wheel code in Angular2 highcharts in typescript
- how to display 2 same highcharts without duplicate the code
- HighCharts backgroundcolor of group of columns
- Use of DotNet HighCharts dll to make charts in code behind
- How to edit tooltip in Highcharts C# code
- what means ${demo.css} in example files of highcharts ? That piece of code seems to be literal
- Adding different style to a series in legend in Highcharts
- Highcharts - where to place style and changing style for one wedge in a pie chart
- passing json values to highcharts from .net code behind
- how to use highcharts tooltip formatter in python code
- Highcharts legend custom css style / format using only highcharts options
- passing formatting JavaScript code to HighCharts with JSON
- Highcharts table style in tooltips not working
- How to Change marker symbol and dataLabel with custom style in Highcharts
- highcharts style modification in R
- Change Style of Title in HighCharts in ActionResult
- How can I style my highcharts solid gauge to have a background behind the percentage?
More Query from same tag
- How to calculate the height of bar chart
- Is it possible to have the category displayed above the series in a horizontal bar jsHighchart?
- Set line to 0 if no measurements between dates in highchart
- Template helper not ready even though it should be
- highcharts drilldown click listener for short column bars problem
- Highcharts How to toggle DataLabel
- how create chart with highcharts.js and call ajax?
- Series fillColor for marker on hover ONLY
- Replace NAN value in order to avoid Crash
- Is it possible to make all-custom point marker design in highstock?
- The correct method to populate a Highcharts box plot using JSON
- Highstock disable tooltip for one series
- How to increase width between two bar in highcharts.js
- highcharts col width and border-top
- HighCharts not working on Safari but works fine on Firefox and Chrome
- onclick handler in custom exporting button in highcharts-vue fails with 'Cannot read property 'call' of undefined'
- Highchart Z-Index practice not functioning
- Proper format of json for Highchart.js with multiple series
- Highchart - xAxis values are to close
- Removing "Series 1" in legend and ordering legend
- Angular 7 - Dynamic HighChart update
- Highcharts pie chart legend items showing gradient colors
- Change/Swap Highcharts Data
- Angular 11 - How to import array data into highcharts
- highcharts: bar/column chart with drilldown
- Better way to use Ruby/Sinatra to pass data to Highcharts?
- Synchronize two highstock charts, same rangeSelector across two tabs
- How to add point images to a map using javascript?
- Creating a marimekko chart using Highcharts
- Highcharts not rendering in Angular 2 when I use data from http.get