-
Notifications
You must be signed in to change notification settings - Fork 0
/
diesel 2015.py
26 lines (26 loc) · 966 Bytes
/
diesel 2015.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""Diesel Chart 2015"""
def diesel_2015():
"""Display monthly chart for diesel price in Thailand 2015."""
import plotly.plotly as py
import plotly.graph_objs as go
py.sign_in('littlejab', 'yblima8sc3')
chart_min = go.Bar(
x = ['Jan 15', 'Feb 15', 'Mar 15', 'Apr 15', 'May 15', 'Jun 15'],
y = [25.83, 26.22, 26.76, 25.26, 26.07, 25.9],
name = 'Min'
)
chart_avg = go.Bar(
x = ['Jan 15', 'Feb 15', 'Mar 15', 'Apr 15', 'May 15', 'Jun 15'],
y = [25.83, 26.27, 26.77, 25.26, 26.07, 25.9],
name = 'Average'
)
chart_max = go.Bar(
x = ['Jan 15', 'Feb 15', 'Mar 15', 'Apr 15', 'May 15', 'Jun 15'],
y = [25.83, 26.4, 26.84, 25.28, 26.09, 25.9],
name = 'Max'
)
data = [chart_min, chart_avg, chart_max]
layout = go.Layout(barmode = 'group')
fig = go.Figure(data = data, layout = layout)
plot_url = py.plot(fig, filename = 'Diesel 2015')
diesel_2015()