Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 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: 0 additions & 1 deletion apps/dashboards/templates/dashboards/contributors.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ <h2>{{ _('Helpful Votes') }}</h2>
<div class="graph-container">
<div class="slider"></div>
<div class="graph"></div>
<div class="y-axis"></div>
</div>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Divs like this are automatically added now.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at some point I thought you had all these divs added from js?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all of them, just some. I tried to do all of them, but ran into some issues and decided not to spend more time on it.

</div>
</section>
Expand Down
1 change: 0 additions & 1 deletion apps/dashboards/templates/dashboards/localization.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ <h2>{{ _('Helpful Votes') }}</h2>
<div class="graph-container">
<div class="slider"></div>
<div class="graph"></div>
<div class="y-axis"></div>
</div>
</div>
</section>
Expand Down
5 changes: 0 additions & 5 deletions apps/kpi/templates/kpi/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ <h2>{{ _('Helpful Votes') }}</h2>
<div class="graph-container">
<div class="slider"></div>
<div class="graph"></div>
<div class="y-axis"></div>
</div>
</div>

Expand All @@ -88,7 +87,6 @@ <h2>{{ _('Active Contributors') }}</h2>
<div class="graph-container">
<div class="slider"></div>
<div class="graph"></div>
<div class="y-axis"></div>
</div>
</div>

Expand Down Expand Up @@ -156,7 +154,6 @@ <h2>{{ _('Search Clickthrough Rate') }}</h2>
<div class="graph-container">
<div class="slider"></div>
<div class="graph"></div>
<div class="y-axis"></div>
</div>
</div>

Expand All @@ -183,7 +180,6 @@ <h2>{{ _('Daily Unique Visitors') }}</h2>
<div class="graph-container">
<div class="slider"></div>
<div class="graph"></div>
<div class="y-axis"></div>
</div>
</div>
</section>
Expand All @@ -198,7 +194,6 @@ <h2>{{ _('L10n Coverage') }}</h2>
<div class="graph-container">
<div class="slider"></div>
<div class="graph"></div>
<div class="y-axis"></div>
</div>
</div>

Expand Down
7 changes: 4 additions & 3 deletions apps/questions/templates/questions/stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ <h1>{{ _('Question Statistics') }}</h1>
<div id="topic-stats" data-graph="{{ graph|json }}">
<h2 class="grid_12">{{ _('Topics') }}</h2>

<div class="graph-container grid_9 alpha">
<div class="graph"></div>
<div class="y-axis"></div>
<div class="grid_9 alpha">
<div class="graph-container">
<div class="graph"></div>
</div>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this so that the automatically added y-axises won't break the layout.

</div>

<div class="controls grid_3 omega">
Expand Down
1 change: 0 additions & 1 deletion apps/wiki/templates/wiki/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ <h1 class="title">{{ _('History of {title}')|fe(title=document.title) }}</h1>
<div class="graph-container">
<div class="slider"></div>
<div class="graph"></div>
<div class="y-axis"></div>
<div class="timelines"></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
),
'rickshaw': (
'js/libs/jqueryui.js',
'js/libs/d3.v3.min.js',
'js/libs/d3.js',
'js/libs/d3.layout.min.js',
'js/libs/rickshaw.js',
'js/rickshaw_utils.js',
Expand Down
12 changes: 9 additions & 3 deletions media/js/historycharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,31 @@
name: gettext('Yes'),
slug: 'yes',
func: k.Graph.identity('yes'),
color: '#21de2b'
color: '#21de2b',
axisGroup: 'votes'
},
{
name: gettext('No'),
slug: 'no',
func: k.Graph.identity('no'),
color: '#de2b21'
color: '#de2b21',
axisGroup: 'votes'
},
{
name: gettext('Percent'),
slug: 'percent',
func: k.Graph.percentage('yes', 'no'),
color: '#2b21de'
color: '#2b21de',
axisGroup: 'percent'
}
];

$container.show();
var graph = new k.Graph($container, {
data: data,
graph: {
width: 600
},
options: {
legend: false,
sets: true,
Expand Down
Loading