• 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. },
    40. guideMarker: {
    41. type: 'circle',
    42. size: 10,
    43. topState: {
    44. backgroundColor: 'red',
    45. offsetX: 10,
    46. offsetY: 10
    47. }
    48. }
    49. },
    50. {
    51. values: [35, 42, 67, 89, 25, 34, 67, 85],
    52. lineColor: '#8BC34A',
    53. marker: {
    54. backgroundColor: '#8BC34A'
    55. },
    56.  
    57. guideLabel: {
    58. text: 'Beta: %v',
    59. backgroundColor: '#F1F8E9',
    60. borderColor: '#33691E',
    61. fontColor: '#33691E',
    62. lineStyle: 'dashed',
    63. },
    64. guideMarker: {
    65. type: 'triangle',
    66. size: 10,
    67. topState: {
    68. backgroundColor: 'green',
    69. offsetX: 10,
    70. offsetY: 10
    71. }
    72. }
    73. },
    74. {
    75. values: [50, 21, 45, 75, 60, 59, 37, 64],
    76. lineColor: '#FFC107',
    77. marker: {
    78. backgroundColor: '#FFC107'
    79. },
    80.  
    81. guideLabel: {
    82. text: 'Gamma: %v',
    83. backgroundColor: '#FFF8E1',
    84. borderColor: '#FF6F00',
    85. fontColor: '#FF6F00',
    86. lineStyle: 'dashdot',
    87. },
    88. guideMarker: {
    89. type: 'star6',
    90. size: 10,
    91. topState: {
    92. backgroundColor: 'blue',
    93. offsetX: 10,
    94. offsetY: 10
    95. }
    96. }
    97. }
    98. ],
    99.  
    100. plot: {
    101. aspect: 'spline',
    102. tooltip: {
    103. visible: false
    104. },
    105. guideMarker: {
    106. type: 'star6',
    107. size: 10
    108. }
    109. }
    110. };
    111.  
    112. zingchart.render({
    113. id: 'myChart',
    114. data: chartConfig,
    115. height: 400,
    116. width: '100%'
    117. });
    118. </script>
    119. </body>
    120.  
    121. </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. },
    25. guideMarker: {
    26. type: 'circle',
    27. size: 10,
    28. topState: {
    29. backgroundColor: 'red',
    30. offsetX: 10,
    31. offsetY: 10
    32. }
    33. }
    34. },
    35. {
    36. values: [35, 42, 67, 89, 25, 34, 67, 85],
    37. lineColor: '#8BC34A',
    38. marker: {
    39. backgroundColor: '#8BC34A'
    40. },
    41.  
    42. guideLabel: {
    43. text: 'Beta: %v',
    44. backgroundColor: '#F1F8E9',
    45. borderColor: '#33691E',
    46. fontColor: '#33691E',
    47. lineStyle: 'dashed',
    48. },
    49. guideMarker: {
    50. type: 'triangle',
    51. size: 10,
    52. topState: {
    53. backgroundColor: 'green',
    54. offsetX: 10,
    55. offsetY: 10
    56. }
    57. }
    58. },
    59. {
    60. values: [50, 21, 45, 75, 60, 59, 37, 64],
    61. lineColor: '#FFC107',
    62. marker: {
    63. backgroundColor: '#FFC107'
    64. },
    65.  
    66. guideLabel: {
    67. text: 'Gamma: %v',
    68. backgroundColor: '#FFF8E1',
    69. borderColor: '#FF6F00',
    70. fontColor: '#FF6F00',
    71. lineStyle: 'dashdot',
    72. },
    73. guideMarker: {
    74. type: 'star6',
    75. size: 10,
    76. topState: {
    77. backgroundColor: 'blue',
    78. offsetX: 10,
    79. offsetY: 10
    80. }
    81. }
    82. }
    83. ],
    84.  
    85. plot: {
    86. aspect: 'spline',
    87. tooltip: {
    88. visible: false
    89. },
    90. guideMarker: {
    91. type: 'star6',
    92. size: 10
    93. }
    94. }
    95. };
    96.  
    97. zingchart.render({
    98. id: 'myChart',
    99. data: chartConfig,
    100. height: 400,
    101. width: '100%'
    102. });