mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-26 10:03:35 +05:00
Snap to points in Chart
This commit is contained in:
@@ -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