charts-echarts.html 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta content="width=device-width, initial-scale=1.0" name="viewport">
  6. <title>Charts / ECharts - NiceAdmin Bootstrap Template</title>
  7. <meta content="" name="description">
  8. <meta content="" name="keywords">
  9. <!-- Favicons -->
  10. <link href="assets/img/favicon.png" rel="icon">
  11. <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
  12. <!-- Google Fonts -->
  13. <link href="https://fonts.gstatic.com" rel="preconnect">
  14. <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Nunito:300,300i,400,400i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
  15. <!-- Vendor CSS Files -->
  16. <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  17. <link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
  18. <link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
  19. <link href="assets/vendor/quill/quill.snow.css" rel="stylesheet">
  20. <link href="assets/vendor/quill/quill.bubble.css" rel="stylesheet">
  21. <link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet">
  22. <link href="assets/vendor/simple-datatables/style.css" rel="stylesheet">
  23. <!-- Template Main CSS File -->
  24. <link href="assets/css/style.css" rel="stylesheet">
  25. <!-- =======================================================
  26. * Template Name: NiceAdmin - v2.2.0
  27. * Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
  28. * Author: BootstrapMade.com
  29. * License: https://bootstrapmade.com/license/
  30. ======================================================== -->
  31. </head>
  32. <body>
  33. <!-- ======= Header ======= -->
  34. <header id="header" class="header fixed-top d-flex align-items-center">
  35. <div class="d-flex align-items-center justify-content-between">
  36. <a href="index.html" class="logo d-flex align-items-center">
  37. <img src="assets/img/logo.png" alt="">
  38. <span class="d-none d-lg-block">NiceAdmin</span>
  39. </a>
  40. <i class="bi bi-list toggle-sidebar-btn"></i>
  41. </div><!-- End Logo -->
  42. <div class="search-bar">
  43. <form class="search-form d-flex align-items-center" method="POST" action="#">
  44. <input type="text" name="query" placeholder="Search" title="Enter search keyword">
  45. <button type="submit" title="Search"><i class="bi bi-search"></i></button>
  46. </form>
  47. </div><!-- End Search Bar -->
  48. <nav class="header-nav ms-auto">
  49. <ul class="d-flex align-items-center">
  50. <li class="nav-item d-block d-lg-none">
  51. <a class="nav-link nav-icon search-bar-toggle " href="#">
  52. <i class="bi bi-search"></i>
  53. </a>
  54. </li><!-- End Search Icon-->
  55. <li class="nav-item dropdown">
  56. <a class="nav-link nav-icon" href="#" data-bs-toggle="dropdown">
  57. <i class="bi bi-bell"></i>
  58. <span class="badge bg-primary badge-number">4</span>
  59. </a><!-- End Notification Icon -->
  60. <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow notifications">
  61. <li class="dropdown-header">
  62. You have 4 new notifications
  63. <a href="#"><span class="badge rounded-pill bg-primary p-2 ms-2">View all</span></a>
  64. </li>
  65. <li>
  66. <hr class="dropdown-divider">
  67. </li>
  68. <li class="notification-item">
  69. <i class="bi bi-exclamation-circle text-warning"></i>
  70. <div>
  71. <h4>Lorem Ipsum</h4>
  72. <p>Quae dolorem earum veritatis oditseno</p>
  73. <p>30 min. ago</p>
  74. </div>
  75. </li>
  76. <li>
  77. <hr class="dropdown-divider">
  78. </li>
  79. <li class="notification-item">
  80. <i class="bi bi-x-circle text-danger"></i>
  81. <div>
  82. <h4>Atque rerum nesciunt</h4>
  83. <p>Quae dolorem earum veritatis oditseno</p>
  84. <p>1 hr. ago</p>
  85. </div>
  86. </li>
  87. <li>
  88. <hr class="dropdown-divider">
  89. </li>
  90. <li class="notification-item">
  91. <i class="bi bi-check-circle text-success"></i>
  92. <div>
  93. <h4>Sit rerum fuga</h4>
  94. <p>Quae dolorem earum veritatis oditseno</p>
  95. <p>2 hrs. ago</p>
  96. </div>
  97. </li>
  98. <li>
  99. <hr class="dropdown-divider">
  100. </li>
  101. <li class="notification-item">
  102. <i class="bi bi-info-circle text-primary"></i>
  103. <div>
  104. <h4>Dicta reprehenderit</h4>
  105. <p>Quae dolorem earum veritatis oditseno</p>
  106. <p>4 hrs. ago</p>
  107. </div>
  108. </li>
  109. <li>
  110. <hr class="dropdown-divider">
  111. </li>
  112. <li class="dropdown-footer">
  113. <a href="#">Show all notifications</a>
  114. </li>
  115. </ul><!-- End Notification Dropdown Items -->
  116. </li><!-- End Notification Nav -->
  117. <li class="nav-item dropdown">
  118. <a class="nav-link nav-icon" href="#" data-bs-toggle="dropdown">
  119. <i class="bi bi-chat-left-text"></i>
  120. <span class="badge bg-success badge-number">3</span>
  121. </a><!-- End Messages Icon -->
  122. <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow messages">
  123. <li class="dropdown-header">
  124. You have 3 new messages
  125. <a href="#"><span class="badge rounded-pill bg-primary p-2 ms-2">View all</span></a>
  126. </li>
  127. <li>
  128. <hr class="dropdown-divider">
  129. </li>
  130. <li class="message-item">
  131. <a href="#">
  132. <img src="assets/img/messages-1.jpg" alt="" class="rounded-circle">
  133. <div>
  134. <h4>Maria Hudson</h4>
  135. <p>Velit asperiores et ducimus soluta repudiandae labore officia est ut...</p>
  136. <p>4 hrs. ago</p>
  137. </div>
  138. </a>
  139. </li>
  140. <li>
  141. <hr class="dropdown-divider">
  142. </li>
  143. <li class="message-item">
  144. <a href="#">
  145. <img src="assets/img/messages-2.jpg" alt="" class="rounded-circle">
  146. <div>
  147. <h4>Anna Nelson</h4>
  148. <p>Velit asperiores et ducimus soluta repudiandae labore officia est ut...</p>
  149. <p>6 hrs. ago</p>
  150. </div>
  151. </a>
  152. </li>
  153. <li>
  154. <hr class="dropdown-divider">
  155. </li>
  156. <li class="message-item">
  157. <a href="#">
  158. <img src="assets/img/messages-3.jpg" alt="" class="rounded-circle">
  159. <div>
  160. <h4>David Muldon</h4>
  161. <p>Velit asperiores et ducimus soluta repudiandae labore officia est ut...</p>
  162. <p>8 hrs. ago</p>
  163. </div>
  164. </a>
  165. </li>
  166. <li>
  167. <hr class="dropdown-divider">
  168. </li>
  169. <li class="dropdown-footer">
  170. <a href="#">Show all messages</a>
  171. </li>
  172. </ul><!-- End Messages Dropdown Items -->
  173. </li><!-- End Messages Nav -->
  174. <li class="nav-item dropdown pe-3">
  175. <a class="nav-link nav-profile d-flex align-items-center pe-0" href="#" data-bs-toggle="dropdown">
  176. <img src="assets/img/profile-img.jpg" alt="Profile" class="rounded-circle">
  177. <span class="d-none d-md-block dropdown-toggle ps-2">K. Anderson</span>
  178. </a><!-- End Profile Iamge Icon -->
  179. <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow profile">
  180. <li class="dropdown-header">
  181. <h6>Kevin Anderson</h6>
  182. <span>Web Designer</span>
  183. </li>
  184. <li>
  185. <hr class="dropdown-divider">
  186. </li>
  187. <li>
  188. <a class="dropdown-item d-flex align-items-center" href="users-profile.html">
  189. <i class="bi bi-person"></i>
  190. <span>My Profile</span>
  191. </a>
  192. </li>
  193. <li>
  194. <hr class="dropdown-divider">
  195. </li>
  196. <li>
  197. <a class="dropdown-item d-flex align-items-center" href="users-profile.html">
  198. <i class="bi bi-gear"></i>
  199. <span>Account Settings</span>
  200. </a>
  201. </li>
  202. <li>
  203. <hr class="dropdown-divider">
  204. </li>
  205. <li>
  206. <a class="dropdown-item d-flex align-items-center" href="pages-faq.html">
  207. <i class="bi bi-question-circle"></i>
  208. <span>Need Help?</span>
  209. </a>
  210. </li>
  211. <li>
  212. <hr class="dropdown-divider">
  213. </li>
  214. <li>
  215. <a class="dropdown-item d-flex align-items-center" href="#">
  216. <i class="bi bi-box-arrow-right"></i>
  217. <span>Sign Out</span>
  218. </a>
  219. </li>
  220. </ul><!-- End Profile Dropdown Items -->
  221. </li><!-- End Profile Nav -->
  222. </ul>
  223. </nav><!-- End Icons Navigation -->
  224. </header><!-- End Header -->
  225. <!-- ======= Sidebar ======= -->
  226. <aside id="sidebar" class="sidebar">
  227. <ul class="sidebar-nav" id="sidebar-nav">
  228. <li class="nav-item">
  229. <a class="nav-link collapsed" href="index.html">
  230. <i class="bi bi-grid"></i>
  231. <span>Dashboard</span>
  232. </a>
  233. </li><!-- End Dashboard Nav -->
  234. <li class="nav-item">
  235. <a class="nav-link collapsed" data-bs-target="#components-nav" data-bs-toggle="collapse" href="#">
  236. <i class="bi bi-menu-button-wide"></i><span>Components</span><i class="bi bi-chevron-down ms-auto"></i>
  237. </a>
  238. <ul id="components-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
  239. <li>
  240. <a href="components-alerts.html">
  241. <i class="bi bi-circle"></i><span>Alerts</span>
  242. </a>
  243. </li>
  244. <li>
  245. <a href="components-accordion.html">
  246. <i class="bi bi-circle"></i><span>Accordion</span>
  247. </a>
  248. </li>
  249. <li>
  250. <a href="components-badges.html">
  251. <i class="bi bi-circle"></i><span>Badges</span>
  252. </a>
  253. </li>
  254. <li>
  255. <a href="components-breadcrumbs.html">
  256. <i class="bi bi-circle"></i><span>Breadcrumbs</span>
  257. </a>
  258. </li>
  259. <li>
  260. <a href="components-buttons.html">
  261. <i class="bi bi-circle"></i><span>Buttons</span>
  262. </a>
  263. </li>
  264. <li>
  265. <a href="components-cards.html">
  266. <i class="bi bi-circle"></i><span>Cards</span>
  267. </a>
  268. </li>
  269. <li>
  270. <a href="components-carousel.html">
  271. <i class="bi bi-circle"></i><span>Carousel</span>
  272. </a>
  273. </li>
  274. <li>
  275. <a href="components-list-group.html">
  276. <i class="bi bi-circle"></i><span>List group</span>
  277. </a>
  278. </li>
  279. <li>
  280. <a href="components-modal.html">
  281. <i class="bi bi-circle"></i><span>Modal</span>
  282. </a>
  283. </li>
  284. <li>
  285. <a href="components-tabs.html">
  286. <i class="bi bi-circle"></i><span>Tabs</span>
  287. </a>
  288. </li>
  289. <li>
  290. <a href="components-pagination.html">
  291. <i class="bi bi-circle"></i><span>Pagination</span>
  292. </a>
  293. </li>
  294. <li>
  295. <a href="components-progress.html">
  296. <i class="bi bi-circle"></i><span>Progress</span>
  297. </a>
  298. </li>
  299. <li>
  300. <a href="components-spinners.html">
  301. <i class="bi bi-circle"></i><span>Spinners</span>
  302. </a>
  303. </li>
  304. <li>
  305. <a href="components-tooltips.html">
  306. <i class="bi bi-circle"></i><span>Tooltips</span>
  307. </a>
  308. </li>
  309. </ul>
  310. </li><!-- End Components Nav -->
  311. <li class="nav-item">
  312. <a class="nav-link collapsed" data-bs-target="#forms-nav" data-bs-toggle="collapse" href="#">
  313. <i class="bi bi-journal-text"></i><span>Forms</span><i class="bi bi-chevron-down ms-auto"></i>
  314. </a>
  315. <ul id="forms-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
  316. <li>
  317. <a href="nft_add.html">
  318. <i class="bi bi-circle"></i><span>Form Elements</span>
  319. </a>
  320. </li>
  321. <li>
  322. <a href="forms-layouts.html">
  323. <i class="bi bi-circle"></i><span>Form Layouts</span>
  324. </a>
  325. </li>
  326. <li>
  327. <a href="forms-editors.html">
  328. <i class="bi bi-circle"></i><span>Form Editors</span>
  329. </a>
  330. </li>
  331. <li>
  332. <a href="forms-validation.html">
  333. <i class="bi bi-circle"></i><span>Form Validation</span>
  334. </a>
  335. </li>
  336. </ul>
  337. </li><!-- End Forms Nav -->
  338. <li class="nav-item">
  339. <a class="nav-link collapsed" data-bs-target="#tables-nav" data-bs-toggle="collapse" href="#">
  340. <i class="bi bi-layout-text-window-reverse"></i><span>Tables</span><i class="bi bi-chevron-down ms-auto"></i>
  341. </a>
  342. <ul id="tables-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
  343. <li>
  344. <a href="tables-general.html">
  345. <i class="bi bi-circle"></i><span>General Tables</span>
  346. </a>
  347. </li>
  348. <li>
  349. <a href="user.html">
  350. <i class="bi bi-circle"></i><span>Data Tables</span>
  351. </a>
  352. </li>
  353. </ul>
  354. </li><!-- End Tables Nav -->
  355. <li class="nav-item">
  356. <a class="nav-link " data-bs-target="#charts-nav" data-bs-toggle="collapse" href="#">
  357. <i class="bi bi-bar-chart"></i><span>Charts</span><i class="bi bi-chevron-down ms-auto"></i>
  358. </a>
  359. <ul id="charts-nav" class="nav-content collapse show" data-bs-parent="#sidebar-nav">
  360. <li>
  361. <a href="charts-chartjs.html">
  362. <i class="bi bi-circle"></i><span>Chart.js</span>
  363. </a>
  364. </li>
  365. <li>
  366. <a href="charts-apexcharts.html">
  367. <i class="bi bi-circle"></i><span>ApexCharts</span>
  368. </a>
  369. </li>
  370. <li>
  371. <a href="charts-echarts.html" class="active">
  372. <i class="bi bi-circle"></i><span>ECharts</span>
  373. </a>
  374. </li>
  375. </ul>
  376. </li><!-- End Charts Nav -->
  377. <li class="nav-item">
  378. <a class="nav-link collapsed" data-bs-target="#icons-nav" data-bs-toggle="collapse" href="#">
  379. <i class="bi bi-gem"></i><span>Icons</span><i class="bi bi-chevron-down ms-auto"></i>
  380. </a>
  381. <ul id="icons-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
  382. <li>
  383. <a href="icons-bootstrap.html">
  384. <i class="bi bi-circle"></i><span>Bootstrap Icons</span>
  385. </a>
  386. </li>
  387. <li>
  388. <a href="icons-remix.html">
  389. <i class="bi bi-circle"></i><span>Remix Icons</span>
  390. </a>
  391. </li>
  392. <li>
  393. <a href="icons-boxicons.html">
  394. <i class="bi bi-circle"></i><span>Boxicons</span>
  395. </a>
  396. </li>
  397. </ul>
  398. </li><!-- End Icons Nav -->
  399. <li class="nav-heading">Pages</li>
  400. <li class="nav-item">
  401. <a class="nav-link collapsed" href="users-profile.html">
  402. <i class="bi bi-person"></i>
  403. <span>Profile</span>
  404. </a>
  405. </li><!-- End Profile Page Nav -->
  406. <li class="nav-item">
  407. <a class="nav-link collapsed" href="pages-faq.html">
  408. <i class="bi bi-question-circle"></i>
  409. <span>F.A.Q</span>
  410. </a>
  411. </li><!-- End F.A.Q Page Nav -->
  412. <li class="nav-item">
  413. <a class="nav-link collapsed" href="pages-contact.html">
  414. <i class="bi bi-envelope"></i>
  415. <span>Contact</span>
  416. </a>
  417. </li><!-- End Contact Page Nav -->
  418. <li class="nav-item">
  419. <a class="nav-link collapsed" href="pages-register.html">
  420. <i class="bi bi-card-list"></i>
  421. <span>Register</span>
  422. </a>
  423. </li><!-- End Register Page Nav -->
  424. <li class="nav-item">
  425. <a class="nav-link collapsed" href="login.html">
  426. <i class="bi bi-box-arrow-in-right"></i>
  427. <span>Login</span>
  428. </a>
  429. </li><!-- End Login Page Nav -->
  430. <li class="nav-item">
  431. <a class="nav-link collapsed" href="pages-error-404.html">
  432. <i class="bi bi-dash-circle"></i>
  433. <span>Error 404</span>
  434. </a>
  435. </li><!-- End Error 404 Page Nav -->
  436. <li class="nav-item">
  437. <a class="nav-link collapsed" href="pages-blank.html">
  438. <i class="bi bi-file-earmark"></i>
  439. <span>Blank</span>
  440. </a>
  441. </li><!-- End Blank Page Nav -->
  442. </ul>
  443. </aside><!-- End Sidebar-->
  444. <main id="main" class="main">
  445. <div class="pagetitle">
  446. <h1>ECharts</h1>
  447. <nav>
  448. <ol class="breadcrumb">
  449. <li class="breadcrumb-item"><a href="index.html">Home</a></li>
  450. <li class="breadcrumb-item">Charts</li>
  451. <li class="breadcrumb-item active">ECharts</li>
  452. </ol>
  453. </nav>
  454. </div><!-- End Page Title -->
  455. <p>ECharts Examples. You can check the <a href="https://echarts.apache.org/examples/en/index.html" target="_blank">official website</a> for more examples.</p>
  456. <section class="section">
  457. <div class="row">
  458. <div class="col-lg-6">
  459. <div class="card">
  460. <div class="card-body">
  461. <h5 class="card-title">Line Chart</h5>
  462. <!-- Line Chart -->
  463. <div id="lineChart" style="min-height: 400px;" class="echart"></div>
  464. <script>
  465. document.addEventListener("DOMContentLoaded", () => {
  466. echarts.init(document.querySelector("#lineChart")).setOption({
  467. xAxis: {
  468. type: 'category',
  469. data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  470. },
  471. yAxis: {
  472. type: 'value'
  473. },
  474. series: [{
  475. data: [150, 230, 224, 218, 135, 147, 260],
  476. type: 'line',
  477. smooth: true
  478. }]
  479. });
  480. });
  481. </script>
  482. <!-- End Line Chart -->
  483. </div>
  484. </div>
  485. </div>
  486. <div class="col-lg-6">
  487. <div class="card">
  488. <div class="card-body">
  489. <h5 class="card-title">Area Chart</h5>
  490. <!-- Area Chart -->
  491. <div id="areaChart" style="min-height: 400px;" class="echart"></div>
  492. <script>
  493. document.addEventListener("DOMContentLoaded", () => {
  494. echarts.init(document.querySelector("#areaChart")).setOption({
  495. xAxis: {
  496. type: 'category',
  497. boundaryGap: false,
  498. data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  499. },
  500. yAxis: {
  501. type: 'value'
  502. },
  503. series: [{
  504. data: [820, 932, 901, 934, 1290, 1330, 1320],
  505. type: 'line',
  506. smooth: true,
  507. areaStyle: {}
  508. }]
  509. });
  510. });
  511. </script>
  512. <!-- End Area Chart -->
  513. </div>
  514. </div>
  515. </div>
  516. <div class="col-lg-6">
  517. <div class="card">
  518. <div class="card-body">
  519. <h5 class="card-title">Bar Chart</h5>
  520. <!-- Bar Chart -->
  521. <div id="barChart" style="min-height: 400px;" class="echart"></div>
  522. <script>
  523. document.addEventListener("DOMContentLoaded", () => {
  524. echarts.init(document.querySelector("#barChart")).setOption({
  525. xAxis: {
  526. type: 'category',
  527. data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  528. },
  529. yAxis: {
  530. type: 'value'
  531. },
  532. series: [{
  533. data: [120, 200, 150, 80, 70, 110, 130],
  534. type: 'bar'
  535. }]
  536. });
  537. });
  538. </script>
  539. <!-- End Bar Chart -->
  540. </div>
  541. </div>
  542. </div>
  543. <div class="col-lg-6">
  544. <div class="card">
  545. <div class="card-body">
  546. <h5 class="card-title">Vertical Bar Chart</h5>
  547. <!-- Vertical Bar Chart -->
  548. <div id="verticalBarChart" style="min-height: 400px;" class="echart"></div>
  549. <script>
  550. document.addEventListener("DOMContentLoaded", () => {
  551. echarts.init(document.querySelector("#verticalBarChart")).setOption({
  552. title: {
  553. text: 'World Population'
  554. },
  555. tooltip: {
  556. trigger: 'axis',
  557. axisPointer: {
  558. type: 'shadow'
  559. }
  560. },
  561. legend: {},
  562. grid: {
  563. left: '3%',
  564. right: '4%',
  565. bottom: '3%',
  566. containLabel: true
  567. },
  568. xAxis: {
  569. type: 'value',
  570. boundaryGap: [0, 0.01]
  571. },
  572. yAxis: {
  573. type: 'category',
  574. data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
  575. },
  576. series: [{
  577. name: '2011',
  578. type: 'bar',
  579. data: [18203, 23489, 29034, 104970, 131744, 630230]
  580. },
  581. {
  582. name: '2012',
  583. type: 'bar',
  584. data: [19325, 23438, 31000, 121594, 134141, 681807]
  585. }
  586. ]
  587. });
  588. });
  589. </script>
  590. <!-- End Vertical Bar Chart -->
  591. </div>
  592. </div>
  593. </div>
  594. <div class="col-lg-6">
  595. <div class="card">
  596. <div class="card-body">
  597. <h5 class="card-title">Pie Chart</h5>
  598. <!-- Pie Chart -->
  599. <div id="pieChart" style="min-height: 400px;" class="echart"></div>
  600. <script>
  601. document.addEventListener("DOMContentLoaded", () => {
  602. echarts.init(document.querySelector("#pieChart")).setOption({
  603. title: {
  604. text: 'Referer of a Website',
  605. subtext: 'Fake Data',
  606. left: 'center'
  607. },
  608. tooltip: {
  609. trigger: 'item'
  610. },
  611. legend: {
  612. orient: 'vertical',
  613. left: 'left'
  614. },
  615. series: [{
  616. name: 'Access From',
  617. type: 'pie',
  618. radius: '50%',
  619. data: [{
  620. value: 1048,
  621. name: 'Search Engine'
  622. },
  623. {
  624. value: 735,
  625. name: 'Direct'
  626. },
  627. {
  628. value: 580,
  629. name: 'Email'
  630. },
  631. {
  632. value: 484,
  633. name: 'Union Ads'
  634. },
  635. {
  636. value: 300,
  637. name: 'Video Ads'
  638. }
  639. ],
  640. emphasis: {
  641. itemStyle: {
  642. shadowBlur: 10,
  643. shadowOffsetX: 0,
  644. shadowColor: 'rgba(0, 0, 0, 0.5)'
  645. }
  646. }
  647. }]
  648. });
  649. });
  650. </script>
  651. <!-- End Pie Chart -->
  652. </div>
  653. </div>
  654. </div>
  655. <div class="col-lg-6">
  656. <div class="card">
  657. <div class="card-body">
  658. <h5 class="card-title">Donut Chart</h5>
  659. <!-- Donut Chart -->
  660. <div id="donutChart" style="min-height: 400px;" class="echart"></div>
  661. <script>
  662. document.addEventListener("DOMContentLoaded", () => {
  663. echarts.init(document.querySelector("#donutChart")).setOption({
  664. tooltip: {
  665. trigger: 'item'
  666. },
  667. legend: {
  668. top: '5%',
  669. left: 'center'
  670. },
  671. series: [{
  672. name: 'Access From',
  673. type: 'pie',
  674. radius: ['40%', '70%'],
  675. avoidLabelOverlap: false,
  676. label: {
  677. show: false,
  678. position: 'center'
  679. },
  680. emphasis: {
  681. label: {
  682. show: true,
  683. fontSize: '18',
  684. fontWeight: 'bold'
  685. }
  686. },
  687. labelLine: {
  688. show: false
  689. },
  690. data: [{
  691. value: 1048,
  692. name: 'Search Engine'
  693. },
  694. {
  695. value: 735,
  696. name: 'Direct'
  697. },
  698. {
  699. value: 580,
  700. name: 'Email'
  701. },
  702. {
  703. value: 484,
  704. name: 'Union Ads'
  705. },
  706. {
  707. value: 300,
  708. name: 'Video Ads'
  709. }
  710. ]
  711. }]
  712. });
  713. });
  714. </script>
  715. <!-- End Donut Chart -->
  716. </div>
  717. </div>
  718. </div>
  719. <div class="col-lg-6">
  720. <div class="card">
  721. <div class="card-body">
  722. <h5 class="card-title">Radar Chart</h5>
  723. <!-- Radar Chart -->
  724. <div id="radarChart" style="min-height: 400px;" class="echart"></div>
  725. <script>
  726. document.addEventListener("DOMContentLoaded", () => {
  727. echarts.init(document.querySelector("#radarChart")).setOption({
  728. legend: {
  729. data: ['Allocated Budget', 'Actual Spending']
  730. },
  731. radar: {
  732. // shape: 'circle',
  733. indicator: [{
  734. name: 'Sales',
  735. max: 6500
  736. },
  737. {
  738. name: 'Administration',
  739. max: 16000
  740. },
  741. {
  742. name: 'Information Technology',
  743. max: 30000
  744. },
  745. {
  746. name: 'Customer Support',
  747. max: 38000
  748. },
  749. {
  750. name: 'Development',
  751. max: 52000
  752. },
  753. {
  754. name: 'Marketing',
  755. max: 25000
  756. }
  757. ]
  758. },
  759. series: [{
  760. name: 'Budget vs spending',
  761. type: 'radar',
  762. data: [{
  763. value: [4200, 3000, 20000, 35000, 50000, 18000],
  764. name: 'Allocated Budget'
  765. },
  766. {
  767. value: [5000, 14000, 28000, 26000, 42000, 21000],
  768. name: 'Actual Spending'
  769. }
  770. ]
  771. }]
  772. });
  773. });
  774. </script>
  775. <!-- End Radar Chart -->
  776. </div>
  777. </div>
  778. </div>
  779. <div class="col-lg-6">
  780. <div class="card">
  781. <div class="card-body">
  782. <h5 class="card-title">Polar Area Chart</h5>
  783. <!-- Polar Area Chart -->
  784. <div id="polarAreaChart" style="min-height: 400px;" class="echart"></div>
  785. <script>
  786. document.addEventListener("DOMContentLoaded", () => {
  787. echarts.init(document.querySelector("#polarAreaChart")).setOption({
  788. angleAxis: {
  789. type: 'category',
  790. data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  791. },
  792. radiusAxis: {},
  793. polar: {},
  794. series: [{
  795. type: 'bar',
  796. data: [1, 2, 3, 4, 3, 5, 1],
  797. coordinateSystem: 'polar',
  798. name: 'A',
  799. stack: 'a',
  800. emphasis: {
  801. focus: 'series'
  802. }
  803. },
  804. {
  805. type: 'bar',
  806. data: [2, 4, 6, 1, 3, 2, 1],
  807. coordinateSystem: 'polar',
  808. name: 'B',
  809. stack: 'a',
  810. emphasis: {
  811. focus: 'series'
  812. }
  813. },
  814. {
  815. type: 'bar',
  816. data: [1, 2, 3, 4, 1, 2, 5],
  817. coordinateSystem: 'polar',
  818. name: 'C',
  819. stack: 'a',
  820. emphasis: {
  821. focus: 'series'
  822. }
  823. }
  824. ],
  825. legend: {
  826. show: true,
  827. data: ['A', 'B', 'C']
  828. }
  829. });
  830. });
  831. </script>
  832. <!-- End Polar Area Chart -->
  833. </div>
  834. </div>
  835. </div>
  836. <div class="col-lg-6">
  837. <div class="card">
  838. <div class="card-body">
  839. <h5 class="card-title">Candle Stick Chart</h5>
  840. <!-- Candle Stick Chart -->
  841. <div id="candleStickChart" style="min-height: 400px;" class="echart"></div>
  842. <script>
  843. document.addEventListener("DOMContentLoaded", () => {
  844. echarts.init(document.querySelector("#candleStickChart")).setOption({
  845. xAxis: {
  846. data: ['2017-10-24', '2017-10-25', '2017-10-26', '2017-10-27']
  847. },
  848. yAxis: {},
  849. series: [{
  850. type: 'candlestick',
  851. data: [
  852. [20, 34, 10, 38],
  853. [40, 35, 30, 50],
  854. [31, 38, 33, 44],
  855. [38, 15, 5, 42]
  856. ]
  857. }]
  858. });
  859. });
  860. </script>
  861. <!-- End Candle Stick Chart -->
  862. </div>
  863. </div>
  864. </div>
  865. <div class="col-lg-6">
  866. <div class="card">
  867. <div class="card-body">
  868. <h5 class="card-title">Bubble Chart</h5>
  869. <!-- Bubble Chart -->
  870. <div id="bubbleChart" style="min-height: 400px;" class="echart"></div>
  871. <script>
  872. document.addEventListener("DOMContentLoaded", () => {
  873. const data = [
  874. [
  875. [28604, 77, 17096869, 'Australia', 1990],
  876. [31163, 77.4, 27662440, 'Canada', 1990],
  877. [1516, 68, 1154605773, 'China', 1990],
  878. [13670, 74.7, 10582082, 'Cuba', 1990],
  879. [28599, 75, 4986705, 'Finland', 1990],
  880. [29476, 77.1, 56943299, 'France', 1990],
  881. [31476, 75.4, 78958237, 'Germany', 1990],
  882. [28666, 78.1, 254830, 'Iceland', 1990],
  883. [1777, 57.7, 870601776, 'India', 1990],
  884. [29550, 79.1, 122249285, 'Japan', 1990],
  885. [2076, 67.9, 20194354, 'North Korea', 1990],
  886. [12087, 72, 42972254, 'South Korea', 1990],
  887. [24021, 75.4, 3397534, 'New Zealand', 1990],
  888. [43296, 76.8, 4240375, 'Norway', 1990],
  889. [10088, 70.8, 38195258, 'Poland', 1990],
  890. [19349, 69.6, 147568552, 'Russia', 1990],
  891. [10670, 67.3, 53994605, 'Turkey', 1990],
  892. [26424, 75.7, 57110117, 'United Kingdom', 1990],
  893. [37062, 75.4, 252847810, 'United States', 1990]
  894. ],
  895. [
  896. [44056, 81.8, 23968973, 'Australia', 2015],
  897. [43294, 81.7, 35939927, 'Canada', 2015],
  898. [13334, 76.9, 1376048943, 'China', 2015],
  899. [21291, 78.5, 11389562, 'Cuba', 2015],
  900. [38923, 80.8, 5503457, 'Finland', 2015],
  901. [37599, 81.9, 64395345, 'France', 2015],
  902. [44053, 81.1, 80688545, 'Germany', 2015],
  903. [42182, 82.8, 329425, 'Iceland', 2015],
  904. [5903, 66.8, 1311050527, 'India', 2015],
  905. [36162, 83.5, 126573481, 'Japan', 2015],
  906. [1390, 71.4, 25155317, 'North Korea', 2015],
  907. [34644, 80.7, 50293439, 'South Korea', 2015],
  908. [34186, 80.6, 4528526, 'New Zealand', 2015],
  909. [64304, 81.6, 5210967, 'Norway', 2015],
  910. [24787, 77.3, 38611794, 'Poland', 2015],
  911. [23038, 73.13, 143456918, 'Russia', 2015],
  912. [19360, 76.5, 78665830, 'Turkey', 2015],
  913. [38225, 81.4, 64715810, 'United Kingdom', 2015],
  914. [53354, 79.1, 321773631, 'United States', 2015]
  915. ]
  916. ];
  917. echarts.init(document.querySelector("#bubbleChart")).setOption({
  918. legend: {
  919. right: '10%',
  920. top: '3%',
  921. data: ['1990', '2015']
  922. },
  923. grid: {
  924. left: '8%',
  925. top: '10%'
  926. },
  927. xAxis: {
  928. splitLine: {
  929. lineStyle: {
  930. type: 'dashed'
  931. }
  932. }
  933. },
  934. yAxis: {
  935. splitLine: {
  936. lineStyle: {
  937. type: 'dashed'
  938. }
  939. },
  940. scale: true
  941. },
  942. series: [{
  943. name: '1990',
  944. data: data[0],
  945. type: 'scatter',
  946. symbolSize: function(data) {
  947. return Math.sqrt(data[2]) / 5e2;
  948. },
  949. emphasis: {
  950. focus: 'series',
  951. label: {
  952. show: true,
  953. formatter: function(param) {
  954. return param.data[3];
  955. },
  956. position: 'top'
  957. }
  958. },
  959. itemStyle: {
  960. color: 'rgb(251, 118, 123)'
  961. }
  962. },
  963. {
  964. name: '2015',
  965. data: data[1],
  966. type: 'scatter',
  967. symbolSize: function(data) {
  968. return Math.sqrt(data[2]) / 5e2;
  969. },
  970. emphasis: {
  971. focus: 'series',
  972. label: {
  973. show: true,
  974. formatter: function(param) {
  975. return param.data[3];
  976. },
  977. position: 'top'
  978. }
  979. },
  980. itemStyle: {
  981. color: 'rgb(129, 227, 238)'
  982. }
  983. }
  984. ]
  985. });
  986. });
  987. </script>
  988. <!-- End Bubble Chart -->
  989. </div>
  990. </div>
  991. </div>
  992. </div>
  993. </section>
  994. </main><!-- End #main -->
  995. <!-- ======= Footer ======= -->
  996. <footer id="footer" class="footer">
  997. <div class="copyright">
  998. &copy; Copyright <strong><span>Ark Cards</span></strong>. All Rights Reserved
  999. </div>
  1000. <div class="credits">
  1001. <!-- All the links in the footer should remain intact. -->
  1002. <!-- You can delete the links only if you purchased the pro version. -->
  1003. <!-- Licensing information: https://bootstrapmade.com/license/ -->
  1004. <!-- Purchase the pro version with working PHP/AJAX contact form: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/ -->
  1005. Designed by <a href="https://ai.choozmo.com/">Choozmo</a>
  1006. </div>
  1007. </footer><!-- End Footer -->
  1008. <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>
  1009. <!-- Vendor JS Files -->
  1010. <script src="assets/vendor/apexcharts/apexcharts.min.js"></script>
  1011. <script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  1012. <script src="assets/vendor/chart.js/chart.min.js"></script>
  1013. <script src="assets/vendor/echarts/echarts.min.js"></script>
  1014. <script src="assets/vendor/quill/quill.min.js"></script>
  1015. <script src="assets/vendor/simple-datatables/simple-datatables.js"></script>
  1016. <script src="assets/vendor/tinymce/tinymce.min.js"></script>
  1017. <script src="assets/vendor/php-email-form/validate.js"></script>
  1018. <!-- Template Main JS File -->
  1019. <script src="assets/js/main.js"></script>
  1020. </body>
  1021. </html>