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(
name='lightweight_charts',
version='2.2.28',
version='2.2.29',
packages=find_packages(),
python_requires='>=3.8',
install_requires=[

View File

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