12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <meta name="description" content="Example showing how to use TChartJS">
- <meta name="author" content="silvioprog">
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
- <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js" integrity="sha256-oSgtFCCmHWRPQ/JmR4OoZ3Xke1Pw4v50uh6pLcu+fIc=" crossorigin="anonymous"></script>
- <script src="js/demopie.js"></script>
- <title>TChartJS example</title>
- <style>
- .title {
- margin: 20px 0 20px 0
- }
- #canvas-holder {
- width: 100%;
- margin-top: 50px;
- text-align: center;
- }
- #chartjs-tooltip {
- opacity: 1;
- position: absolute;
- background: rgba(0, 0, 0, .7);
- color: white;
- border-radius: 3px;
- -webkit-transition: all .1s ease;
- transition: all .1s ease;
- pointer-events: none;
- -webkit-transform: translate(-50%, 0);
- transform: translate(-50%, 0);
- }
- .chartjs-tooltip-key {
- display: inline-block;
- width: 10px;
- height: 10px;
- margin-right: 10px;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <h3 class="title">
- TChartJS <small class="text-muted">Create pie charts using Pas2JS & ChartJS (<a href="demopie.lpr">view source</a>)</small>
- </h3>
- <div id="canvas-holder" style="width: 300px;">
- <canvas id="chart-area" width="300" height="300"></canvas>
- <div id="chartjs-tooltip">
- <table></table>
- </div>
- </div>
- </div>
- <script>
- rtl.run();
- </script>
- </body>
- </html>
|