The default container configuration, but you decide the margins.
Pass the id and the top, right, bottom, and left margin respectively.
customContainer : Container.Config msg
customContainer =
Container.spaced "line-chart-1" 60 100 60 70See the full example here.
The default container configuration, but you can add some extra styles.
Pass the id and styles in form of tupels of strings.
customContainer : Container.Config msg
customContainer =
Container.styled "line-chart-1" [ ( "font-family", "monospace" ) ]Ok, so we have spaced if we want to set the margins and styled if
we want to set the styles; but what if I want to set the margins AND the
styles? If so, use custom!
Properties:
div container.svg container.Size type for options.See the full example here.
Makes the chart size relative to it's container
Makes the chart the exact number of pixels defined in your x and y axis configuration.
Use in the
LineChart.Configpassed toLineChart.viewCustom.