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