<!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> .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 = { globals: { fontFamily: 'Lucida Sans Unicode' }, layout: '2x2', graphset: [{ type: 'scorecard', border: '1px solid #ccc', options: { value: { text: '1,450', color: '#a00' }, icon: { backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/clock.png', backgroundScale: 0.75 }, title: { text: 'Followers', color: '#a00' } }, plotarea: { margin: '10px' } }, { type: 'scorecard', border: '1px solid #ccc', borderTop: '1px solid #ccc', borderBottom: '1px solid #ccc', borderRight: '1px solid #ccc', 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' }, title: { text: 'Profile Views', color: '#0a0' } }, plotarea: { margin: '10px' } }, { type: 'scorecard', borderRight: '1px solid #ccc', borderBottom: '1px solid #ccc', borderLeft: '1px solid #ccc', options: { value: { text: '2,074', color: '#a0a' }, bars: [{ text: 'FaceBook Views', value: 1574 }, { text: 'Pinterest Views', value: 500 } ], icon: { backgroundColor: '#ffc90e #ffa100', backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/calendar.png', backgroundScale: 0.75, borderColor: '#ff7200' }, title: { text: 'Opportunity Views' } }, plotarea: { margin: '10px' } }, { type: 'scorecard', borderRight: '1px solid #ccc', borderBottom: '1px solid #ccc', options: { value: { text: '632' }, bars: [{ text: 'FaceBook Shares', value: 432 }, { text: 'Pinterest Shares', value: 130 }, { text: 'Other Shares', value: 70 } ], icon: { backgroundColor: '#c90eff #a100ff', backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/email.png', backgroundScale: 0.75, borderColor: '#7200ff' }, title: { text: 'Shares' } }, 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>
.chart--container { margin: auto; min-height: 150px; width: 640px; height: 160px; } .zc-ref { display: none; }
let chartConfig = { globals: { fontFamily: 'Lucida Sans Unicode' }, layout: '2x2', graphset: [{ type: 'scorecard', border: '1px solid #ccc', options: { value: { text: '1,450', color: '#a00' }, icon: { backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/clock.png', backgroundScale: 0.75 }, title: { text: 'Followers', color: '#a00' } }, plotarea: { margin: '10px' } }, { type: 'scorecard', border: '1px solid #ccc', borderTop: '1px solid #ccc', borderBottom: '1px solid #ccc', borderRight: '1px solid #ccc', 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' }, title: { text: 'Profile Views', color: '#0a0' } }, plotarea: { margin: '10px' } }, { type: 'scorecard', borderRight: '1px solid #ccc', borderBottom: '1px solid #ccc', borderLeft: '1px solid #ccc', options: { value: { text: '2,074', color: '#a0a' }, bars: [{ text: 'FaceBook Views', value: 1574 }, { text: 'Pinterest Views', value: 500 } ], icon: { backgroundColor: '#ffc90e #ffa100', backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/calendar.png', backgroundScale: 0.75, borderColor: '#ff7200' }, title: { text: 'Opportunity Views' } }, plotarea: { margin: '10px' } }, { type: 'scorecard', borderRight: '1px solid #ccc', borderBottom: '1px solid #ccc', options: { value: { text: '632' }, bars: [{ text: 'FaceBook Shares', value: 432 }, { text: 'Pinterest Shares', value: 130 }, { text: 'Other Shares', value: 70 } ], icon: { backgroundColor: '#c90eff #a100ff', backgroundImage: 'https://app.zingsoft.com/api/file/73CNKMOJ/email.png', backgroundScale: 0.75, borderColor: '#7200ff' }, title: { text: 'Shares' } }, plotarea: { margin: '10px' } } ] }; zingchart.render({ id: 'myChart', data: chartConfig, height: '160px', width: '640px', modules: 'scorecard' });