-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(examples): add pie and donut charts
- Loading branch information
1 parent
2fe4415
commit e6333da
Showing
12 changed files
with
233 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<title>Donut Charts - Examples - ODS Charts</title> | ||
<link href="https://cdn.jsdelivr.net" rel="preconnect" crossorigin="anonymous" /> | ||
<link href="https://cdn.jsdelivr.net/npm/boosted@5.3.3/dist/css/orange-helvetica.min.css" rel="stylesheet" integrity="sha384-A0Qk1uKfS1i83/YuU13i2nx5pk79PkIfNFOVzTcjCMPGKIDj9Lqx9lJmV7cdBVQZ" crossorigin="anonymous" /> | ||
<link href="https://cdn.jsdelivr.net/npm/boosted@5.3.3/dist/css/boosted.min.css" rel="stylesheet" integrity="sha384-laZ3JUZ5Ln2YqhfBvadDpNyBo7w5qmWaRnnXuRwNhJeTEFuSdGbzl4ZGHAEnTozR" crossorigin="anonymous" /> | ||
<link href="../assets/tarteaucitron-config.css" rel="stylesheet" /> | ||
<link rel="apple-touch-icon" href="../images/favicons/apple-touch-icon.png" sizes="180x180" /> | ||
<link rel="icon" href="../images/favicons/favicon-32x32.png" sizes="32x32" type="image/png" /> | ||
<link rel="icon" href="../images/favicons/favicon-16x16.png" sizes="16x16" type="image/png" /> | ||
<link rel="manifest" href="../images/favicons/manifest.json" /> | ||
<link rel="mask-icon" href="../images/favicons/safari-pinned-tab.svg" color="#000" /> | ||
<link rel="icon" href="../images/favicons/favicon.ico" /> | ||
<meta name="msapplication-config" content="../images/favicons/browserconfig.xml" /> | ||
<meta name="theme-color" content="#000" /> | ||
<!-- | ||
`ods-charts.js` is already imported by the iframe. However, it is imported here too to access the enums that are used in `index.js`. | ||
--> | ||
<script type="text/javascript" src="../../dist/ods-charts.js"></script> | ||
<script type="module" src="./index.js"></script> | ||
</head> | ||
<body> | ||
<header data-bs-theme="dark"> | ||
<nav class="navbar navbar-expand-lg" aria-label="Global navigation"> | ||
<div class="container-xxl"> | ||
<div class="navbar-brand me-auto me-lg-4"> | ||
<a class="stretched-link" href="./"> | ||
<img src="../images/orange-logo.svg" width="50" height="50" alt="ODS Charts - Back to Home" loading="lazy" /> | ||
</a> | ||
<h1 class="title">Orange Design System Charts</h1> | ||
</div> | ||
</div> | ||
</nav> | ||
</header> | ||
<main> | ||
<div class="title-bar"> | ||
<div class="container-xxl"> | ||
<h1 class="display-1">Donut charts example</h1> | ||
</div> | ||
</div> | ||
<div class="container d-flex flex-nowrap pt-3"> | ||
<div class="card w-100"> | ||
<div class="card-body"> | ||
<h5 class="card-title">Donut chart</h5> | ||
<p class="card-text">Used to show proportions rather than absolute values.</p> | ||
<div id="donutChart"></div> | ||
<script> | ||
window.addEventListener('DOMContentLoaded', () => { | ||
window.generateDonutChart('donutChart'); | ||
}); | ||
</script> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
<script src="https://cdn.jsdelivr.net/npm/boosted@5.3.3/dist/js/boosted.bundle.min.js" integrity="sha384-3RoJImQ+Yz4jAyP6xW29kJhqJOE3rdjuu9wkNycjCuDnGAtC/crm79mLcwj1w2o/" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/tarteaucitronjs@1.17.0/tarteaucitron.min.js" integrity="sha384-g6Xxn1zA15svldHyZ/Ow+wUUeRxHf/v7eOOO2sMafcnMPFD25n80Yz/3bbhJBSoN" crossorigin="anonymous"></script> | ||
<script src="../assets/tarteaucitron-config.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<title>Pie Charts - Examples - ODS Charts</title> | ||
<link href="https://cdn.jsdelivr.net" rel="preconnect" crossorigin="anonymous" /> | ||
<link href="https://cdn.jsdelivr.net/npm/boosted@5.3.3/dist/css/orange-helvetica.min.css" rel="stylesheet" integrity="sha384-A0Qk1uKfS1i83/YuU13i2nx5pk79PkIfNFOVzTcjCMPGKIDj9Lqx9lJmV7cdBVQZ" crossorigin="anonymous" /> | ||
<link href="https://cdn.jsdelivr.net/npm/boosted@5.3.3/dist/css/boosted.min.css" rel="stylesheet" integrity="sha384-laZ3JUZ5Ln2YqhfBvadDpNyBo7w5qmWaRnnXuRwNhJeTEFuSdGbzl4ZGHAEnTozR" crossorigin="anonymous" /> | ||
<link href="../assets/tarteaucitron-config.css" rel="stylesheet" /> | ||
<link rel="apple-touch-icon" href="../images/favicons/apple-touch-icon.png" sizes="180x180" /> | ||
<link rel="icon" href="../images/favicons/favicon-32x32.png" sizes="32x32" type="image/png" /> | ||
<link rel="icon" href="../images/favicons/favicon-16x16.png" sizes="16x16" type="image/png" /> | ||
<link rel="manifest" href="../images/favicons/manifest.json" /> | ||
<link rel="mask-icon" href="../images/favicons/safari-pinned-tab.svg" color="#000" /> | ||
<link rel="icon" href="../images/favicons/favicon.ico" /> | ||
<meta name="msapplication-config" content="../images/favicons/browserconfig.xml" /> | ||
<meta name="theme-color" content="#000" /> | ||
<!-- | ||
`ods-charts.js` is already imported by the iframe. However, it is imported here too to access the enums that are used in `index.js`. | ||
--> | ||
<script type="text/javascript" src="../../dist/ods-charts.js"></script> | ||
<script type="module" src="./index.js"></script> | ||
</head> | ||
<body> | ||
<header data-bs-theme="dark"> | ||
<nav class="navbar navbar-expand-lg" aria-label="Global navigation"> | ||
<div class="container-xxl"> | ||
<div class="navbar-brand me-auto me-lg-4"> | ||
<a class="stretched-link" href="./"> | ||
<img src="../images/orange-logo.svg" width="50" height="50" alt="ODS Charts - Back to Home" loading="lazy" /> | ||
</a> | ||
<h1 class="title">Orange Design System Charts</h1> | ||
</div> | ||
</div> | ||
</nav> | ||
</header> | ||
<main> | ||
<div class="title-bar"> | ||
<div class="container-xxl"> | ||
<h1 class="display-1">Pie charts example</h1> | ||
</div> | ||
</div> | ||
<div class="container d-flex flex-nowrap pt-3"> | ||
<div class="card w-100"> | ||
<div class="card-body"> | ||
<h5 class="card-title">Pie chart</h5> | ||
<p class="card-text">Used to show proportions rather than absolute values.</p> | ||
<div id="pieChart"></div> | ||
<script> | ||
window.addEventListener('DOMContentLoaded', () => { | ||
window.generatePieChart('pieChart'); | ||
}); | ||
</script> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
<script src="https://cdn.jsdelivr.net/npm/boosted@5.3.3/dist/js/boosted.bundle.min.js" integrity="sha384-3RoJImQ+Yz4jAyP6xW29kJhqJOE3rdjuu9wkNycjCuDnGAtC/crm79mLcwj1w2o/" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/tarteaucitronjs@1.17.0/tarteaucitron.min.js" integrity="sha384-g6Xxn1zA15svldHyZ/Ow+wUUeRxHf/v7eOOO2sMafcnMPFD25n80Yz/3bbhJBSoN" crossorigin="anonymous"></script> | ||
<script src="../assets/tarteaucitron-config.js"></script> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.