Option: shouldFill
Plotr Project Page › Documentation › Option: shouldFill
NOTE: this page is a work in progress!
With shouldFill boolean you can specify if the chart that’s plotted should be filled with a color defined by the colorScheme. So when it’s set to true and you’re plotting a LineChart, the area beneath the lines is filled with the specified color and the lines is drawn white. When shouldFill is set to false, the lines are drawn in the color specified in the color scheme, and the area beneath it is transparent. To test it yourself, go to the Plotr Configurator, select LineCharts, and then tick the checkbox that says ‘Real lines’.
// Plot real line chart.
var options = {
...
shouldFill: false,
...
};
// Plot a line chart with colored area.
var options = {
...
shouldFill: true,
...
};
Note that when a bar chart or pie chart is plotted with shouldFill set to true, you get strange looking graphs.
At the time of writing the current version of Plotr is 0.3.0. Some things might have changed.