colored legend, self picking colors, left scale, pd.series support in set

This commit is contained in:
David Brazda
2024-06-10 16:41:43 +02:00
parent e93d9ebcef
commit c0338229e9
4 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@ def get_next_color():
color_index = (color_index + 1) % len(COLORS) color_index = (color_index + 1) % len(COLORS)
return hex_to_rgba(color) return hex_to_rgba(color)
def hex_to_rgba(hex_color, alpha=0.8): def hex_to_rgba(hex_color, alpha=0.5):
hex_color = hex_color.lstrip('#') hex_color = hex_color.lstrip('#')
r, g, b = int(hex_color[0:2], 16), int(hex_color[2:4], 16), int(hex_color[4:6], 16) r, g, b = int(hex_color[0:2], 16), int(hex_color[2:4], 16), int(hex_color[4:6], 16)
return f'rgba({r}, {g}, {b}, {alpha})' return f'rgba({r}, {g}, {b}, {alpha})'

File diff suppressed because one or more lines are too long

View File

@ -219,7 +219,7 @@ body {
z-index: 3000; z-index: 3000;
pointer-events: none; pointer-events: none;
top: 10px; top: 10px;
left: 70px; left: 10px;
display: none; display: none;
flex-direction: column; flex-direction: column;
} }

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.0.1', version='2.0.3',
packages=find_packages(), packages=find_packages(),
python_requires='>=3.8', python_requires='>=3.8',
install_requires=[ install_requires=[