Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
impactometre
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
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
tx-techno-num
impactometre
Commits
e0099876
Commit
e0099876
authored
Nov 23, 2020
by
Elouan Le Bars
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[UPD] tooltips on hovering detailled results
parent
3a051afc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
17 deletions
+7
-17
front/src/components/ResultsDetailledView.vue
front/src/components/ResultsDetailledView.vue
+7
-0
front/src/store/MainStore.js
front/src/store/MainStore.js
+0
-17
No files found.
front/src/components/ResultsDetailledView.vue
View file @
e0099876
...
...
@@ -46,6 +46,13 @@ export default {
legend
:
{
display
:
false
,
},
hover
:
{
mode
:
'
nearest
'
,
intersect
:
true
},
tooltips
:
{
mode
:
'
point
'
,
},
scales
:
{
xAxes
:
[
{
...
...
front/src/store/MainStore.js
View file @
e0099876
...
...
@@ -6,11 +6,6 @@ Vue.use(Vuex);
let
labels
=
[
"
A
"
,
"
B
"
,
"
C
"
];
let
labels_detailled
=
[
"
Scenario A
"
,
"
Scenario B
"
,
"
Scenario C
"
];
let
backgroundColor
=
[
"
#e97272
"
,
"
#e7dc73
"
,
"
#83bdec
"
];
let
hoverBackgroundColor
=
[
"
rgba(0,0,0,0.8)
"
,
"
rgba(0,0,0,0.6)
"
,
"
rgba(0,0,0,0.3)
"
,
];
const
state
=
{
scenarios_json
:
[],
...
...
@@ -61,19 +56,16 @@ const state = {
label
:
"
Matériel
"
,
data
:
[
0
,
0
,
0
],
backgroundColor
,
hoverBackgroundColor
:
hoverBackgroundColor
[
0
],
},
{
label
:
"
Réseau
"
,
data
:
[
0
,
0
,
0
],
backgroundColor
,
hoverBackgroundColor
:
hoverBackgroundColor
[
1
],
},
{
label
:
"
Trajets
"
,
data
:
[
0
,
0
,
0
],
backgroundColor
,
hoverBackgroundColor
:
hoverBackgroundColor
[
2
],
},
],
},
...
...
@@ -84,19 +76,16 @@ const state = {
label
:
"
Matériel
"
,
data
:
[
0
,
0
,
0
],
backgroundColor
,
hoverBackgroundColor
:
hoverBackgroundColor
[
0
],
},
{
label
:
"
Réseau
"
,
data
:
[
0
,
0
,
0
],
backgroundColor
,
hoverBackgroundColor
:
hoverBackgroundColor
[
1
],
},
{
label
:
"
Trajets
"
,
data
:
[
0
,
0
,
0
],
backgroundColor
,
hoverBackgroundColor
:
hoverBackgroundColor
[
2
],
},
],
},
...
...
@@ -107,19 +96,16 @@ const state = {
label
:
"
Matériel
"
,
data
:
[
0
,
0
,
0
],
backgroundColor
,
hoverBackgroundColor
:
hoverBackgroundColor
[
0
],
},
{
label
:
"
Réseau
"
,
data
:
[
0
,
0
,
0
],
backgroundColor
,
hoverBackgroundColor
:
hoverBackgroundColor
[
1
],
},
{
label
:
"
Trajets
"
,
data
:
[
0
,
0
,
0
],
backgroundColor
,
hoverBackgroundColor
:
hoverBackgroundColor
[
2
],
},
],
},
...
...
@@ -130,19 +116,16 @@ const state = {
label
:
"
Matériel
"
,
data
:
[
0
,
0
,
0
],
backgroundColor
,
hoverBackgroundColor
:
hoverBackgroundColor
[
0
],
},
{
label
:
"
Réseau
"
,
data
:
[
0
,
0
,
0
],
backgroundColor
,
hoverBackgroundColor
:
hoverBackgroundColor
[
1
],
},
{
label
:
"
Trajets
"
,
data
:
[
0
,
0
,
0
],
backgroundColor
,
hoverBackgroundColor
:
hoverBackgroundColor
[
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