How to draw bar chart using Plotly Offline mod in python?
Question: I have some features and values like

food 3.4  
service 4.2  
environment 4.3

and i want to draw a bar chart using plotLy offline mode (not registering and
authentication ). so far i have the code for drawing a scaterred line using
offline mode of plotly

    
    
    import plotly
    print (plotly.__version__) 
    from plotly.graph_objs import Scatter, Layout
    plotly.offline.plot({
    "data": [
        Scatter(x=[1, 2, 3, 4], y=[4, 1, 3, 7])
    ],
    "layout": Layout(
        title="hello world"
    )
    })
    

the above code open html page and draw a scatered line, How to modify the code
for my above needs.. anyone can help ?


Answer: 
    import plotly
    import plotly.graph_objs
    
    plotly.offline.plot({
    "data": [
        plotly.graph_objs.Bar(x=['food','service','environment'],y=[3.4,4.2,4.3])
    ]
    })
    

