This configured general traits of all your blocks.
Internal.Block.Config
Use in the Chart.Blocks.Config
passed to Chart.Blocks.viewCustom
.
chartConfig : Chart.Config value data msg
chartConfig =
{ ...
, block = Chart.Block.default
, ...
}
default : Config
custom : Basics.Int -> Basics.Float -> Config
Customize your blocks. Pass the border radius and the max width.
blockConfig : Chart.Block.Config
blockConfig =
Chart.Block.custom 2 50
Note: Be aware that changing the width can meddle with how the numbers in your chart are perceived, as people commonly evaluate base of the area of the block, rather than only the height.