The intersection is where your two axis lines meet. By default this is at the smallest coordinate possible (the downmost left corner), but it need not be as illustated below.
Sets the intersection at the minimum on both the range and domain.
intersectionConfig : Intersection.Config
intersectionConfig =
Intersection.defaultSee the full example here.
Sets the intersection as close to the origin as your range and domain allows.
intersectionConfig : Intersection.Config
intersectionConfig =
Intersection.atOriginSee the full example here.
Sets the intersection to your chosen x and y respectivily.
intersectionConfig : Intersection.Config
intersectionConfig =
Intersection.at 0 3See the full example here.
Sets the intersection to your chosen x and y, given the range and domain respectivily.
intersectionConfig : Intersection.Config
intersectionConfig =
Intersection.custom .min middle
middle : Coordinate.Range -> Float
middle { min, max } =
min + (max - min) / 2See the full example here.
Use in the
LineChart.Configpassed toLineChart.viewCustom.