Set default type for stacked area to expanded

This commit changes the default graph type for stacked area to the
expanded type. The expanded stacked area graph type is by far generally
the most useful it clearly visualizes all the categories the best even
when one group is largely outnumbered. In the interactive view it also
shows a percentage which is normally more useful than a raw count. The
graph type is still user selectable for more specific use cases.

Change-Id: I4f446e3868990c748ecc85135031e2a84bcfa894
This commit is contained in:
Matthew Treinish 2015-12-15 19:00:18 -05:00
parent f522a85d8e
commit 3517e294de
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ function chartStackArea() {
.useInteractiveGuideline(true)
.rightAlignYAxis(true)
.showControls(true)
.clipEdge(true);
.clipEdge(true)
.style('expand');
chart.xAxis.tickFormat(function(d) { return d3.time.format("%x")(new Date(d)); });