What's the best way to style a custom shape? #268
Unanswered
trading-peter
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Did you find an answer @trading-peter ? Possible problematic line: https://github.com/liihuu/KLineChart/blob/7d3c4eb5fb/src/component/overlay/Overlay.js#L62 |
Beta Was this translation helpful? Give feedback.
0 replies
-
The style format of the shape should be consistent with the general configuration. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm experimenting with custom shapes. In particular drawing boxes over specific areas.
I came up with this code and it works so far:
To create a box on the chart I call:
I was expecting to have the values from "styles" available in "drawExtend" but the "box" key is simply thrown out and there are only the default stylings for "arc", "line" and so on in the object. I checked the "merge" function in "typeChecks.js" and it's filtering out my custom key "box". How else would I do this?
Thanks you so much for this library btw. It's the best one I've come across so far.
Beta Was this translation helpful? Give feedback.
All reactions