Skip to content

Commit 9655bcf

Browse files
committed
Added documentation
1 parent c2684bf commit 9655bcf

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

demo_project/demo/templates/demo/flot.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,20 @@ <h2>Point Chart</h2>
5757
</div>
5858
<br />
5959

60-
{{ column_chart.as_html }}
60+
<h2>Column Chart</h2>
61+
<div id="point_chart" class="well">
62+
{{ column_chart.as_html }}
63+
<pre class="code">
64+
data = [
65+
['Year', 'Sales', 'Expenses', 'Items Sold', 'Net Profit'],
66+
['2004', 1000, 400, 100, 600],
67+
['2005', 1170, 460, 120, 310],
68+
['2006', 660, 1120, 50, -460],
69+
['2007', 1030, 540, 100, 200],
70+
]
71+
data_source = SimpleDataSource(data)
72+
chart = gchart.ColumnChart(data_source, options={'title': "Sales/ Expense"})
73+
</pre>
74+
</div>
6175
<br />
6276
{% endblock %}

0 commit comments

Comments
 (0)