Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tx-techno-num
impactometre
Commits
e0099876
Commit
e0099876
authored
Nov 23, 2020
by
Elouan Le Bars
Browse files
[UPD] tooltips on hovering detailled results
parent
3a051afc
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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