Releases: louisnw01/lightweight-charts-python
Releases · louisnw01/lightweight-charts-python
v2.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)
v2.0.1
Version 2.0
2.0 is finally here!
This version introduces breaking changes:
render_drawings
has been replaced withkeep_drawings
- removed the
block
parameter fromshow_async
. useasyncio.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:
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
v1.0.20
v1.0.19
v1.0.18.8: Enhancements & Bug Fixes
v1.0.18.6: Enhancements:
Enhancements:
- Added the
title
parameter toChart
.
Bug Fixes:
- When passing a timestamp format to
set
,update
, orupdate_from_tick
, the unit is now by default milliseconds rather than nanoseconds. - When using
update
, if a time is passed that occurs before the current last datapoint, an error will be raised.
v1.0.18.3: Enhancements & Bug Fixes
Enhancements
- Updated to Lightweight Charts 4.1
- Topbar menu widgets will now scroll when a large number of items are added to them
- Vertical Spans can now be placed on Line objects
Bugs
- Histograms will now be deleted from the legend
- autoScale is reset to true upon using
set
.
Enhancements & Bug Fixes
Enhancements
- Added the
header
attribute toTable
, which operates identically tofooter
. - Added the
return_clicked_cells
parameter tocreate_table
, which will return the heading name of the clicked cell within a callback. - Added more style parameters to
Table
. - Added the
text
parameter tolegend
, allowing for static text to be displayed alongside the crosshair data.
Bug Fixes
- Fixed PyQt5 attemping to use contextMenuPolicy.
v1.0.17.7: Bug Fixes:
Bug Fixes:
- Screen now defaults to the active screen rather than the
0
screen. null
values given in chart data are now removed and replaced with whitespace.- Closing the chart window now cleanly exits.
- Fixed a bug causing the
offset
parameter to be greater than0
when there is no offset.