How do I cutomize tooltip like on KLineChartPro? #563
Answered
by
char101
rxdiscovery
asked this question in
Q&A
-
Hello, I'd like to know how to customize tooltip to add icons with events, like on KLineChartPro ? I tried to see the project code, but I didn't understand the logic behind it. I'm really stuck on this point :/ Thank you in advance for your help.. |
Beta Was this translation helpful? Give feedback.
Answered by
char101
Jul 3, 2024
Replies: 1 comment
-
It is a unicode character. Using See KLineChart/src/common/Styles.ts Line 177 in 0459735 Example chart.setStyles({
indicator: {
tooltip: {
icons: [
{ id: 'l', position: 'left', icon: 'L', color: '#FFF' },
{ id: 'm', position: 'middle', icon: 'M' },
{ id: 'r', position: 'right', icon: 'R' },
],
}
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
liihuu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is a unicode character. Using
chart.setStyles
you set the character used for the eye and config icon.See
KLineChart/src/common/Styles.ts
Line 177 in 0459735
Example