Plot.plot({
x: {domain: [list_date[0],list_date[list_date.length-1]] },
y: {domain: [0, 4]},
width: 1200,
height: 300,
grid: true,
marks: [
Plot.line(massiv_obj, { x: 'date_b', y: 'value_b', filter: ((d) => d['date_b'] <= filter_date)}),
Plot.circle(massiv_obj, { x: 'date_b', y: 'value_b', fill:(d)=>f_color(d['value_b']), filter: ((d) => d['date_b'] <= filter_date)}),
Plot.ruleY([1, 2, 3, 4])
],
color: { legend: true },
marginLeft: 40
})