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
43f0e167
Commit
43f0e167
authored
Aug 09, 2018
by
Mathieu Giraud
Browse files
js/numerical_axis.js: more robust, sets .nb_steps_normal in each case
parent
6b5e045b
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/numerical_axis.js
View file @
43f0e167
...
...
@@ -95,9 +95,11 @@ NumericalAxis.prototype = Object.create(GenericAxis.prototype);
if
(
typeof
min
==
"
undefined
"
){
min
=
0
;
max
=
1
;
this
.
nb_steps_normal
=
1
}
else
if
(
typeof
max
==
=
'
undefined
'
)
{
else
if
(
typeof
max
==
'
undefined
'
)
{
max
=
min
+
1
;
this
.
nb_steps_normal
=
1
}
else
{
if
(
use_log
)
{
...
...
@@ -110,10 +112,11 @@ NumericalAxis.prototype = Object.create(GenericAxis.prototype);
min
=
nice
.
min
max
=
nice
.
max
this
.
nb_steps_normal
=
nice
.
nb_steps
this
.
nb_steps
=
this
.
nb_steps_normal
+
this
.
nb_steps_special
}
}
this
.
nb_steps
=
this
.
nb_steps_normal
+
this
.
nb_steps_special
if
(
this
.
can_undefined
&&
!
use_log
)
{
max
=
max
+
(
max
-
min
)
/
(
this
.
nb_steps_normal
)
}
...
...
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