简体   繁体   中英

Stacked bar chart .offset() values for d3.js

Would anyone know where I might find a list of .offset() values for a stacked bar chart?

I have found these four on github but I'm sure I have seen more elsewhere, I just cant remember where.

silhouette - center the stream, as in ThemeRiver.
wiggle - minimize weighted change in slope.
expand - normalize layers to fill the range [0,1].
zero - use a zero baseline, i.e., the y-axis.

Thanks.

Perhaps I misunderstand the question, but per the API, the four choices are as you described. You can also create your own offset function, see:

https://github.com/mbostock/d3/wiki/Stack-Layout#wiki-offset

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM