Skip to content

Releases: louisnw01/lightweight-charts-python

v1.0.17.6: Enhancements:

24 Sep 14:12
Compare
Choose a tag to compare

Enhancements:

  • Hotkeys can now use any character, and modifier keys are not required.
  • Refactored the colors of the topbar, searchbox, toolbox, and widgets for consistency.
  • Toolbox/interval refactoring and simplification.
  • Histograms now show up in the legend, and will use shorthand notation by default (e.g 34k rather than 34000).

v1.0.17.5: Enhancements:

14 Sep 09:53
Compare
Choose a tag to compare

Enhancements:

  • added the align parameter to all topbar widgets, allowing for individual widgets to be placed either on the left or right hand side of the topbar.
  • DIsabled QtChart’s context menu by default.

Bug Fixes:

  • The screenshot method now works for subcharts.
  • Tables will still render if a NoneType is passed to them as a value.
  • Qt and Wx charts no longer throw an error when using the toolbox.

v1.0.17.3: Enhancements:

04 Sep 19:30
Compare
Choose a tag to compare

Enhancements:

  • added the create_histogram method and the Histogram object.
  • added the round parameter to trend_line and ray_line
  • chart.set can now be given line data.

Bug Fixes:

  • NaN values can now be given when setting data, and will leave a blank space in the data.
  • resize will now change the chart wrapper’s size as well as the chart itself.

v1.0.17.2

03 Sep 16:15
Compare
Choose a tag to compare

Enhancements:

  • The start_date parameter of vertical_span can take a list or tuple of dates to create multiple vertical lines. #84
  • Added style parameters to drawings. #99

Bug Fixes:

  • VerticalSpan.delete() now works as intended.
  • Drawings no longer show up in the legend. #101
  • Fixed pandas API types error (thanks @jamesbaber1!)

v1.0.17.1: Enhancements:

31 Aug 20:32
Compare
Choose a tag to compare

Enhancements:

  • Added the screen parameter to Chart, allowing for monitor selection. This should be an index from 0 (0 = primary monitor, 1= second monitor, etc.)
  • vertical_span method, allowing for vertical lines/spans to be drawn across the chart. #84
  • set_visible_range method, which will set the visible range of the chart based on two given dates. #91
  • resize method, which resizes the chart to the given size. #92
  • sync will now sync both charts, regardless of which one is scrolled/zoomed. #86

Bug Fixes:

  • Fixed circle and square marker shapes not rendering. #94

v1.0.17

26 Aug 23:31
Compare
Choose a tag to compare

Enhancements & Bug Fixes

Polygon:

  • Added async methods to polygon.
  • The requests library is no longer required, with urllib being used instead.
  • Added the get_bar_data function, which returns a dataframe of aggregate data from polygon.
  • Opened up the subscribe and unsubscribe functions

Enhancements:

  • Tables will now scroll when the rows exceed table height.

Bugs:

  • Fixed a bug preventing async functions being used with horizontal line event.
  • Fixed a bug causing the legend to show duplicate lines if the line was created after the legend.
  • Fixed a bug causing the line hide icon to persist within the legend after deletion (#75)
  • Fixed a bug causing the searchbox to be unfocused when the chart is loaded.

v1.0.16: Refactoring/Enhancements/Fixes

14 Aug 15:11
Compare
Choose a tag to compare

Refactoring/Enhancements/Fixes

Breaking Changes:

  • Removed the api parameter; callbacks no longer need to be in a specific class.
  • Topbar callbacks now take a chart as an argument (see updated callback examples)
  • Removed the topbar parameter from chart declaration. The Topbar will be automatically created upon declaration of a topbar widget.
  • Removed the searchbox parameter from charts. It will be created upon subscribing to it in chart.events.
  • Removed dynamic_loading.
  • Removed volume_enabled parameter. Volume will be enabled if the volumn column is present in the dataframe.
  • Widgets’ func parameter is now declared last.
  • Switchers take a tuple of options rather than a variable number of arguments.
  • add_hotkey renamed to hotkey
  • Horizontal lines now take a func argument rather than interactive. This event will emit the Line object that was moved.
  • Removed the name parameter from line.set. Line object names are now declared upon creation.

Enhancements:

  • Added the button widget to the Topbar. (#52)
  • Added the color picker to the drawing context menu.
  • Charts now have a candle_data method, which returns the current data displayed on the chart as a DataFrame.
  • Fixed callbacks are now located in the chart.events object:
    • search (e.g chart.events.search += on_search)
    • new_bar
    • range_change
  • Added volume to the legend.
  • Legend will now follow the precision of the chart (#65)
  • Drawings can now be accessed through chart.toolbox.drawings
  • added the style and name parameters to create_line (#68)
  • Added support for PySide6 (#62)

Bug Fixes:

  • Fixed a bug causing new charts not to load after exit was called. (#60)
  • Refactored rayline placement to ensure they do not move the visible range. (#64)
  • Fixed a bug causing the visible range to shift when trendlines are moved past the final candlestick.
  • Fixed a bug preventing trendlines and raylines on irregular timeframes. (#66)
  • Fixed a bug causing the legend to prevent mouse input into the chart.

v1.0.15: Enhancements and Bug Fixes

02 Aug 12:51
Compare
Choose a tag to compare

Enhancements and Bug Fixes

Tables Feature

  • Added the create_table method, which returns a Table object. This can be used to display watchlists, order windows, position windows and more.
  • See the new page on the docs for more information!

Bugs

  • Fixed a bug preventing the named column of a line to not work as a label of the series.
  • Fixed a bug causing drawings loaded from the minute timeframe to not show on a daily timeframe.
  • Fixed a bug causing chart.exit to not work. (#53)
  • Fixed a bug preventing the chart from being moved after placing a ray.
  • Fixed the ‘price in hoveringOver’ web console error.

Enhancements

  • The date/time column can also be the name of the passed series object.
  • Added the label method to HorizontalLine, allowing for the price line label of horizontal lines to be updated.
  • None or an empty DataFrame can now be passed to line.set as a means to clear it. (#51)
  • Seperate Chart objects will now run on the same pywebview instance. This means that any Chart objects created after the first will inherit the first Chart’s API.
  • Reorganized the documentation for clarity.

v1.0.14.4: Fixes/Enhancements

24 Jul 16:07
Compare
Choose a tag to compare

Fixes/Enhancements

  • Removed bar data from exported drawings, which should reduce the file size of exported drawings. (Make sure to back up any drawing files before running the new version!)
  • Drawings can now be deleted through each’s right click context menu.
  • Added the new add_hotkey method, which will execute the given method or function when the key command is pressed.
  • Non-fixed callbacks no longer need to be placed in the API class.

v1.0.14.2: Ability to save drawings

20 Jul 20:55
Compare
Choose a tag to compare

Ability to save drawings (#44)

  • Added toolbox to the common methods.
  • toolbox.save_drawings_under can save drawings under a specific topbar widget. eg chart.toolbox.save_drawings_under(chart.topbar[’symbol’])
  • toolbox.load_drawings will load and display drawings stored under the tag/string given.
  • toolbox.export_drawings will export all currently saved drawings to the given file path.
  • toolbox.import_drawings will import the drawings stored at the given file path.

Fixes/Enhancements:

  • update methods are no longer case sensitive. (#46)
  • HorizontalLine no longer throws cyclic structure errors in the web console.
  • API methods can now be normal methods or coroutines.