first commit
This commit is contained in:
26
examples/5_styling/styling.py
Normal file
26
examples/5_styling/styling.py
Normal file
@ -0,0 +1,26 @@
|
||||
import pandas as pd
|
||||
from lightweight_charts import Chart
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
chart = Chart(debug=True)
|
||||
|
||||
df = pd.read_csv('ohlcv.csv')
|
||||
|
||||
chart.layout(background_color='#090008', text_color='#FFFFFF', font_size=16, font_family='Helvetica')
|
||||
|
||||
chart.candle_style(up_color='#00ff55', down_color='#ed4807', border_up_color='#FFFFFF', border_down_color='#FFFFFF',
|
||||
wick_up_color='#FFFFFF', wick_down_color='#FFFFFF')
|
||||
|
||||
chart.volume_config(up_color='#00ff55', down_color='#ed4807')
|
||||
|
||||
chart.watermark('1D', color='rgba(180, 180, 240, 0.7)')
|
||||
|
||||
chart.crosshair(mode='normal', vert_color='#FFFFFF', vert_style='dotted', horz_color='#FFFFFF', horz_style='dotted')
|
||||
|
||||
chart.legend(visible=True, font_size=14)
|
||||
|
||||
chart.set(df)
|
||||
|
||||
chart.show(block=True)
|
||||
Reference in New Issue
Block a user