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
bc6bfc9c
Commit
bc6bfc9c
authored
Dec 05, 2020
by
Elouan Le Bars
Browse files
[FIX] detailled chart tooltip position
parent
388a1b0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
front/src/components/ResultsDetailledView.vue
View file @
bc6bfc9c
...
...
@@ -29,6 +29,15 @@ import ResultsChart from "./ResultsChart.js";
import
store
from
"
../store/MainStore.js
"
;
import
{
detailled_results_text
}
from
"
../options/detailled_results_text.js
"
;
//register custom tooltip positioner for chart
Chart
.
Tooltip
.
positioners
.
custom
=
function
(
elements
,
position
)
{
//debugger;
return
{
x
:
position
.
x
,
y
:
position
.
y
,
}
}
export
default
{
props
:
[
"
selectedView
"
],
store
,
...
...
@@ -52,6 +61,7 @@ export default {
},
tooltips
:
{
mode
:
'
point
'
,
position
:
'
custom
'
,
},
scales
:
{
xAxes
:
[
...
...
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