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