score:130
Try this solution:
histogram = new Highcharts.Chart({
chart: { renderTo: 'histogram', defaultSeriesType: 'bar',
backgroundColor:'rgba(255, 255, 255, 0.0)'
}
score:-2
May be you have to write
filter:0 !important;
in your css.
score:-2
backgroundColor:'rgba(255, 255, 255, 0.0)',
score:0
If you can access the highcharts.js file go to the backgroundColor line (around 479) and change line like backgroundColor:"rgba(255, 255, 255, 0)"
. It will change all backgrounds of the charts to transparent
score:1
You should use this :
.highcharts-background {
fill: transparent;
}
Full example:
Highcharts.chart('container', {
chart: {
type: 'line',
styledMode: true
},
title: {
text: 'Chart border and background by CSS'
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
legend: {
layout: 'vertical',
floating: true,
align: 'left',
x: 100,
verticalAlign: 'top',
y: 70
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
});
@import "https://code.highcharts.com/css/highcharts.css";
.highcharts-background {
fill: #efefef;
stroke: #a4edba;
stroke-width: 2px;
}
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="height: 400px"></div>
score:2
backgroundColor: 'transparent'
also working if you need type safety.
score:9
I found this in Highcharts sources:
Empirical lowest possible opacities for TRACKER_FILL
- IE6: 0.002
- IE7: 0.002
- IE8: 0.002
- IE9: 0.00000000001 (unlimited)
- IE10: 0.0001 (exporting only)
- FF: 0.00000000001 (unlimited)
- Chrome: 0.000001
- Safari: 0.000001
- Opera: 0.00000000001 (unlimited)
TRACKER_FILL = 'rgba(192,192,192,' + (hasSVG ? 0.0001 : 0.002) + ')'
So you can set the chart background color to 'rgba(255,255,255,0.002)' and it runs in the most important browsers.
score:131
Source: stackoverflow.com
Related Query
- Highcharts chart option backgroundColor:'transparent' showing black on IE 8
- Disable Print Chart option only from HighCharts
- Highcharts Pie Chart Drilldown not showing on third drill
- Highcharts line chart tooltips not showing correctly?
- Highcharts spline chart points not showing unless zoomed in
- Highcharts problem - showing labels in zoomable chart
- HighCharts Stock Chart error code 18
- HighCharts pointPlacement option not working in a single column chart
- Implementing Jaspersoft Studio Community (v6.2.2) Custom Visualisation Component showing Highcharts chart
- highcharts chart showing only last element in series
- HighCharts Angular - data from API not showing in chart
- Highcharts series showing different data for 'column' and 'line' chart
- Highcharts display label for pie chart using html table as data source
- HighCharts Pie chart is not showing all of dataLabels, it's cut off
- Highcharts pie chart legend items showing gradient colors
- Highcharts chart not showing in IE9
- Highcharts - Highstock chart showing double line on hovering data points to show tooltip
- Highcharts convert: not showing pie chart data labels
- No data to display in highcharts showing up with the data in Bubble Chart
- Highcharts renders the chart as solid black and missing 'fill' attribute on `rect`
- Highcharts stock chart not showing up with custom data
- Highcharts Pie Chart - Showing Negative value as "null" in legend
- Highcharts - Indicator's data not showing in line chart
- Highcharts cloud issue with data source when duplicating chart
- Highcharts xAxis with datetime not showing any chart
- Update a single option on a HighCharts chart
- Highcharts yAxis plotlines not showing on 'line' chart type
- highcharts endOnTick option showing unspecified value on axis
- HighCharts : Total Value is not showing in Pie Chart
- Adding export-to-csv option onto Highcharts chart as a client user?
More Query from same tag
- Vuejs + HighchartJS xAxis width
- Highcharts make pie chart goal value only 50%
- Highcharts format labels on grouped stacked bar diagram with $ k, M for currency and 'hrs' for time
- Add null values to Array Javascript
- Bars inside highchart is overlapping when exported to PDF
- Highstock UTC date YTD
- page on ie 9 displays only after developer tools refresh, not before
- Highcharts percentage of total for simple bar chart
- How to modify highcharts legend item click event?
- Can I get input field object from range selector using java? Highchart
- How to remove the label of scale label and tooltip on speedometer?
- Highcharts with decrease order in each interval
- how to use Bootstrap font icons on x-axis lables in highcharts
- Highcharts: change timeUnit thresholds
- Slider in Highcharts similar to Google Playground
- Add tooltip in highchart custom button
- How would I add a padding to the plot area in HighCharts (HighStock) to pad the border?
- Modifying text in resetZoomButton doesn't work - highcharts
- Highcharts dates in xaxis customisation
- How to change the border of the area chart?
- Hiding HighCharts StackLabels when series is large
- Highcharts column only show one category
- Adding information to xAxis - r shiny
- How can we add chart context menu in highcharts-angular?
- Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top
- Drilldown event in Highcharts column chart
- Non-fixed svg height? My pie charts have different size even though svg width and pie size are identical. Svg height is fixed, how do i unfix it?
- How to fix values from an array on the y-axis in Highcharts
- Amplify range of selection into error bar series
- MYSQL query for concatenating values (highcharts series data)