coord.style.top = event.clientY + 'px';
coord.style.left = event.clientX + 'px';
let coordX = event.clientX - 360;
let coordYStart = event.clientY - 380;
let coordY = String(coordYStart).slice(1) * 12.5;
if(coordX < 0) coordX = 0;
if(coordY < 0) coordY = 0;
coord.innerHTML = 'x: ' + coordX + 'y: ' + coordY;
const myChart = new Chartist.Line('.chart', {
series: [
coord, coordinatYX
]
},
{
axisX: {
type: Chartist.AutoScaleAxis,
onlyInteger: true,
offset: 20
}
});
myChart.update();
var nodes = Array.prototype.slice.call(document.querySelectorAll('.table-data'));
var series = nodes.reduce(function(memo, item){
memo[0].push({y:item.dataset.pascalmax, x:item.dataset.rashodmin});
memo[1].push({y:item.dataset.pascalmin, x:item.dataset.rashodmax});
return memo;
}, [[], []]);
var nodes = Array.prototype.slice.call(document.querySelectorAll('.table-data'));
var series = nodes.reduce(function(memo, item){
memo.push({y:item.dataset.pascalmax, x:item.dataset.rashodmin});
memo.push({y:item.dataset.pascalmin, x:item.dataset.rashodmax});
return memo;
}, []);