<!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"]; // CHART CONFIG
// -----------------------------
let chartConfig = {
type: 'rankflow',
theme: 'classic',
title: {
text: "San Diego's Top Breweries",
marginBottom: '20%',
backgroundColor: '#333',
},
options: {
colorType: 'palette',
palette: [
'#590B02',
'#F29E02',
'#db7805',
'#8b2805',
'#400C12',
'#BE5905',
'#805301',
'#3f2901',
'#8e742c',
],
style: {
labelOverall: {
visible: false,
},
rankLeft: {
visible: false,
},
rankRight: {
visible: false,
},
rankOverall: {
visible: false,
},
wrapText: true,
},
},
plotarea: {
margin: '80px 20px 20px 10px',
},
scaleX: {
values: ['Price', 'Quantity', 'Variations'],
item: {
fontColor: '#000',
fontSize: '14px',
fontWeight: 'bold',
},
labels: ['Price', 'Quantity', 'Variations'],
},
source: {
text: 'Source: San Diego Reader',
},
series: [{
text: 'Societe<br>Brewing Company',
rank: 1,
ranks: [1, 7, 7],
},
{
text: 'AleSmith',
rank: 3,
ranks: [3, 3, 9],
},
{
text: 'Alpine<br>Beer Company',
rank: 5,
ranks: [5, 9, 5],
},
{
text: 'Ballast Point<br>Brewing & Spirits',
rank: 7,
ranks: [7, 5, 1],
},
{
text: 'Green Flash<br>Brewing Company',
rank: 9,
ranks: [9, 1, 3],
},
{
text: 'Pizza Port<br>Brew Co.',
rank: 2,
ranks: [2, 8, 6],
},
{
text: 'Burning Beard<br>Brewing',
rank: 4,
ranks: [4, 6, 8],
},
{
text: 'South Park<br>Brewing Co.',
rank: 8,
ranks: [8, 2, 4],
},
{
text: 'Rock Bottom<br>La Jolla',
rank: 6,
ranks: [6, 4, 2],
},
],
};
// RENDER CHARTS
// -----------------------------
zingchart.render({
id: 'myChart',
data: chartConfig,
});
</script>
</body>
</html>
// CHART CONFIG
// -----------------------------
let chartConfig = {
type: 'rankflow',
theme: 'classic',
title: {
text: "San Diego's Top Breweries",
marginBottom: '20%',
backgroundColor: '#333',
},
options: {
colorType: 'palette',
palette: [
'#590B02',
'#F29E02',
'#db7805',
'#8b2805',
'#400C12',
'#BE5905',
'#805301',
'#3f2901',
'#8e742c',
],
style: {
labelOverall: {
visible: false,
},
rankLeft: {
visible: false,
},
rankRight: {
visible: false,
},
rankOverall: {
visible: false,
},
wrapText: true,
},
},
plotarea: {
margin: '80px 20px 20px 10px',
},
scaleX: {
values: ['Price', 'Quantity', 'Variations'],
item: {
fontColor: '#000',
fontSize: '14px',
fontWeight: 'bold',
},
labels: ['Price', 'Quantity', 'Variations'],
},
source: {
text: 'Source: San Diego Reader',
},
series: [
{
text: 'Societe<br>Brewing Company',
rank: 1,
ranks: [1, 7, 7],
},
{
text: 'AleSmith',
rank: 3,
ranks: [3, 3, 9],
},
{
text: 'Alpine<br>Beer Company',
rank: 5,
ranks: [5, 9, 5],
},
{
text: 'Ballast Point<br>Brewing & Spirits',
rank: 7,
ranks: [7, 5, 1],
},
{
text: 'Green Flash<br>Brewing Company',
rank: 9,
ranks: [9, 1, 3],
},
{
text: 'Pizza Port<br>Brew Co.',
rank: 2,
ranks: [2, 8, 6],
},
{
text: 'Burning Beard<br>Brewing',
rank: 4,
ranks: [4, 6, 8],
},
{
text: 'South Park<br>Brewing Co.',
rank: 8,
ranks: [8, 2, 4],
},
{
text: 'Rock Bottom<br>La Jolla',
rank: 6,
ranks: [6, 4, 2],
},
],
};
// RENDER CHARTS
// -----------------------------
zingchart.render({
id: 'myChart',
data: chartConfig,
});