-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API to get color of the bar/candlestick item #518
Comments
The issue we need to pay attention here is custom colors per bar item (available for histogram atm, but could be implemented in other series soon in #195). If you don't use custom colors - you can do it easily by getting color from options (for bars logic of choosing a color is pretty simple). |
How can I get the candle color on mouseover from charts that are like candle type? |
any body here? |
At the moment, you can't get the colour directly from the API but you can work around this to get it working. The colour of the candlestick is either based on whether the it is higher or lower than the previous value, or set by the data itself. The crosshair event (https://tradingview.github.io/lightweight-charts/docs/api/interfaces/IChartApi#subscribecrosshairmove) contains a |
Hi! Has there been any new updates for this or do we still need to use the work-around?? |
Hi, lightweight-charts team
Is it possible to get
barStyle()
via an index in the series chart in lightweight-charts v3.1.2 ?I used to
barStyle()
for get color in lightweight-charts v2.0.0example Information obtained from the
barStyle()
{
barBorderColor: "rgb(229, 68, 95)"
barColor: "rgb(229, 68, 95)"
barWickColor: "rgb(229, 68, 95)"
}
Now it doesn't work. Can I have another method to use instead?
I want to get
barStyle()
method because my app chart has a legend feature a color the same as the bar color.Lightweight Charts Version: 3.1.2
The text was updated successfully, but these errors were encountered: