Skip to content

Add a "fill to zero" option for area charts.#583

Open
AHilyard wants to merge 3 commits intomorrisjs:masterfrom
AHilyard:master
Open

Add a "fill to zero" option for area charts.#583
AHilyard wants to merge 3 commits intomorrisjs:masterfrom
AHilyard:master

Conversation

@AHilyard
Copy link

@AHilyard AHilyard commented May 7, 2015

Currently, when creating an area chart that contains negative values, the chart is filled to the bottom, potentially misrepresenting the actual data. The fillToZero option allows the chart to fill only between the line and zero, where ever that may lie.
See this jsbin for an illustration: http://jsbin.com/qahijimebo/1/edit?html,js,output

AHilyard added 3 commits May 7, 2015 09:05
Setting the fill to zero option will cause an area chart with negative values to only fill to the zero line, instead of the bottom of the chart.
@AHilyard AHilyard closed this May 7, 2015
@AHilyard AHilyard reopened this May 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments