Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Graphos is a Django app to normalize data to create beautiful charts. It provide
* Candlestick chart
* Treemap chart
* Gauge chart
* Histogram (newly added)

#### YUI

Expand Down
3 changes: 3 additions & 0 deletions graphos/renderers/gchart.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class ColumnChart(BaseGChart):
def get_js_template(self):
return "graphos/gchart/column_chart.html"

class HistogramChart(BaseGChart):
def get_js_template(self):
return "graphos/gchart/histogram_chart.html"

class BarChart(BaseGChart):
def get_js_template(self):
Expand Down
5 changes: 5 additions & 0 deletions graphos/templates/graphos/gchart/histogram_chart.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "graphos/gchart/base.html" %}

{% block create_chart %}
var chart = new google.visualization.Histogram(document.getElementById('{{ chart.get_html_id }}'));
{% endblock %}