Enhancements & Bug Fixes

- Added the `color_based_on_candle` parameter to the legend, which will color the percentage change based on the candle color underneath the crosshair.
(#210)
- Fixed a bug which prevented the legend from turning off. (#216)
This commit is contained in:
louisnw
2023-12-10 19:48:27 +00:00
parent f798e5f944
commit da2a5103fa
4 changed files with 60 additions and 32 deletions

View File

@ -273,7 +273,7 @@ ___
```{py:method} legend(visible: bool, ohlc: bool, percent: bool, lines: bool, color: COLOR, font_size: int, font_family: str, text: str)
```{py:method} legend(visible: bool, ohlc: bool, percent: bool, lines: bool, color: COLOR, font_size: int, font_family: str, text: str, color_based_on_candle: bool)
Configures the legend of the chart.
```