File tree Expand file tree Collapse file tree 3 files changed +30
-10
lines changed
demo_project/demo/templates/demo Expand file tree Collapse file tree 3 files changed +30
-10
lines changed Original file line number Diff line number Diff line change 4141 </ p >
4242 </ div >
4343
44+ < h2 > Line Chart</ h2 >
4445 < div id ="line_chart " class ="well ">
4546
4647 {{ line_chart.as_html }}
5253 </ div >
5354 < br />
5455
56+ < h2 > Column Chart</ h2 >
5557 < div id ="column_chart " class ="well ">
5658 {{ column_chart.as_html }}
5759 < pre class ="code ">
6870 </ div >
6971 < br />
7072
73+ < h2 > Bar Chart</ h2 >
7174 < div id ="bar_chart " class ="well ">
7275 {{ bar_chart.as_html }}
7376 < pre class ="code ">
7780 </ div >
7881 < br />
7982
83+ < h2 > Candlestick Chart</ h2 >
8084 < div id ="candlestick_chart ">
8185 {{ candlestick_chart.as_html }}
8286 </ div >
87+ < br />
8388
89+ < h2 > Pie Chart</ h2 >
8490 < div id ="pie_chart " class ="well ">
8591 {{ pie_chart.as_html }}
8692 < pre class ="code ">
8793 data_source = ModelDataSource(queryset, fields=['year', 'sales'])
8894 chart = gchart.PieChart(data_source)
8995 </ pre >
9096 </ div >
97+ < br />
9198
99+ < h2 > Treemap Chart</ h2 >
92100 < div id ="treemap_chart " class ="well ">
93101 {{ treemap_chart.as_html }}
94102 < pre class ="code ">
126134 chart = gchart.TreeMapChart(data_source)
127135 </ pre >
128136 </ div >
137+ < br />
129138
130- < div >
131- {{ custom_chart.as_html }}
132- < a href ="# " id ="get-data " class ="btn "> Get Data</ a >
133- </ div >
134- < br />
135-
139+ < h2 > Gauge Chart</ h2 >
136140 < div id ="gauge_chart " class ="well ">
137141 {{ gauge_chart.as_html }}
138142 < pre class ="code ">
150154 }
151155 )</ pre >
152156 </ div >
157+ < br />
158+
159+ < div >
160+ {{ custom_chart.as_html }}
161+ < a href ="# " id ="get-data " class ="btn "> Get Data</ a >
162+ </ div >
163+ < br />
153164
154165{% endblock %}
Original file line number Diff line number Diff line change 3030 </ p >
3131 </ div >
3232
33+ < h2 > Line Chart</ h2 >
3334 < div id ="line_chart " class ="well ">
3435
3536 {{ line_chart.as_html }}
4041 </ pre >
4142 </ div >
4243 < br />
44+ < h2 > Bar Chart</ h2 >
4345 < div id ="bar_chart " class ="well ">
4446
4547 {{ bar_chart.as_html }}
5759 </ div >
5860 < br />
5961
62+ < h2 > Donut Chart</ h2 >
6063 < div id ="donut_chart " class ="well ">
6164
6265 {{ donut_chart.as_html }}
6871 </ div >
6972 < br />
7073
74+ < h2 > Area Chart</ h2 >
7175 < div id ="area_chart " class ="well ">
7276
7377 {{ area_chart.as_html }}
Original file line number Diff line number Diff line change 2424 </ p >
2525 </ div >
2626
27+ < h2 > Line Chart</ h2 >
2728 < div id ="line_chart " class ="well ">
2829
2930 {{ line_chart.as_html }}
3435 </ div >
3536 < br />
3637
37- < div id ="column_chart ">
38+ < h2 > Column Chart</ h2 >
39+ < div id ="column_chart " class ="well ">
3840 {{ column_chart.as_html }}
3941 </ div >
4042
4143 < br />
4244
43- < div id ="bar_chart ">
45+ < h2 > Bar Chart</ h2 >
46+ < div id ="bar_chart " class ="well ">
4447 {{ bar_chart.as_html }}
4548 </ div >
4649 < br />
4750
48- < div id ="candlestick_chart ">
51+ < h2 > Candlestick Chart</ h2 >
52+ < div id ="candlestick_chart " class ="well ">
4953 {{ candlestick_chart.as_html }}
5054 </ div >
5155
52- < div id ="pie_chart ">
56+ < h2 > Pie Chart</ h2 >
57+ < div id ="pie_chart " class ="well ">
5358 {{ pie_chart.as_html }}
5459 </ div >
5560
You can’t perform that action at this time.
0 commit comments