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
5979d893
Commit
5979d893
authored
Feb 10, 2022
by
Anshul Riyal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor milestone burndown chart responsiveness
parent
3dc4fec0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
ee/app/assets/javascripts/burndown_chart/components/burndown_chart.vue
.../javascripts/burndown_chart/components/burndown_chart.vue
+1
-8
No files found.
ee/app/assets/javascripts/burndown_chart/components/burndown_chart.vue
View file @
5979d893
<
script
>
import
{
GlResizeObserverDirective
as
GlResizeObserver
}
from
'
@gitlab/ui
'
;
import
{
GlLineChart
}
from
'
@gitlab/ui/dist/charts
'
;
import
dateFormat
from
'
dateformat
'
;
import
{
merge
}
from
'
lodash
'
;
...
...
@@ -7,9 +6,6 @@ import { __, n__, s__, sprintf } from '~/locale';
import
commonChartOptions
from
'
./common_chart_options
'
;
export
default
{
directives
:
{
GlResizeObserver
,
},
components
:
{
GlLineChart
,
},
...
...
@@ -113,9 +109,6 @@ export default {
setChart
(
chart
)
{
this
.
chart
=
chart
;
},
onResize
()
{
this
.
chart
?.
resize
();
},
formatTooltipText
(
params
)
{
const
[
seriesData
]
=
params
.
seriesData
;
if
(
!
seriesData
)
{
...
...
@@ -143,7 +136,7 @@ export default {
</div>
<gl-line-chart
v-if=
"!loading"
v-gl-resize-observer=
"onResiz
e"
:responsive=
"tru
e"
class=
"burndown-chart js-burndown-chart"
:data=
"dataSeries"
:option=
"options"
...
...
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