<!doctype html>
<html class="zc-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 {
height: 100%;
width: 100%;
min-height: 530px;
}
.zc-ref {
display: none;
}
</style>
</head>
<body class="zc-body">
<div id="myChart" class="chart--container">
<a href="https://www.zingchart.com/" rel="noopener" class="zc-ref">Powered by ZingChart</a>
</div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"]; // DEFINE DATA
// -----------------------------
let chartData = [{
text: 'ER',
values: ['Fair', 'Poor', 'Good', 'Very Good', 'Good'],
alpha: 0.35,
aspect: 'line',
backgroundColor: 'none',
lineColor: '#999999',
lineWidth: '4px',
marker: {
alpha: 0.55,
backgroundColor: '#999999',
borderColor: '#999999',
size: '4px',
},
},
{
text: 'ENT',
values: ['Fair', 'Poor', 'Excellent', 'Excellent', 'Good'],
alpha: 0.85,
aspect: 'line',
lineColor: '#666666',
lineWidth: '4px',
marker: {
alpha: 0.55,
backgroundColor: '#666666',
borderColor: '#666666',
size: '4px',
},
},
{
text: 'O&G',
values: ['Very Good', 'Excellent', 'Very Good', 'Good', 'Excellent'],
alpha: 0.45,
aspect: 'line',
lineColor: '#BBDFFF',
lineWidth: '4px',
marker: {
alpha: 0.55,
backgroundColor: '#BBDFFF',
borderColor: '#BBDFFF',
size: '4px',
},
},
{
text: 'Pharmacy',
values: ['Poor', 'Very Good', 'Good', 'Good', 'Very Good'],
alpha: 0.85,
aspect: 'line',
lineColor: '#6fbbff',
lineWidth: '4px',
marker: {
alpha: 0.55,
backgroundColor: '#6fbbff',
borderColor: '#6fbbff',
size: '4px',
},
},
];
// CHART CONFIG
// -----------------------------
let chartConfig = {
type: 'radar',
backgroundColor: 'white',
borderBottom: '3px solid #7e7e7e',
borderColor: 'black',
borderLeft: '3px solid #7e7e7e',
borderRight: '3px solid #7e7e7e',
borderTop: '3px solid #7e7e7e',
title: {
text: 'City Hospital Performance',
backgroundColor: 'none',
fontColor: '000',
fontSize: '22px',
},
plot: {
tooltip: {
text: '%t<br>%k Is %v',
borderRadius: '3px',
shadow: false,
},
},
scaleK: {
values: ['Quality', 'Efficiency', 'Satisfaction', 'Value', 'Cost'],
backgroundColor: 'none',
guide: {
items: [{
backgroundColor: '#fff',
}, ],
lineColor: '#818181',
lineStyle: 'solid',
lineWidth: '2px',
},
item: {
paddingBottom: '15px',
paddingLeft: '30px',
fontSize: '14px',
},
tick: {
visible: false,
},
},
scaleV: {
values: ['Poor', 'Fair', 'Good', 'Very Good', 'Excellent'],
guide: {
lineStyle: 'dashed',
lineWidth: '.5px',
},
item: {
fontSize: '8px',
paddingLeft: '9.5px',
},
refLine: {
lineColor: '#818181',
lineWidth: '1px',
},
tick: {
lineColor: '#818181',
lineWidth: '.5px',
size: '10px',
},
},
series: chartData,
};
// RENDER CHARTS
// -----------------------------
zingchart.render({
id: 'myChart',
data: chartConfig,
});
</script>
</body>
</html>
// DEFINE DATA
// -----------------------------
let chartData = [
{
text: 'ER',
values: ['Fair', 'Poor', 'Good', 'Very Good', 'Good'],
alpha: 0.35,
aspect: 'line',
backgroundColor: 'none',
lineColor: '#999999',
lineWidth: '4px',
marker: {
alpha: 0.55,
backgroundColor: '#999999',
borderColor: '#999999',
size: '4px',
},
},
{
text: 'ENT',
values: ['Fair', 'Poor', 'Excellent', 'Excellent', 'Good'],
alpha: 0.85,
aspect: 'line',
lineColor: '#666666',
lineWidth: '4px',
marker: {
alpha: 0.55,
backgroundColor: '#666666',
borderColor: '#666666',
size: '4px',
},
},
{
text: 'O&G',
values: ['Very Good', 'Excellent', 'Very Good', 'Good', 'Excellent'],
alpha: 0.45,
aspect: 'line',
lineColor: '#BBDFFF',
lineWidth: '4px',
marker: {
alpha: 0.55,
backgroundColor: '#BBDFFF',
borderColor: '#BBDFFF',
size: '4px',
},
},
{
text: 'Pharmacy',
values: ['Poor', 'Very Good', 'Good', 'Good', 'Very Good'],
alpha: 0.85,
aspect: 'line',
lineColor: '#6fbbff',
lineWidth: '4px',
marker: {
alpha: 0.55,
backgroundColor: '#6fbbff',
borderColor: '#6fbbff',
size: '4px',
},
},
];
// CHART CONFIG
// -----------------------------
let chartConfig = {
type: 'radar',
backgroundColor: 'white',
borderBottom: '3px solid #7e7e7e',
borderColor: 'black',
borderLeft: '3px solid #7e7e7e',
borderRight: '3px solid #7e7e7e',
borderTop: '3px solid #7e7e7e',
title: {
text: 'City Hospital Performance',
backgroundColor: 'none',
fontColor: '000',
fontSize: '22px',
},
plot: {
tooltip: {
text: '%t<br>%k Is %v',
borderRadius: '3px',
shadow: false,
},
},
scaleK: {
values: ['Quality', 'Efficiency', 'Satisfaction', 'Value', 'Cost'],
backgroundColor: 'none',
guide: {
items: [
{
backgroundColor: '#fff',
},
],
lineColor: '#818181',
lineStyle: 'solid',
lineWidth: '2px',
},
item: {
paddingBottom: '15px',
paddingLeft: '30px',
fontSize: '14px',
},
tick: {
visible: false,
},
},
scaleV: {
values: ['Poor', 'Fair', 'Good', 'Very Good', 'Excellent'],
guide: {
lineStyle: 'dashed',
lineWidth: '.5px',
},
item: {
fontSize: '8px',
paddingLeft: '9.5px',
},
refLine: {
lineColor: '#818181',
lineWidth: '1px',
},
tick: {
lineColor: '#818181',
lineWidth: '.5px',
size: '10px',
},
},
series: chartData,
};
// RENDER CHARTS
// -----------------------------
zingchart.render({
id: 'myChart',
data: chartConfig,
});