<!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>
@import 'https://fonts.googleapis.com/css?family=Montserrat';
@import 'https://fonts.googleapis.com/css?family=Lato:400';
.chart--container {
min-height: 530px;
width: 100%;
height: 100%;
}
.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 = {
type: 'vbar3d',
'3dAspect': {
depth: 90,
true3d: 1,
},
backgroundColor: '#FBFCFE',
title: {
text: 'Revenue',
fontColor: '#1E5D9E',
fontFamily: 'Lato',
padding: '15px',
},
legend: {
alpha: 1,
borderColor: '#CCCCCC',
marginRight: '50px',
marginTop: '55px',
shadow: false,
toggleAction: 'remove',
},
plot: {
tooltip: {
visible: false,
},
aspect: 'cylinder',
backgroundColor: '#FBFCFE',
barsOverlap: '100%',
borderWidth: '0px',
marker: {
size: '4px',
},
mode: 'normal',
stacked: true,
stackType: '100%',
},
plotarea: {
backgroundColor: 'transparent',
margin: '70px 30px 50px 90px',
},
scaleX: {
backgroundColor: 'none',
guide: {
alpha: 0.25,
lineColor: '#1E5D9E',
lineGapSize: '4px',
lineStyle: 'dotted',
rules: [{
rule: '%i == 0',
visible: false,
}, ],
visible: true,
},
item: {
padding: '5px',
fontColor: '#1E5D9E',
fontFamily: 'Montserrat',
},
label: {
text: 'Years',
},
margin: '20px',
labels: [2017, 2018, 2019, 2020],
lineWidth: '0px',
offsetY: '-20px',
padding: '20px',
tick: {
lineColor: '#D1D3D4',
rules: [{
rule: '%i == 0',
visible: false,
}, ],
},
},
scaleY: {
values: '0:180:20',
format: '$%v',
guide: {
alpha: 0.25,
lineColor: '#1E5D9E',
lineGapSize: '4px',
lineStyle: 'dotted',
rules: [{
rule: '%i == 0',
visible: false,
}, ],
visible: true,
},
item: {
padding: '0 10 0 0',
fontColor: '#1E5D9E',
fontFamily: 'Montserrat',
},
label: {
text: 'Revenue (In Millions)',
},
lineWidth: '0px',
maxValue: 100,
tick: {
lineColor: '#D1D3D4',
rules: [{
rule: '%i == 0',
visible: false,
}, ],
},
},
series: [{
text: 'Internal',
values: [70, 100, 110, 141],
backgroundColor: '#00BAF2',
lineColor: '#00BAF2',
lineWidth: '1px',
marker: {
backgroundColor: '#00BAF2',
},
},
{
text: 'External',
values: [30, 50, 60, 75],
backgroundColor: '#E80C60',
lineColor: '#E80C60',
lineWidth: '1px',
marker: {
backgroundColor: '#E80C60',
},
},
{
text: 'Outbound',
values: [20, 30, 40, 39],
backgroundColor: '#9B26AF',
lineColor: '#9B26AF',
lineWidth: '1px',
marker: {
backgroundColor: '#9B26AF',
},
},
],
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
});
</script>
</body>
</html>
let chartConfig = {
type: 'vbar3d',
'3dAspect': {
depth: 90,
true3d: 1,
},
backgroundColor: '#FBFCFE',
title: {
text: 'Revenue',
fontColor: '#1E5D9E',
fontFamily: 'Lato',
padding: '15px',
},
legend: {
alpha: 1,
borderColor: '#CCCCCC',
marginRight: '50px',
marginTop: '55px',
shadow: false,
toggleAction: 'remove',
},
plot: {
tooltip: {
visible: false,
},
aspect: 'cylinder',
backgroundColor: '#FBFCFE',
barsOverlap: '100%',
borderWidth: '0px',
marker: {
size: '4px',
},
mode: 'normal',
stacked: true,
stackType: '100%',
},
plotarea: {
backgroundColor: 'transparent',
margin: '70px 30px 50px 90px',
},
scaleX: {
backgroundColor: 'none',
guide: {
alpha: 0.25,
lineColor: '#1E5D9E',
lineGapSize: '4px',
lineStyle: 'dotted',
rules: [
{
rule: '%i == 0',
visible: false,
},
],
visible: true,
},
item: {
padding: '5px',
fontColor: '#1E5D9E',
fontFamily: 'Montserrat',
},
label: {
text: 'Years',
},
margin: '20px',
labels: [2017, 2018, 2019, 2020],
lineWidth: '0px',
offsetY: '-20px',
padding: '20px',
tick: {
lineColor: '#D1D3D4',
rules: [
{
rule: '%i == 0',
visible: false,
},
],
},
},
scaleY: {
values: '0:180:20',
format: '$%v',
guide: {
alpha: 0.25,
lineColor: '#1E5D9E',
lineGapSize: '4px',
lineStyle: 'dotted',
rules: [
{
rule: '%i == 0',
visible: false,
},
],
visible: true,
},
item: {
padding: '0 10 0 0',
fontColor: '#1E5D9E',
fontFamily: 'Montserrat',
},
label: {
text: 'Revenue (In Millions)',
},
lineWidth: '0px',
maxValue: 100,
tick: {
lineColor: '#D1D3D4',
rules: [
{
rule: '%i == 0',
visible: false,
},
],
},
},
series: [
{
text: 'Internal',
values: [70, 100, 110, 141],
backgroundColor: '#00BAF2',
lineColor: '#00BAF2',
lineWidth: '1px',
marker: {
backgroundColor: '#00BAF2',
},
},
{
text: 'External',
values: [30, 50, 60, 75],
backgroundColor: '#E80C60',
lineColor: '#E80C60',
lineWidth: '1px',
marker: {
backgroundColor: '#E80C60',
},
},
{
text: 'Outbound',
values: [20, 30, 40, 39],
backgroundColor: '#9B26AF',
lineColor: '#9B26AF',
lineWidth: '1px',
marker: {
backgroundColor: '#9B26AF',
},
},
],
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
});