- <!DOCTYPE html>
- <html>
-
- <head>
- <meta charset="utf-8">
- <title>ZingSoft Demo</title>
- <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
- <style>
- html,
- body {
- margin: 0;
- padding: 0;
- width: 100%;
- height: 100%;
- }
-
- .chart--container {
- margin: auto;
- min-height: 150px;
- width: 640px;
- height: 160px;
- }
-
- .zc-ref {
- display: none;
- }
- </style>
- </head>
-
- <body>
- <div id="myChart" class="chart--container">
- <a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a>
- </div>
- <script>
- ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
- let chartConfig = {
- layout: '2x2',
- graphset: [{
- type: 'scorecard',
- options: {
- value: {
- text: '1,000'
- },
- title: {
- text: 'ZingPoints'
- },
- bars: [{
- text: 'Christopher',
- value: '675'
- },
- {
- text: 'Aaron',
- value: '50'
- },
- {
- text: 'Nick',
- value: '275'
- }
- ],
- icon: {
- backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/clock.png',
- backgroundScale: 0.95
- }
- },
- plotarea: {
- margin: '10px'
- }
- },
- {
- type: 'scorecard',
- options: {
- value: {
- text: '5,042',
- color: '#0a0'
- },
- icon: {
- backgroundColor: '#8eba31 #8dcd41',
- backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/layers.png',
- backgroundScale: 0.75,
- borderColor: '#6fb023'
- },
- bars: [{
- text: 'Certainty of Units?',
- value: '5,042'
- }],
- title: {
- text: 'Size of Universe',
- color: '#0a0'
- }
- },
- plotarea: {
- margin: '10px'
- }
- },
- {
- type: 'scorecard',
- options: {
- value: {
- text: '2,074',
- color: '#a0a'
- },
- bars: [{
- text: 'Staring into the Abyss',
- value: 1574
- },
- {
- text: 'Lazy Days',
- value: 500
- }
- ],
- icon: {
- backgroundColor: '#ffc90e #ffa100',
- backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/calendar.png',
- backgroundScale: 0.75,
- borderColor: '#ff7200'
- },
- title: {
- text: 'Days Since Last Productive Day'
- }
- },
- plotarea: {
- margin: '10px'
- }
- },
- {
- type: 'scorecard',
- borderRight: '1px solid #ccc',
- borderBottom: '1px solid #ccc',
- options: {
- value: {
- text: '632'
- },
- bars: [{
- text: 'Bar 1: 432 wins',
- value: 432
- },
- {
- text: 'Bar 2: 130 wins',
- value: 130
- },
- {
- text: 'Bar 3: 70 wins',
- value: 70
- }
- ],
- icon: {
- backgroundColor: '#c90eff #a100ff',
- backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/email.png',
- backgroundScale: 0.75,
- borderColor: '#7200ff'
- },
- title: {
- text: 'Battle of the Bars'
- }
- },
- plotarea: {
- margin: '10px'
- }
- }
- ]
- };
-
- zingchart.render({
- id: 'myChart',
- data: chartConfig,
- height: '160px',
- width: '640px',
- modules: 'scorecard'
- });
- </script>
- </body>
-
- </html>
- <!DOCTYPE html>
- <html>
-
- <head>
- <meta charset="utf-8">
- <title>ZingSoft Demo</title>
- <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
- </head>
-
- <body>
- <div id="myChart" class="chart--container">
- <a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a>
- </div>
- </body>
-
- </html>
- html,
- body {
- margin: 0;
- padding: 0;
- width: 100%;
- height: 100%;
- }
-
- .chart--container {
- margin: auto;
- min-height: 150px;
- width: 640px;
- height: 160px;
- }
-
- .zc-ref {
- display: none;
- }
- let chartConfig = {
- layout: '2x2',
- graphset: [{
- type: 'scorecard',
- options: {
- value: {
- text: '1,000'
- },
- title: {
- text: 'ZingPoints'
- },
- bars: [{
- text: 'Christopher',
- value: '675'
- },
- {
- text: 'Aaron',
- value: '50'
- },
- {
- text: 'Nick',
- value: '275'
- }
- ],
- icon: {
- backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/clock.png',
- backgroundScale: 0.95
- }
- },
- plotarea: {
- margin: '10px'
- }
- },
- {
- type: 'scorecard',
- options: {
- value: {
- text: '5,042',
- color: '#0a0'
- },
- icon: {
- backgroundColor: '#8eba31 #8dcd41',
- backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/layers.png',
- backgroundScale: 0.75,
- borderColor: '#6fb023'
- },
- bars: [{
- text: 'Certainty of Units?',
- value: '5,042'
- }],
- title: {
- text: 'Size of Universe',
- color: '#0a0'
- }
- },
- plotarea: {
- margin: '10px'
- }
- },
- {
- type: 'scorecard',
- options: {
- value: {
- text: '2,074',
- color: '#a0a'
- },
- bars: [{
- text: 'Staring into the Abyss',
- value: 1574
- },
- {
- text: 'Lazy Days',
- value: 500
- }
- ],
- icon: {
- backgroundColor: '#ffc90e #ffa100',
- backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/calendar.png',
- backgroundScale: 0.75,
- borderColor: '#ff7200'
- },
- title: {
- text: 'Days Since Last Productive Day'
- }
- },
- plotarea: {
- margin: '10px'
- }
- },
- {
- type: 'scorecard',
- borderRight: '1px solid #ccc',
- borderBottom: '1px solid #ccc',
- options: {
- value: {
- text: '632'
- },
- bars: [{
- text: 'Bar 1: 432 wins',
- value: 432
- },
- {
- text: 'Bar 2: 130 wins',
- value: 130
- },
- {
- text: 'Bar 3: 70 wins',
- value: 70
- }
- ],
- icon: {
- backgroundColor: '#c90eff #a100ff',
- backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/email.png',
- backgroundScale: 0.75,
- borderColor: '#7200ff'
- },
- title: {
- text: 'Battle of the Bars'
- }
- },
- plotarea: {
- margin: '10px'
- }
- }
- ]
- };
-
- zingchart.render({
- id: 'myChart',
- data: chartConfig,
- height: '160px',
- width: '640px',
- modules: 'scorecard'
- });