terezka / elm-charts-alpha / Chart.Pattern

This configures the striped pattern of the block, if patterned. See Chart.Blocks.series on how to make a block patterned.


type alias Config =
Internal.Pattern.Config

Use in the Chart.Blocks.Config passed to Chart.Blocks.viewCustom.

chartConfig : Chart.Config value data msg
chartConfig =
  { ...
  , pattern = Chart.Pattern.default
  , ...
  }

default : Config

The default configuration.

patternConfig : Chart.Pattern.Config
patternConfig =
  Chart.Pattern.default

custom : Basics.Int -> Basics.Int -> Config

Edit the stripes. Pass the width of the colored part, then the width of the white part.

patternConfig : Chart.Pattern.Config
patternConfig =
  Chart.Pattern.custom 5 2