JSFiddle - React, Tailwind, and code Playground

HTML

<body style="">
	<div id="wheel" class="divided-wheel-main" style="border-top-left-radius: 209px; border-top-right-radius: 209px; border-bottom-right-radius: 209px; border-bottom-left-radius: 209px;border:solid 1px red;">
		<svg id="wheel-svg" width="418" height="418" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="border-top-left-radius: 209px; border-top-right-radius: 209px; border-bottom-right-radius: 209px; border-bottom-left-radius: 209px; overflow: hidden;">
			<g id="wheel-data" style="overflow:hidden">
				<g id="wheel_1" class="divided-wheel-part wheel-wheel-part  divided-wheel-part-selected" data-index="1">
					<polygon points="413.99999999999994,4,4,4,209,209" class="divided-wheel-polygon"></polygon>
					<text x="201" y="31.5" fill="white" class="divided-wheel-part-text"> &nbsp;1</text>
				</g>
				<g id="wheel_2" class="divided-wheel-part wheel-wheel-part " data-index="2">
					<polygon points="4,4,3.9999999999999716,413.99999999999994,209,209" class="divided-wheel-polygon"></polygon>
					<text x="16.5" y="216" fill="white" class="divided-wheel-part-text"> &nbsp;2</text>
				</g>
				<g id="wheel_3" class="divided-wheel-part wheel-wheel-part " data-index="3">
					<polygon points="3.9999999999999716,413.99999999999994,413.99999999999994,414,209,209" class="divided-wheel-polygon"></polygon>
					<text x="200.99999999999997" y="400.5" fill="white" class="divided-wheel-part-text"> &nbsp;3</text>
				</g>
				<g id="wheel_4" class="divided-wheel-part wheel-wheel-part " data-index="4">
					<polygon points="413.99999999999994,414,414,4.000000000000057,209,209" class="divided-wheel-polygon"></polygon>
					<text x="385.5" y="216.00000000000003" fill="white" class="divided-wheel-part-text"> &nbsp;4</text>
				</g>
			</g>
		</svg>
	</div>
</body>

CSS

/* before anything -  reset css  */
/** * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/) * http://cssreset.com */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


/* different controls classes */
.divided-wheel-main {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
}

.divided-wheel-polygon {
  -webkit-transition: fill 0.25s;
  -moz-transition: fill 0.25s;
  -ms-transition: fill 0.25s;
  -o-transition: fill 0.25s;
  transition: fill 0.25s;
  fill: #44a8e7;
  stroke-width: 1;
  stroke: white;
  stroke-opacity: 1;
}

.divided-wheel-part {
  pointer-events: visiblePainted;
  cursor: hand;
}

.divided-wheel-part:hover .divided-wheel-polygon {
  fill: #71bded;
}

/* data area (center) of divided wheel */
.divided-wheel-data {
  stroke: white;
  fill: black;
  pointer-events: auto;
}

/* surrounding wheel of divided wheel. */
.divided-wheel-surround...