Typesafe filling mode #56
Labels
enhancement
New feature or request
from migration
These issues were migrated from Joelius300s repository and more information can be found there
Milestone
Describe the feature request
Use the filling modes for Line and Radar chart in a typesafe manner.
The properties are already there in
LineDataset
and inRadarDataset
.LineDataset
it's of typebool
so you can only disable it or use 'origin' (alias when true).RadarDataset
it's of typeobject
and there is a description to what values you can use.Docs
Describe the solution you'd like
We need a class
FillingMode
(derives fromObjectEnum
) where you can use either anint
, astring
or abool
(private constructors). The supported values are here and you can also see the use cases below.Here are the use cases we need to support:
Fill = FillingMode.Relative(2)
Fill = FillingMode.Relative(-1)
Fill = FillingMode.Absolute(1)
Fill = FillingMode.Disabled
-> We might also useFillingMode.Off
Fill = FillingMode.Origin
Fill = FillingMode.Start
Fill = FillingMode.End
A nice to have would be to allow implicit boolean conversion which would be defined like this:
false = FillingMode.Disabled
true = FillingMode.Origin
The text was updated successfully, but these errors were encountered: