Closed tabatabaei closed 1 year ago
I found this code on the Jinja template which creates the price lines and sets the markers in the chart but I could not find any related function. How can I use this ability in this library?
chart_series.setMarkers( {{ series.markers }} ); {% for price_line in series.price_lines %} chart_series.createPriceLine({{ price_line }}); chart.subscribeCrosshairMove(param => { if (param.time) console.log(param.seriesPrices.get(chart_series)) }); {% endfor %}
Do These..
%pip install --quiet -U git+https://github.com/TechfaneTechnologies/pytvlwcharts.git
from pytvlwcharts import *
import pandas as pd
have your data ready in a dataframe
Then Do This
chart = Chart(
width = 1360,
height = 400,
time_scale=TimeScaleOptions(
seconds_visible=True,
time_visible=True)
)
chart.mark_line(data=df, title='Banknifty', color='#2962FF', lineWidth=LineWidth.LINEWIDTH_3, lineType=0, lineStyle=LineStyle.LINESTYLE_0, lastPriceAnimation=True)
It will plot the line series like this
I found this code on the Jinja template which creates the price lines and sets the markers in the chart but I could not find any related function. How can I use this ability in this library?