How to set the {end} or {start} variable for Path #862
Unanswered
Leoputera2407
asked this question in
Q&A
Replies: 1 comment
-
I created one path for the line and one for the area. Here you can have a look at my code. https://github.com/openchia/mobile/blob/master/src/containers/charts/PoolspaceChart.js |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm working with a graphPath, and is trying to make a gradient under the graph.
The idea is that, I'll be making a path to interpolate to get the

I got the above as the result. The idea is the we'll render 2 Paths, one for the actual line chart and the other for the gradient (which will be transaparent). So, we can do something likeWhy is the two toLines necessary? LinearGradient on the LineChart only seems to results in the below.


I think this is because linearGradient is a fill and requires the chart to be closed, which it isn't. So, I thought adding the LineTos would result in "closed Graph", and it seems to fill in the gradient correctly, but the lineTos are not something we want to have, as seen below.
However, I've no idea how to remove the last two lineTo from this setup as highlighted above. Is this possible in Skia or is this approach doomed to fail?
Beta Was this translation helpful? Give feedback.
All reactions