mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-09 10:24:39 +05:00
Snap to points in Chart
This commit is contained in:
1 parent
7c2059d7c6
commit
b7334b5f3e
1 file changed
+10
@@ -1053,6 +1053,16 @@
|
|||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
responsive: true,
|
responsive: true,
|
||||||
|
interaction: {
|
||||||
|
mode: 'nearest', // Подтягиваемся к точкам
|
||||||
|
intersect: false
|
||||||
|
},
|
||||||
|
plugins: {
|
||||||
|
tooltip: {
|
||||||
|
enabled: true,
|
||||||
|
position: 'nearest',
|
||||||
|
}
|
||||||
|
},
|
||||||
scales: {
|
scales: {
|
||||||
x: {
|
x: {
|
||||||
display: true,
|
display: true,
|
||||||
|
|||||||
Reference in new issue
Block a user