fixed 0 doesnt update in legend

This commit is contained in:
David Brazda
2024-11-21 13:43:28 +01:00
parent 92acc2b96a
commit 1c72818dae
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
setup( setup(
name='lightweight_charts', name='lightweight_charts',
version='2.2.28', version='2.2.29',
packages=find_packages(), packages=find_packages(),
python_requires='>=3.8', python_requires='>=3.8',
install_requires=[ install_requires=[

View File

@ -354,7 +354,7 @@ export class Legend {
else { else {
data = param.seriesData.get(e.series) as LineData data = param.seriesData.get(e.series) as LineData
} }
if (!data?.value) return; if (data === undefined || data.value === undefined) return;
let price; let price;
if (e.series.seriesType() == 'Histogram') { if (e.series.seriesType() == 'Histogram') {
price = this.shorthandFormat(data.value) price = this.shorthandFormat(data.value)