Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
archery
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
archery
Commits
6f0f2678
Commit
6f0f2678
authored
10 years ago
by
Taddeüs Kroes
Browse files
Options
Downloads
Patches
Plain Diff
Added average score line to progress graph
parent
b264aeca
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
coffee/plot.coffee
+18
-1
18 additions, 1 deletion
coffee/plot.coffee
locale/nl_NL/LC_MESSAGES/archery.po
+2
-2
2 additions, 2 deletions
locale/nl_NL/LC_MESSAGES/archery.po
templates/user/plot.latte
+6
-5
6 additions, 5 deletions
templates/user/plot.latte
with
26 additions
and
8 deletions
coffee/plot.coffee
+
18
−
1
View file @
6f0f2678
$
.
jqplot
'plot'
,
[
window
.
data
],
avg
=
0
avg
+=
value
for
[
label
,
value
]
in
window
.
data
avg
/=
window
.
data
.
length
$
.
jqplot
'plot'
,
[
window
.
data
],
title
:
window
.
text
.
title
axes
:
xaxis
:
...
...
@@ -11,3 +15,16 @@ $.jqplot 'plot', [window.data],
seriesDefaults
:
markerOptions
:
size
:
20
canvasOverlay
:
show
:
true
objects
:
[
horizontalLine
:
name
:
'avg'
y
:
avg
lineWidth
:
1
color
:
'#b5b5b5'
shadow
:
false
showTooltip
:
true
tooltipFormatString
:
'avg: %2$.4f'
showTooltipPrecision
:
.
1
]
This diff is collapsed.
Click to expand it.
locale/nl_NL/LC_MESSAGES/archery.po
+
2
−
2
View file @
6f0f2678
...
...
@@ -158,8 +158,8 @@ msgstr "%d meter"
msgid "YYYY-MM-DD"
msgstr "JJJJ-MM-DD"
msgid "Average score over time"
msgstr "Gemiddelde score over tijd"
msgid "Average
arrow
score over time"
msgstr "Gemiddelde
pijl
score over tijd"
msgid "Progress graph"
msgstr "Voortgangsgrafiek"
...
...
This diff is collapsed.
Click to expand it.
templates/user/plot.latte
+
6
−
5
View file @
6f0f2678
{extends "../layout.latte"}
{block head}
<link rel="stylesheet" type="text/css" href="jqplot/jquery.jqplot.min.css" />
{/block}
{block content}
<div id="plot" class="plot"></div>
{$form}
...
...
@@ -9,6 +13,7 @@
<script type="text/javascript" src="jqplot/jquery.jqplot.min.js"></script>
<script type="text/javascript" src="jqplot/plugins/jqplot.highlighter.min.js"></script>
<script type="text/javascript" src="jqplot/plugins/jqplot.dateAxisRenderer.min.js"></script>
<script type="text/javascript" src="jqplot/plugins/jqplot.canvasOverlay.min.js"></script>
<script type="text/javascript">
window.data = [
{foreach $matches as $match}
...
...
@@ -16,12 +21,8 @@
{/foreach}
];
window.text = {
title: {_'Average score over time'}
title: {_'Average
arrow
score over time'}
};
</script>
<script type="text/javascript" src="js/plot.js"></script>
{/block}
{block head}
<link rel="stylesheet" type="text/css" href="jqplot/jquery.jqplot.min.css" />
{/block}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment