Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e83c5fe8
Commit
e83c5fe8
authored
Jun 15, 2020
by
Dhiraj Bodicherla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Metrics dashboard crosshair should not snap
parent
c2ee7845
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
app/assets/javascripts/monitoring/components/charts/options.js
...ssets/javascripts/monitoring/components/charts/options.js
+1
-1
spec/frontend/monitoring/components/charts/time_series_spec.js
...frontend/monitoring/components/charts/time_series_spec.js
+6
-0
No files found.
app/assets/javascripts/monitoring/components/charts/options.js
View file @
e83c5fe8
...
...
@@ -81,7 +81,7 @@ export const getTimeAxisOptions = ({ timezone = timezones.LOCAL } = {}) => ({
formatter
:
date
=>
formatDate
(
date
,
{
format
:
formats
.
shortTime
,
timezone
}),
},
axisPointer
:
{
snap
:
tru
e
,
snap
:
fals
e
,
},
});
...
...
spec/frontend/monitoring/components/charts/time_series_spec.js
View file @
e83c5fe8
...
...
@@ -411,6 +411,12 @@ describe('Time series component', () => {
});
});
describe
(
'
xAxis pointer
'
,
()
=>
{
it
(
'
snap is set to false by default
'
,
()
=>
{
expect
(
getChartOptions
().
xAxis
.
axisPointer
.
snap
).
toBe
(
false
);
});
});
describe
(
'
are extended by `option`
'
,
()
=>
{
const
mockSeriesName
=
'
Extra series 1
'
;
const
mockOption
=
{
...
...
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