Skip to content

Releases: louisnw01/lightweight-charts-python

v2.1

28 Sep 14:22
Compare
Choose a tag to compare

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

05 Jun 13:28
Compare
Choose a tag to compare
  • 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

Version 2.0

01 Jun 12:44
5453759
Compare
Choose a tag to compare

2.0 is finally here!

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:
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

24 Feb 13:43
Compare
Choose a tag to compare

Update 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)

v1.0.19

21 Jan 14:47
Compare
Choose a tag to compare
  • 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

v1.0.18.8: Enhancements & Bug Fixes

10 Dec 19:50
Compare
Choose a tag to compare

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)

v1.0.18.6: Enhancements:

22 Nov 17:34
Compare
Choose a tag to compare

Enhancements:

  • Added the title parameter to Chart.

Bug Fixes:

  • When passing a timestamp format to set, update, or update_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

31 Oct 14:24
Compare
Choose a tag to compare

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

09 Oct 16:48
Compare
Choose a tag to compare

Enhancements

  • Added the header attribute to Table, which operates identically to footer.
  • Added the return_clicked_cells parameter to create_table, which will return the heading name of the clicked cell within a callback.
  • Added more style parameters to Table.
  • Added the text parameter to legend, 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:

29 Sep 11:05
Compare
Choose a tag to compare

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 than 0 when there is no offset.