Hi,
is there any way to have a dash daq plot using simple def in python Django.
def plot_guage(request):
the_maxGL=100
RESEAU_GL=55
figGuages = go.Figure([
daq.Gauge(color={"gradient":True,"ranges":{"green":[0,the_maxGL/3],"yellow":[the_maxGL/3,the_maxGL*6/7],"red":[the_maxGL*6/7,the_maxGL]}},
id="my-daq-gauge4", min=0, max=the_maxGL, value=RESEAU_GL, label="GL",style={'display': 'inline-block'})
])
charGuagest = figGuages.to_html()
context= { 'charGuagest':charGuagest}
return render(request, 'Home/Data_visa/part_plotlypie.html',context)
so I canβt render the plot to my page, is there anything to do?
(I need this form of gauge of dash daq , if there is another wat to plot exactly the same plot please tell me)
All my best