<!doctype html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	layout:decorate="~{layout}">

<th:block layout:fragment="pagetitle">
	<!--page title-->
	<div th:replace="partials/title-meta :: title-meta('Apex Pie Charts')"></div>
</th:block>

<head>

</head>

<body>
	<div layout:fragment="content">
		<!-- start page title -->
		<div th:replace="partials/page-title :: page-title('Pie Charts','Apexcharts')"></div>

		<div class="row">
			<div class="col-xl-6">
				<div class="card">
					<div class="card-header">
						<h4 class="card-title mb-0">Simple Pie Chart</h4>
					</div><!-- end card header -->

					<div class="card-body">
						<div id="simple_pie_chart"
							data-colors='["--vz-primary", "--vz-success", "--vz-warning", "--vz-danger", "--vz-info"]'
							class="apex-charts" dir="ltr"></div>
					</div><!-- end card-body -->
				</div><!-- end card -->
			</div>
			<!-- end col -->

			<div class="col-xl-6">
				<div class="card">
					<div class="card-header">
						<h4 class="card-title mb-0">Simple Donut Chart</h4>
					</div><!-- end card header -->

					<div class="card-body">
						<div id="simple_dount_chart"
							data-colors='["--vz-primary", "--vz-success", "--vz-warning", "--vz-danger", "--vz-info"]'
							class="apex-charts" dir="ltr"></div>
					</div><!-- end card-body -->
				</div><!-- end card -->
			</div>
			<!-- end col -->
		</div>
		<!-- end row -->

		<div class="row">
			<div class="col-xl-6">
				<div class="card">
					<div class="card-header">
						<h4 class="card-title mb-0">Updating Donut Chart</h4>
					</div><!-- end card header -->

					<div class="card-body">
						<div>
							<div id="updating_donut_chart"
								data-colors='["--vz-primary", "--vz-success", "--vz-warning", "--vz-danger", "--vz-info"]'
								class="apex-charts" dir="ltr"></div>

							<div class="d-flex align-items-start flex-wrap gap-2 justify-content-center mt-4">
								<button id="add" class="btn btn-light btn-sm">
									+ ADD
								</button>

								<button id="remove" class="btn btn-light btn-sm">
									- REMOVE
								</button>

								<button id="randomize" class="btn btn-light btn-sm">
									RANDOMIZE
								</button>

								<button id="reset" class="btn btn-light btn-sm">
									RESET
								</button>
							</div>
						</div>
					</div><!-- end card-body -->
				</div><!-- end card -->
			</div>
			<!-- end col -->

			<div class="col-xl-6">
				<div class="card">
					<div class="card-header">
						<h4 class="card-title mb-0">Monochrome Pie Chart</h4>
					</div><!-- end card header -->

					<div class="card-body">
						<div id="monochrome_pie_chart" data-colors='["--vz-primary"]' class="apex-charts" dir="ltr">
						</div>
					</div><!-- end card-body -->
				</div><!-- end card -->
			</div>
			<!-- end col -->
		</div>
		<!-- end row -->

		<div class="row">
			<div class="col-xl-6">
				<div class="card">
					<div class="card-header">
						<h4 class="card-title mb-0">Gradient Donut Chart</h4>
					</div><!-- end card header -->

					<div class="card-body">
						<div id="gradient_chart"
							data-colors='["--vz-primary", "--vz-success", "--vz-warning", "--vz-danger", "--vz-info"]'
							class="apex-charts" dir="ltr"></div>
					</div><!-- end card-body -->
				</div><!-- end card -->
			</div>
			<!-- end col -->

			<div class="col-xl-6">
				<div class="card">
					<div class="card-header">
						<h4 class="card-title mb-0">Patterned Donut Chart</h4>
					</div><!-- end card header -->

					<div class="card-body">
						<div id="pattern_chart"
							data-colors='["--vz-primary", "--vz-success", "--vz-warning", "--vz-danger", "--vz-info"]'
							class="apex-charts" dir="ltr"></div>
					</div><!-- end card-body -->
				</div><!-- end card -->
			</div>
			<!-- end col -->
		</div>
		<!-- end row -->

		<div class="row">
			<div class="col-xl-6">
				<div class="card">
					<div class="card-header">
						<h4 class="card-title mb-0">Pie Chart with Image Fill</h4>
					</div><!-- end card header -->

					<div class="card-body">
						<div id="image_pie_chart"
							data-colors='["--vz-primary", "--vz-success", "--vz-warning", "--vz-info"]'
							class="apex-charts" dir="ltr"></div>
					</div><!-- end card-body -->
				</div><!-- end card -->
			</div>
			<!-- end col -->
		</div>
		<!-- end row -->
	</div>

	<th:block layout:fragment="modal">

	</th:block>
	<th:block layout:fragment="pagejs">
		<!-- apexcharts -->
		<script src="/assets/libs/apexcharts/apexcharts.min.js"></script>

		<!-- piecharts init -->
		<script src="/assets/js/pages/apexcharts-pie.init.js"></script>
	</th:block>
</body>

</html>