Improves rendering of filled curves when using style.fill config option on the existing line layer.
The previous option worked by implicitly closing the path (joining first and last point). This produced undesirable results if the endpoints were not already flat with the y-axis (see example).
Summary of changes
The new behavior changes the mechanism by which the path is generated to more explicitly fill the area between the data and the y-axis.
References #139
Purpose
Improves rendering of filled curves when using
style.fill
config option on the existing line layer.The previous option worked by implicitly closing the path (joining first and last point). This produced undesirable results if the endpoints were not already flat with the y-axis (see example).
Summary of changes
The new behavior changes the mechanism by which the
path
is generated to more explicitly fill the area between the data and the y-axis.Before:
After: