# Dash daq in plotly function

**URL:** <https://community.plotly.com/t/dash-daq-in-plotly-function/63387>\
**Category:** 📊 Plotly Python\
**Created:** [April 25, 2022, 5:30pm UTC](https://community.plotly.com/t/dash-daq-in-plotly-function/63387 "2022-04-25T17:30:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smail](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/smail/32/18979_2.png) [@smail](https://community.plotly.com/u/smail)\
**Post date:** [April 25, 2022, 5:30pm UTC](https://community.plotly.com/t/dash-daq-in-plotly-function/63387/1 "2022-04-25T17:30:00Z")

</div>

Hi,

is there any way to have a dash daq plot using simple def in python Django.

```auto
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)

![2525](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/d/8/d8e1f87d707dffb47558ae564fe907fab6921929.jpeg)

All my best
