sc0ttj / component

A tiny library for isomorphic JavaScript components
MIT License
2 stars 1 forks source link

fixes for "padded" data: #57

Closed sc0ttj closed 2 years ago

sc0ttj commented 2 years ago

Bar charts need some empty data added first, in order to create some padding between the bars and the Y axis.

This commit fixes using padded data or not, and prevents some of the shapes being drawn badly in one case or the other - they should all behave the same now, aligning right up against the axes, unless the data has been "padded" with an empty item.