• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. <style></style>
    10. </head>
    11.  
    12. <body>
    13. <div id="myChart"></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. let chartConfig = {
    17. gui: {
    18. contextMenu: {
    19. button: {
    20. visible: true
    21. }
    22. }
    23. },
    24. graphset: [{
    25. type: 'bar',
    26. title: {
    27. text: 'Context Menu Button'
    28. },
    29. subtitle: {
    30. text: 'Click the hamburger icon.',
    31. fontWeight: 'normal'
    32. },
    33. plot: {
    34. barsSpaceLeft: '15%',
    35. barsSpaceRight: '15%',
    36. borderRadius: '3px'
    37. },
    38. scaleX: {
    39. labels: ["2010", "2011", "2012", "2013", "2014", "2015", "2016"]
    40. },
    41. scaleY: {
    42. values: '0:100:20',
    43. guide: {
    44. lineStyle: 'dotted'
    45. }
    46. },
    47. legend: {
    48. borderWidth: 1,
    49. borderRadius: '3px',
    50. marker: {
    51. borderRadius: '3px'
    52. }
    53. },
    54. series: [{
    55. values: [35, 42, 67, 89, 25, 34, 67],
    56. text: 'Alpha',
    57. backgroundColor: '#666699'
    58. },
    59. {
    60. values: [31, 29, 59, 91, 26, 42, 79],
    61. text: 'Beta',
    62. backgroundColor: '#9494b8'
    63. },
    64. {
    65. values: [36, 33, 77, 99, 34, 32, 84],
    66. text: 'Gamma',
    67. backgroundColor: '#c2c2d6'
    68. }
    69. ]
    70. }]
    71. };
    72.  
    73. zingchart.render({
    74. id: 'myChart',
    75. data: chartConfig,
    76. height: 400,
    77. width: '100%'
    78. });
    79. </script>
    80. </body>
    81.  
    82. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. </head>
    10.  
    11. <body>
    12. <div id="myChart"></div>
    13. </body>
    14.  
    15. </html>
    1.  
    1. let chartConfig = {
    2. gui: {
    3. contextMenu: {
    4. button: {
    5. visible: true
    6. }
    7. }
    8. },
    9. graphset: [{
    10. type: 'bar',
    11. title: {
    12. text: 'Context Menu Button'
    13. },
    14. subtitle: {
    15. text: 'Click the hamburger icon.',
    16. fontWeight: 'normal'
    17. },
    18. plot: {
    19. barsSpaceLeft: '15%',
    20. barsSpaceRight: '15%',
    21. borderRadius: '3px'
    22. },
    23. scaleX: {
    24. labels: ["2010", "2011", "2012", "2013", "2014", "2015", "2016"]
    25. },
    26. scaleY: {
    27. values: '0:100:20',
    28. guide: {
    29. lineStyle: 'dotted'
    30. }
    31. },
    32. legend: {
    33. borderWidth: 1,
    34. borderRadius: '3px',
    35. marker: {
    36. borderRadius: '3px'
    37. }
    38. },
    39. series: [{
    40. values: [35, 42, 67, 89, 25, 34, 67],
    41. text: 'Alpha',
    42. backgroundColor: '#666699'
    43. },
    44. {
    45. values: [31, 29, 59, 91, 26, 42, 79],
    46. text: 'Beta',
    47. backgroundColor: '#9494b8'
    48. },
    49. {
    50. values: [36, 33, 77, 99, 34, 32, 84],
    51. text: 'Gamma',
    52. backgroundColor: '#c2c2d6'
    53. }
    54. ]
    55. }]
    56. };
    57.  
    58. zingchart.render({
    59. id: 'myChart',
    60. data: chartConfig,
    61. height: 400,
    62. width: '100%'
    63. });