• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. <style>
    9. html,
    10. body {
    11. margin: 0;
    12. padding: 0;
    13. width: 100%;
    14. height: 100%;
    15. }
    16.  
    17. .chart--container {
    18. min-height: 150px;
    19. width: 100%;
    20. height: 100%;
    21. }
    22.  
    23. .zc-ref {
    24. display: none;
    25. }
    26. </style>
    27. </head>
    28.  
    29. <body>
    30. <!-- CHART CONTAINER -->
    31. <div id="myChart" class="chart--container">
    32. <a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a>
    33. </div>
    34. <script>
    35. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    36. let myConfig = {
    37. history: { // allows for navigation of drilldown charts
    38. backgroundColor: '#ee5e64',
    39. item: {
    40. backgroundColor: '#e6f04b',
    41. size: '10px',
    42. },
    43. itemOff: {
    44. backgroundColor: '#333333'
    45. },
    46. borderColor: '#f60',
    47. borderWidth: 2,
    48. callout: true,
    49. calloutHeight: 30,
    50. calloutWidth: 0,
    51. calloutTip: {
    52. type: 'circle',
    53. backgroundColor: '#fff',
    54. borderWidth: 2,
    55. borderColor: '#f60',
    56. size: 5,
    57. shadow: true,
    58.  
    59. mediaRules: [{
    60. maxWidth: 400,
    61. backgroundColor: 'blue'
    62. }]
    63. }
    64. },
    65. graphset: [{
    66. id: 'd1',
    67. type: 'pie',
    68. subtitle: {
    69. text: 'Click a pie slice to drill down to the next level',
    70. y: '2%'
    71. },
    72. plot: {
    73. detach: false,
    74. valueBox: {
    75. text: '%t<br>%npv%' // see tokens for details on chart data populated text
    76. }
    77. },
    78. series: [
    79. /* The code for the charts associated to the url attribute are inlcuded at the bottom*/
    80. {
    81. values: [80],
    82. url: '//cdn.zingchart.com/resources/history-series-1.txt',
    83. target: 'graph=d1'
    84. },
    85. {
    86. values: [65],
    87. url: '//cdn.zingchart.com/resources/history-series-2.txt',
    88. target: 'graph=d1'
    89. },
    90. {
    91. values: [60],
    92. url: '//cdn.zingchart.com/resources/history-series-3.txt',
    93. target: 'graph=d1'
    94. },
    95. {
    96. values: [50],
    97. url: '//cdn.zingchart.com/resources/history-series-4.txt',
    98. target: 'graph=d1'
    99. },
    100. {
    101. values: [48],
    102. url: '//cdn.zingchart.com/resources/history-series-5.txt',
    103. target: 'graph=d1'
    104. }
    105. ]
    106. }]
    107. };
    108.  
    109. zingchart.render({
    110. id: 'myChart',
    111. data: myConfig,
    112. height: '100%',
    113. width: '100%'
    114. });
    115. </script>
    116. </body>
    117.  
    118. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. </head>
    9.  
    10. <body>
    11. <!-- CHART CONTAINER -->
    12. <div id="myChart" class="chart--container">
    13. <a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a>
    14. </div>
    15. </body>
    16.  
    17. </html>
    1. html,
    2. body {
    3. margin: 0;
    4. padding: 0;
    5. width: 100%;
    6. height: 100%;
    7. }
    8.  
    9. .chart--container {
    10. min-height: 150px;
    11. width: 100%;
    12. height: 100%;
    13. }
    14.  
    15. .zc-ref {
    16. display: none;
    17. }
    1. let myConfig = {
    2. history: { // allows for navigation of drilldown charts
    3. backgroundColor: '#ee5e64',
    4. item: {
    5. backgroundColor: '#e6f04b',
    6. size: '10px',
    7. },
    8. itemOff: {
    9. backgroundColor: '#333333'
    10. },
    11. borderColor: '#f60',
    12. borderWidth: 2,
    13. callout: true,
    14. calloutHeight: 30,
    15. calloutWidth: 0,
    16. calloutTip: {
    17. type: 'circle',
    18. backgroundColor: '#fff',
    19. borderWidth: 2,
    20. borderColor: '#f60',
    21. size: 5,
    22. shadow: true,
    23.  
    24. mediaRules: [{
    25. maxWidth: 400,
    26. backgroundColor: 'blue'
    27. }]
    28. }
    29. },
    30. graphset: [{
    31. id: 'd1',
    32. type: 'pie',
    33. subtitle: {
    34. text: 'Click a pie slice to drill down to the next level',
    35. y: '2%'
    36. },
    37. plot: {
    38. detach: false,
    39. valueBox: {
    40. text: '%t<br>%npv%' // see tokens for details on chart data populated text
    41. }
    42. },
    43. series: [
    44. /* The code for the charts associated to the url attribute are inlcuded at the bottom*/
    45. {
    46. values: [80],
    47. url: '//cdn.zingchart.com/resources/history-series-1.txt',
    48. target: 'graph=d1'
    49. },
    50. {
    51. values: [65],
    52. url: '//cdn.zingchart.com/resources/history-series-2.txt',
    53. target: 'graph=d1'
    54. },
    55. {
    56. values: [60],
    57. url: '//cdn.zingchart.com/resources/history-series-3.txt',
    58. target: 'graph=d1'
    59. },
    60. {
    61. values: [50],
    62. url: '//cdn.zingchart.com/resources/history-series-4.txt',
    63. target: 'graph=d1'
    64. },
    65. {
    66. values: [48],
    67. url: '//cdn.zingchart.com/resources/history-series-5.txt',
    68. target: 'graph=d1'
    69. }
    70. ]
    71. }]
    72. };
    73.  
    74. zingchart.render({
    75. id: 'myChart',
    76. data: myConfig,
    77. height: '100%',
    78. width: '100%'
    79. });