• 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. type: 'line',
    18. crosshairX: {
    19. plotLabel: {
    20. multiple: true,
    21. borderRadius: 3,
    22. fontFamily: 'Georgia',
    23. padding: '5 10'
    24. }
    25. },
    26. series: [{
    27. values: [22, 34, 55, 71, 5, 19, 50, 95],
    28. lineColor: '#00BCD4',
    29. marker: {
    30. backgroundColor: '#00BCD4'
    31. },
    32.  
    33. guideLabel: {
    34. text: 'Alpha: %v',
    35. backgroundColor: '#E0F7FA',
    36. borderColor: '#006064',
    37. fontColor: '#006064',
    38. lineStyle: 'dotted',
    39. callout: true,
    40. calloutHeight: 15,
    41. calloutPosition: 'bottom',
    42. calloutWidth: 0,
    43. calloutTip: {
    44. type: 'circle',
    45. backgroundColor: '#fff',
    46. borderWidth: 2,
    47. borderColor: '#f60',
    48. offsetX: -50,
    49. offsetY: -60,
    50. size: 5,
    51. },
    52. }
    53. },
    54. {
    55. values: [35, 42, 67, 89, 25, 34, 67, 85],
    56. lineColor: '#8BC34A',
    57. marker: {
    58. backgroundColor: '#8BC34A'
    59. },
    60.  
    61. guideLabel: {
    62. text: 'Beta: %v',
    63. backgroundColor: '#F1F8E9',
    64. borderColor: '#33691E',
    65. fontColor: '#33691E',
    66. lineStyle: 'dashed',
    67. callout: true,
    68. calloutHeight: 15,
    69. calloutPosition: 'bottom',
    70. calloutWidth: 0,
    71. calloutTip: {
    72. type: 'circle',
    73. backgroundColor: '#fff',
    74. borderWidth: 2,
    75. borderColor: '#f60',
    76. offsetX: -50,
    77. offsetY: -60,
    78. size: 5,
    79. },
    80. },
    81. },
    82. {
    83. values: [50, 21, 45, 75, 60, 59, 37, 64],
    84. lineColor: '#FFC107',
    85. marker: {
    86. backgroundColor: '#FFC107'
    87. },
    88.  
    89. guideLabel: {
    90. text: 'Gamma: %v',
    91. backgroundColor: '#FFF8E1',
    92. borderColor: '#FF6F00',
    93. fontColor: '#FF6F00',
    94. lineStyle: 'dashdot',
    95. callout: true,
    96. calloutHeight: 15,
    97. calloutPosition: 'bottom',
    98. calloutWidth: 0,
    99. calloutTip: {
    100. type: 'circle',
    101. backgroundColor: '#fff',
    102. borderWidth: 2,
    103. borderColor: '#f60',
    104. offsetX: -50,
    105. offsetY: -60,
    106. size: 5,
    107. },
    108. },
    109. }
    110. ],
    111.  
    112. plot: {
    113. aspect: 'spline',
    114. tooltip: {
    115. visible: false
    116. }
    117. }
    118. };
    119.  
    120. zingchart.render({
    121. id: 'myChart',
    122. data: chartConfig,
    123. height: 400,
    124. width: '100%'
    125. });
    126. </script>
    127. </body>
    128.  
    129. </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. type: 'line',
    3. crosshairX: {
    4. plotLabel: {
    5. multiple: true,
    6. borderRadius: 3,
    7. fontFamily: 'Georgia',
    8. padding: '5 10'
    9. }
    10. },
    11. series: [{
    12. values: [22, 34, 55, 71, 5, 19, 50, 95],
    13. lineColor: '#00BCD4',
    14. marker: {
    15. backgroundColor: '#00BCD4'
    16. },
    17.  
    18. guideLabel: {
    19. text: 'Alpha: %v',
    20. backgroundColor: '#E0F7FA',
    21. borderColor: '#006064',
    22. fontColor: '#006064',
    23. lineStyle: 'dotted',
    24. callout: true,
    25. calloutHeight: 15,
    26. calloutPosition: 'bottom',
    27. calloutWidth: 0,
    28. calloutTip: {
    29. type: 'circle',
    30. backgroundColor: '#fff',
    31. borderWidth: 2,
    32. borderColor: '#f60',
    33. offsetX: -50,
    34. offsetY: -60,
    35. size: 5,
    36. },
    37. }
    38. },
    39. {
    40. values: [35, 42, 67, 89, 25, 34, 67, 85],
    41. lineColor: '#8BC34A',
    42. marker: {
    43. backgroundColor: '#8BC34A'
    44. },
    45.  
    46. guideLabel: {
    47. text: 'Beta: %v',
    48. backgroundColor: '#F1F8E9',
    49. borderColor: '#33691E',
    50. fontColor: '#33691E',
    51. lineStyle: 'dashed',
    52. callout: true,
    53. calloutHeight: 15,
    54. calloutPosition: 'bottom',
    55. calloutWidth: 0,
    56. calloutTip: {
    57. type: 'circle',
    58. backgroundColor: '#fff',
    59. borderWidth: 2,
    60. borderColor: '#f60',
    61. offsetX: -50,
    62. offsetY: -60,
    63. size: 5,
    64. },
    65. },
    66. },
    67. {
    68. values: [50, 21, 45, 75, 60, 59, 37, 64],
    69. lineColor: '#FFC107',
    70. marker: {
    71. backgroundColor: '#FFC107'
    72. },
    73.  
    74. guideLabel: {
    75. text: 'Gamma: %v',
    76. backgroundColor: '#FFF8E1',
    77. borderColor: '#FF6F00',
    78. fontColor: '#FF6F00',
    79. lineStyle: 'dashdot',
    80. callout: true,
    81. calloutHeight: 15,
    82. calloutPosition: 'bottom',
    83. calloutWidth: 0,
    84. calloutTip: {
    85. type: 'circle',
    86. backgroundColor: '#fff',
    87. borderWidth: 2,
    88. borderColor: '#f60',
    89. offsetX: -50,
    90. offsetY: -60,
    91. size: 5,
    92. },
    93. },
    94. }
    95. ],
    96.  
    97. plot: {
    98. aspect: 'spline',
    99. tooltip: {
    100. visible: false
    101. }
    102. }
    103. };
    104.  
    105. zingchart.render({
    106. id: 'myChart',
    107. data: chartConfig,
    108. height: 400,
    109. width: '100%'
    110. });