Closed asibilia closed 3 years ago
The existing set of lineTypes
appear to be here:
You can create a custom lineType
by passing in a function instead of one of these strings:
It appears your custom lineType function should look line one of the functions in lineDrawing.ts
:
I don't think that passing in a custom transformation function will let you change the styling of the visualization to match the picture you provided, since the functions in here just seem to be used to change how that topmost line is drawn. However, maybe a bumpArea
chart could get the effect you need (minus the gradient fill effect). The bumpChart
function in the file listed above can be used as a reference implementation.
https://semiotic.nteract.io/guides/area-chart#area-chart-with-hover
Seems like the area
type should have a flag to have no bottom border. Something like open
.
Updated the way areas are drawn in 2.0.0-rc.12
so that by default they're drawn with the area filled and an overlaid top line. If you want the old style areas you can set enclosed: true
in your lineType
.
I'm trying to create an area chart that looks like this
I'm currently doing this
which ends up with a stroke around the entire area. Seems like I'd want to use something like a
ridgeline
plot but I can't seem to figure out whattype
s are supported on thelineType
object (andridgeline
does not seem to be one of them).Any help would be greatly appreciated!