From 76b5b7a161a020ea30184bc848e2f2bf3951b731 Mon Sep 17 00:00:00 2001 From: louisnw Date: Sat, 20 May 2023 01:45:40 +0100 Subject: [PATCH] =?UTF-8?q?-=20Fixed=20a=20bug=20causing=20the=20library?= =?UTF-8?q?=20to=20throw=20errors=20when=20used=20with=20python=203.9.=20-?= =?UTF-8?q?=20Fixed=20a=20bug=20that=20did=20not=20size=20the=20multi=20pa?= =?UTF-8?q?ne=20charts=20correctly.=20-=20Implementation=20of=20the=20?= =?UTF-8?q?=E2=80=98grid=E2=80=99=20common=20method.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- lightweight_charts/js.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5a7f73a..281c918 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Documentation](https://img.shields.io/badge/documentation-006ee3)](https://lightweight-charts-python.readthedocs.io/en/latest/docs.html) - +![cover](cover.png) lightweight-charts-python aims to provide a simple and pythonic way to access and implement [TradingView's Lightweight Charts](https://www.tradingview.com/lightweight-charts/). diff --git a/lightweight_charts/js.py b/lightweight_charts/js.py index 48950cb..4c84db7 100644 --- a/lightweight_charts/js.py +++ b/lightweight_charts/js.py @@ -297,7 +297,7 @@ class LWC: price: {price}, color: '{color}', lineWidth: {width}, - lineStyle: LightweightCharts.LineStyle.{style}, + lineStyle: LightweightCharts.LineStyle.{_line_type(style)}, axisLabelVisible: {'true' if axis_label_visible else 'false'}, title: '{text}', }}; diff --git a/setup.py b/setup.py index 300dd8c..6bf7b2b 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f: setup( name='lightweight_charts', - version='1.0.5', + version='1.0.6', packages=find_packages(), python_requires='>=3.9', install_requires=[