You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it(`should select nearest non-null element with index ${expectedNearestPointIndex} when clicking on element with index ${clickPointIndex} in test case ${i+1} if spanGaps=true`,function(){
979
+
constchart=window.acquireChart({
980
+
type: 'line',
981
+
data: {
982
+
labels: [1,2,3,4,5,6,7,8,9],
983
+
datasets: [{
984
+
data: data,
985
+
spanGaps: true,
986
+
}]
987
+
}
988
+
});
989
+
chart.update();
990
+
constmeta=chart.getDatasetMeta(0);
991
+
constpoint=meta.data[clickPointIndex];
944
992
945
-
it('should select closest non-null elements if spanGaps=true and closest non-null element is to the right',function(){
946
-
constchart=window.acquireChart({
947
-
type: 'line',
948
-
data: {
949
-
labels: [1,2,3,4,5,6,7,8,9],
950
-
datasets: [{
951
-
data: [12,19,null,null,null,null,5,2,3],
952
-
spanGaps: true,
953
-
}]
954
-
}
993
+
constevt={
994
+
type: 'click',
995
+
chart: chart,
996
+
native: true,// needed otherwise things its a DOM event
0 commit comments