EoQ_Supporting_Files/IndexUsingJS.html

79 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>3-Axis Radar Chart with Ticks</title>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="./drawtriangle.js"></script>
<script src="./drawtriangleinverted.js"></script>
<script src="./savesvg.js"></script>
<style>
body {
font-family: sans-serif;
margin: 0;
padding: 0;
background-color: blue;
}
svg {
background: none;
display: block;
margin: auto;
}
.axis line {
stroke: black;
stroke-width: 1.5px;
}
line.tick {
stroke: black;
stroke-width: 1;
}
polygon.grid {
fill: none;
stroke: rgba(200, 200, 200, 0.5); /* light grey with 50% opacity */
stroke-dasharray: 2,2;
}
//.area {
// fill: rgba(215, 96, 35, 0.1); /* steelblue with transparency */
// stroke: rgba(215, 96, 35, 0.6);
// stroke-width: 2;
//}
.label {
font-size: 12px;
font-weight: bold;
text-anchor: middle;
}
</style>
</head>
<body onload="
let amber = '#ffbf00';
doBigWhiteTriangle('svg1');
drawtriangle('#svg1','Roles','#008845',[0.5,0.6,0.5],'red', { x: 0, y: 350 },-0.7);
drawtriangle('#svg1','Actions','#b2c8c4',[0.1,0.6,0.5],'green',{ x: 370, y: 350 },2.3);
drawtriangle('#svg1','Approach','#ed4c0c',[0.3,0.6,0.5],amber,{ x: 185, y: 30 },1.4);
drawtriangleinverted('#svg1','Impact','#74469c',[0.7,0.6,0.8],'',{ x: 185, y: 243},2.4);
makeSvgRightClickable('svg1');
doLittleWhiteTriangle('svg2');
drawtriangle('#svg2','Roles','#008845',[0.5,0.6,0.5],'red', { x: 0, y: 100 },-0.7);
makeSvgRightClickable('svg2');
">
<svg xmlns="http://www.w3.org/2000/svg" id="svg1" width="1000" height="1000"></svg>
<svg xmlns="http://www.w3.org/2000/svg" id="svg2" width="500" height="500"></svg>
</body>
</html>