<!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 {
width: 100%;
height: 100%;
min-height: 530px;
}
.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: 'rankflow',
title: {
text: 'Tech Rankings According to Stack Overflow Developers Survey and Payscale.com',
fontFamily: 'Tahoma',
fontSize: '17px',
wrapText: "true"
},
options: {
colorType: 'palette',
palette: [
'#40beeb',
'#305f74',
'#4492a8',
'#8e8e8e',
'#dddddd',
'#83deff',
'#086893',
'#85bdcd',
],
},
plot: {
tooltip: {
borderRadius: '5px',
fontFamily: 'Tahoma',
fontSize: '10px',
},
},
plotarea: {
margin: '40 20 20 20',
},
scaleX: {
values: ['Trending on Stack Overflow', 'Salary'],
item: {
color: 'black',
fontFamily: 'Tahoma',
},
},
series: [{
text: 'Java',
backgroundColor: '#40beeb',
palette: 0,
rank: 1,
ranks: [2, 2],
},
{
text: 'Javascript',
backgroundColor: '#305f74',
palette: 1,
rank: 2,
ranks: [1, 3],
},
{
text: 'Python',
backgroundColor: '#8e8e8e',
palette: 3,
rank: 3,
ranks: [4, 1],
},
{
text: 'Android',
backgroundColor: '#4492a8',
palette: 2,
rank: 4,
ranks: [3, 6],
},
{
text: 'C#',
backgroundColor: '#dddddd',
palette: 4,
rank: 5,
ranks: [5, 7],
},
{
text: 'C++',
backgroundColor: '#85bdcd',
palette: 7,
rank: 6,
ranks: [8, 5],
},
{
text: 'IOS',
backgroundColor: '#85bdcd',
palette: 7,
rank: 7,
ranks: [10, 4],
},
{
text: 'PHP',
backgroundColor: '#83deff',
palette: 5,
rank: 8,
ranks: [6, 8],
},
{
text: 'Jquery',
backgroundColor: '#086893',
palette: 6,
rank: 9,
ranks: [7, 9],
},
{
text: 'HTML',
backgroundColor: '#85bdcd',
palette: 7,
rank: 10,
ranks: [9, 10],
},
],
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
width: '100%',
});
</script>
</body>
</html>
let chartConfig = {
type: 'rankflow',
title: {
text: 'Tech Rankings According to Stack Overflow Developers Survey and Payscale.com',
fontFamily: 'Tahoma',
fontSize: '17px',
wrapText: "true"
},
options: {
colorType: 'palette',
palette: [
'#40beeb',
'#305f74',
'#4492a8',
'#8e8e8e',
'#dddddd',
'#83deff',
'#086893',
'#85bdcd',
],
},
plot: {
tooltip: {
borderRadius: '5px',
fontFamily: 'Tahoma',
fontSize: '10px',
},
},
plotarea: {
margin: '40 20 20 20',
},
scaleX: {
values: ['Trending on Stack Overflow', 'Salary'],
item: {
color: 'black',
fontFamily: 'Tahoma',
},
},
series: [
{
text: 'Java',
backgroundColor: '#40beeb',
palette: 0,
rank: 1,
ranks: [2, 2],
},
{
text: 'Javascript',
backgroundColor: '#305f74',
palette: 1,
rank: 2,
ranks: [1, 3],
},
{
text: 'Python',
backgroundColor: '#8e8e8e',
palette: 3,
rank: 3,
ranks: [4, 1],
},
{
text: 'Android',
backgroundColor: '#4492a8',
palette: 2,
rank: 4,
ranks: [3, 6],
},
{
text: 'C#',
backgroundColor: '#dddddd',
palette: 4,
rank: 5,
ranks: [5, 7],
},
{
text: 'C++',
backgroundColor: '#85bdcd',
palette: 7,
rank: 6,
ranks: [8, 5],
},
{
text: 'IOS',
backgroundColor: '#85bdcd',
palette: 7,
rank: 7,
ranks: [10, 4],
},
{
text: 'PHP',
backgroundColor: '#83deff',
palette: 5,
rank: 8,
ranks: [6, 8],
},
{
text: 'Jquery',
backgroundColor: '#086893',
palette: 6,
rank: 9,
ranks: [7, 9],
},
{
text: 'HTML',
backgroundColor: '#85bdcd',
palette: 7,
rank: 10,
ranks: [9, 10],
},
],
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
width: '100%',
});