Lightweight-charts

Latest version: v2.1

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

2.1

Bugs

* Fix chart crash when clicking outside of the visible range (406, 405, 454)
* Ensure Two point drawings have a logical value (420)
* Scrollable Legend (399)
* Fix legend color bug (424)
* Fix settings items, default value on topbar menu (442, 404)

Enhancements
* Add `price_scale_id` parameter to lines (408)

2.0.1

* Prevent textboxes and search boxes from clashing
* Fix legend item deletion bug
* Fix legend throwing error bug
* Update docs to reflect that `remove_horizontal_line` and `clear_horizontal_lines` are no longer methods

2.0

This version introduces breaking changes:
* `render_drawings` has been replaced with `keep_drawings`
* removed the `block` parameter from `show_async`. use `asyncio.create_task` instead.
* added toggle parameter to topbar buttons; buttons value now reflects their state

Main changes:
* Entire rewrite of the backend in TypeScript; drawings should be more reliable and stable now.
* Plugin support (Box drawing). Please feel free to implement your own plugins!
* Added support for PyQt6 (with plans to drop support for Qt5 and PySide)
* Editable text boxes
* Added the `bulk_run` context manager, which can be used to send a group of commands to the chart. for example:

python
with chart.bulk_run:
for i in range(300):
chart.horizontal_line(i)

this code would execute much faster within the context manager as each method’s piece of JavaScript is grouped into one.

There are likely to be some discrepancies in the documentation at the moment; if you find any please raise an issue!

Thank you to everyone who has helped build this library, my sponsors, and the users!

Louis

1.0.20

Enhancements
* Added the `marker_list` method for setting multiple markers.
* Use IFrame for JupyterChart (260, 264)
* Add `sync_crosshairs_only` parameter to `create_subchart` (293)

Bug Fixes
* Set default `dtype` to prevent pandas deprecated warning (291)
* Fixed table scrolling bug (278)
* Fix toolbox hotkey chart selection and toolbox resize display bug (267)

1.0.19

- Added the `title` paramter to `Chart`
- Introduced additional `PriceScaleOptions` to the `price_scale` method
- Added the `position` parameter to `Chart`
- Added the `render_drawings` parameter to `update`
- Added the `round` parameter to `vertical_span`

1.0.18.8

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)

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.