It is inadvisable to bind handlers to both the click and dblclick events for the same element. The sequence of events triggered varies from browser to browser, with some receiving two click events before the dblclick and others only one.
const myChart = new Chartist.Line('.chart', {
series: [
coord, coordinatYX
]
},
{
axisX: {
type: Chartist.AutoScaleAxis,
onlyInteger: true,
offset: 20
}
});
myChart.update();
В соответствии со спецификацией, это свойство будет возвращать null в Webkit, если элемент скрыт (свойство style.display этого элемента или любого его родителя имеет значение "none") или если свойство style.position самого элемента установлено в "fixed" .