Plotr Project PageDocumentation › Option: fillOpacity

NOTE: this page is a work in progress!

The fillOpacity is a float between 0.0 and 1.0 and specifies the opacity of the fillcolor of a chart. So if you’re showing a line chart with shouldFill set to true, and set fillOpacity to 0.5, you can see the underlying lines. This is the same for pie and bar charts, but with those you’ll only see the background shine through the fillcolor. Here are some examples:

// Non-transparent fillcolor.
var options = {
	fillOpacity: 1.0,
};
// Half transparent fillcolor.
var options = {
	fillOpacity: 0.5,
};
// Transparent fillcolor.
var options = {
	fillOpacity: 0.0,
};

Note that when you use fillOpacity, the shouldFill option must be true.

At the time of writing the current version of Plotr is 0.3.0. Some things might have changed.