- <!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>
- html,
- body {
- height: 100%;
- width: 100%;
- margin: 0;
- padding: 0;
- }
-
- #myChart {
- height: 100%;
- width: 100%;
- min-height: 150px;
- }
-
- .zc-ref {
- display: none;
- }
- </style>
- </head>
-
- <body>
- <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
- <script>
- ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
- let chartConfig = {
- type: 'chord',
- title: {
- textAlign: 'left'
- },
- options: {
- style: {
- chord: {
- alpha: 0.5,
- borderWidth: '2px',
- hoverState: {
- alpha: 1
- },
- tooltip: {
- textChord: '%text-destination receives from %text-source:%value-destination and sends to %text-source:%value-source',
- fontSize: '14px',
- visible: true,
- },
- },
- item: {},
- label: {
- angle: 90,
- bold: true,
- fontSize: '12px',
- offsetR: 5
- },
- tick: {
- visible: false
- },
- band: {
- tooltip: {
- text: '%text',
- fontSize: '14px',
- visible: true,
- }
- }
- },
- palette: ['#29A2CC ', '#C81313 ', '#699518 ', '#DF7525 ', '#9943C1 ', '#95540E ', '#265E96 ', '#6B7075 ', '#96C245 ', '#B5A603 '],
- anglePadding: 2,
- bandSpace: 2,
- bandWidth: 0.1,
- colorType: 'palette',
- groupOffset: 100,
- sizeFactor: 1.35
- },
- plot: {
- valueBox: {
- text: '%node-value',
- angle: 90,
- autoAlign: true,
- bold: true,
- color: '#fff',
- visible: true,
- }
- },
- series: [{
- values: [10.0, 10.0, 10.0, 10.0, 10.0, 10.0],
- text: 'Afghanistan',
- group: 1
- },
- {
- values: [10.0, 10.0, 10.0, 10.0, 10.0, 10.0],
- text: 'Iraq',
- group: 2
- },
- {
- values: [25.0, 10.0, 10.0, 10.0, 10.0, 10.0],
- text: 'Argentina',
- group: 2
- },
- {
- values: [100.0, 50.0, 30.0, 10.0, 10.0, 10.0],
- text: 'Belgium',
- group: 2
- },
- {
- values: [60.0, 50.0, 50.0, 10.0, 10.0, 10.0],
- text: 'Austria',
- group: 1
- },
- {
- values: [70.0, 70.0, 25.0, 10.0, 10.0, 10.0],
- text: 'Germany',
- group: 1
- }
- ]
- };
-
- zingchart.render({
- id: 'myChart',
- data: chartConfig,
- height: '100%',
- width: '100%'
- });
- </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"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
- </body>
-
- </html>
- html,
- body {
- height: 100%;
- width: 100%;
- margin: 0;
- padding: 0;
- }
-
- #myChart {
- height: 100%;
- width: 100%;
- min-height: 150px;
- }
-
- .zc-ref {
- display: none;
- }
- let chartConfig = {
- type: 'chord',
- title: {
- textAlign: 'left'
- },
- options: {
- style: {
- chord: {
- alpha: 0.5,
- borderWidth: '2px',
- hoverState: {
- alpha: 1
- },
- tooltip: {
- textChord: '%text-destination receives from %text-source:%value-destination and sends to %text-source:%value-source',
- fontSize: '14px',
- visible: true,
- },
- },
- item: {},
- label: {
- angle: 90,
- bold: true,
- fontSize: '12px',
- offsetR: 5
- },
- tick: {
- visible: false
- },
- band: {
- tooltip: {
- text: '%text',
- fontSize: '14px',
- visible: true,
- }
- }
- },
- palette: ['#29A2CC ', '#C81313 ', '#699518 ', '#DF7525 ', '#9943C1 ', '#95540E ', '#265E96 ', '#6B7075 ', '#96C245 ', '#B5A603 '],
- anglePadding: 2,
- bandSpace: 2,
- bandWidth: 0.1,
- colorType: 'palette',
- groupOffset: 100,
- sizeFactor: 1.35
- },
- plot: {
- valueBox: {
- text: '%node-value',
- angle: 90,
- autoAlign: true,
- bold: true,
- color: '#fff',
- visible: true,
- }
- },
- series: [{
- values: [10.0, 10.0, 10.0, 10.0, 10.0, 10.0],
- text: 'Afghanistan',
- group: 1
- },
- {
- values: [10.0, 10.0, 10.0, 10.0, 10.0, 10.0],
- text: 'Iraq',
- group: 2
- },
- {
- values: [25.0, 10.0, 10.0, 10.0, 10.0, 10.0],
- text: 'Argentina',
- group: 2
- },
- {
- values: [100.0, 50.0, 30.0, 10.0, 10.0, 10.0],
- text: 'Belgium',
- group: 2
- },
- {
- values: [60.0, 50.0, 50.0, 10.0, 10.0, 10.0],
- text: 'Austria',
- group: 1
- },
- {
- values: [70.0, 70.0, 25.0, 10.0, 10.0, 10.0],
- text: 'Germany',
- group: 1
- }
- ]
- };
-
- zingchart.render({
- id: 'myChart',
- data: chartConfig,
- height: '100%',
- width: '100%'
- });