Property Assignment Expected Error in Java script when passing flask variables to charts

Hi i was tiring to get to use jinja variables in JS to create task the task is working but the terminal shows an error saying that “property assignment expected” and “Declaration or statement expected” but i am getting output correctly can you help me to resolve these errors i just want error free code.

<div class="mb-3 row">
<div class="mb-3 col">
  <canvas id="myChart" style="position: relative; width:100%;max-width:500px"></canvas>
</div>
<div class="mb-3 col">
<canvas id="myChart1" style="position: relative; width:100%;max-width:300px"></canvas>
</div>
<div class="w-100"></div>
<div class="mb-3 col">
<canvas id="myChart2" style="position: relative; width:100%;max-width:500px"></canvas>
</div>
<div class="mb-3 col">
<canvas id="myChart3" style="position: relative; width:100%;max-width:500px"></canvas>
</div>
</div>

<script type = "text/javascript">

xValues = {{label|safe}};
yValues = {{value|safe}};
pyValues = {{budget|safe}};
VValues = {{memb|safe}};
VyValues = {{val1|safe}};
sValues = {{subt|safe}};

var barColors = ["red", "green","blue","orange","brown","purple","pink"];
var barColors1 = ["#b91d47",
"#00aba9",
"#2b5797",
"#e8c3b9",
"#1e7145"];

new Chart("myChart", {
type: "horizontalBar",
data: {
  labels: xValues,
  datasets: [{
    backgroundColor: barColors,
    data: yValues
  }]
},
options: {
  legend: {display: false},
  title: {
    display: true,
    text: "Allocated Hours for projects",
    type:"verticalBar"
  }
}
});

new Chart("myChart1", {
type: "doughnut",
data: {
datasets: [{
backgroundColor: barColors1,
data: pyValues
}]
},
options: {
title: {
display: true,
text: "Allocated budget project wise"
}
}
});

new Chart("myChart2", {
type: "bar",
data: {
  labels: VValues,
  datasets: [{
    backgroundColor: barColors,
    data: VyValues
  }]
},
options: {
  legend: {display: false},
  title: {
    display: true,
    text: "Allocated Hours for projects",
    type:"verticalBar"
  }
}
});

new Chart("myChart3", {
  type: "bar",
  data: {
    labels: sValues,
    datasets: [{
      backgroundColor: barColors,
      data: VyValues
    }]
  },
  options: {
    legend: {display: false},
    title: {
      display: true,
      text: "Allocated Hours for projects",
      type:"verticalBar"
    }
  }
});
</script>

Below is my error masseges

Property assignment expected.in all jinja variables assigned