Closed anagrius closed 2 years ago
Sounds reasonable! Thanks for letting me know. Think that might actually change some things 😬
Not sure the (x,y) -> Color
is super useful (at least for me). I was able to get the desired effect by including a linearGradient
(hard-coded) in defs and setting the stroke of interpolation__line
to that.
Here is the result, bask in its gloriousness:
My current idea is to set the gradient between min and max, but I haven't tried to implement anything yet since I'm focusing on the date time axes. I'll get back to you if I have any questions when I start working on it. :)
Thats what I would do too.
On 7 Dec 2017, at 15:03, Tereza Sokol notifications@github.com wrote:
My current idea is to set the gradient between min and max, but I haven't tried to implement anything yet since I'm focusing on the date time axes. I'll get back to you if I have any questions when I start working on it. :)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/terezka/lines/issues/5#issuecomment-349975633, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJmGhrNEj_0aRBF61BcTWV37Vx-Urctks5s9_A8gaJpZM4Q1Jdu.
In order to produce effects like:
Here github's project activity charts, we have to have control of the line's/area's color a bit more.
Have you considered making the color (x,y) dependent function:
color : (Float, Float) -> Color
or maybe simply allowing a gradient between max and min of the axis.