Должно быть так.Также id
должен быть в circle
.
function change() {
document.getElementById('dayereh').style.fill = "red";
}
.button {
background-color: rgb(209, 16, 16);
border: none;
color: rgb(255, 255, 255);
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 20px;
margin: 4px 2px;
cursor: pointer;
}
<svg width="1370" height="1070">
<circle id="dayereh" cx="500" cy="500" r="400" stroke="black" stroke-width="30" fill="blue" />
</svg>
<button class="button" id="btn-test1" onclick="change()">change color</button>