Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
287a997f
Commit
287a997f
authored
Aug 08, 2018
by
Mathieu Giraud
Browse files
js/numerical_axis: PercentAxis, bikeshed format
parent
f13c020b
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/numerical_axis.js
View file @
287a997f
...
@@ -271,7 +271,7 @@ PercentAxis.prototype = Object.create(NumericalAxis.prototype);
...
@@ -271,7 +271,7 @@ PercentAxis.prototype = Object.create(NumericalAxis.prototype);
}
}
PercentAxis
.
prototype
.
getLabelText
=
function
(
value
)
{
PercentAxis
.
prototype
.
getLabelText
=
function
(
value
)
{
return
floatToFixed
(
value
*
100
,
4
)
+
"
%
"
return
parseFloat
(
value
*
100
).
toFixed
(
nice_number_digits
(
100
*
(
this
.
max
-
this
.
min
),
2
)
)
+
"
%
"
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment