lightweight-charts-python icon indicating copy to clipboard operation
lightweight-charts-python copied to clipboard

[BUG] Legend Api Update Not Updating

Open esteban2006 opened this issue 6 months ago • 2 comments

Expected Behavior

When chart.legend (params) is called should update accordingly,

Current Behaviour

Api only updating

  • color
  • font-family
  • font-size

the rest of the params are not having effect on the current object

https://github.com/user-attachments/assets/6f2879fa-1ca5-479b-a46c-9d96459f5472

Reproducible Example

calling lengend()

if chart is not None:
    chart.legend(
        color=settings["color"],
        visible=settings["visible"],
        ohlc=settings["ohlc"],
        percent=settings["percent"],
        lines=settings["lines"],
        font_size=settings["font_size"],
        font_family=settings["font_family"],
    )

Environment

- OS: Windown-s
- Library: v2.0.1

esteban2006 avatar Aug 11 '24 01:08 esteban2006