lab 5 done (again)

This commit is contained in:
2026-04-10 11:39:35 +10:00
parent 084d3ed9ca
commit b9871c38e6
3 changed files with 11 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ function drawGraph(data, keyX, drawMin, drawMax, graphtype) {
// значения по оси ОХ
// создаем массив для построения графика
console.log(keyX)
// console.log(keyX)
if(keyX=="Год"){
data = d3.sort(data, (x,y)=>Number(x["labelX"])-Number(y["labelX"]));
}
@@ -145,7 +145,7 @@ const ChartDraw = (props) => {
.attr("width", boundsWidth)
.attr("height", boundsHeight)
.style("fill", "lightgrey");
console.log(props)
// console.log(props)
drawGraph(props.data,props.ox,props.minMax[0],props.minMax[1],Number(props.graphType))
});