• 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. },
    41. {
    42. values: [35, 42, 67, 89, 25, 34, 67, 85],
    43. lineColor: '#8BC34A',
    44. marker: {
    45. backgroundColor: '#8BC34A'
    46. },
    47.  
    48. guideLabel: {
    49. text: 'Beta: %v',
    50. backgroundColor: '#F1F8E9',
    51. borderColor: '#33691E',
    52. fontColor: '#33691E',
    53. lineStyle: 'dashed'
    54. }
    55. },
    56. {
    57. values: [50, 21, 45, 75, 60, 59, 37, 64],
    58. lineColor: '#FFC107',
    59. marker: {
    60. backgroundColor: '#FFC107'
    61. },
    62.  
    63. guideLabel: {
    64. text: 'Gamma: %v',
    65. backgroundColor: '#FFF8E1',
    66. borderColor: '#FF6F00',
    67. fontColor: '#FF6F00',
    68. lineStyle: 'dashdot'
    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. });
    87. </script>
    88. </body>
    89.  
    90. </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. },
    26. {
    27. values: [35, 42, 67, 89, 25, 34, 67, 85],
    28. lineColor: '#8BC34A',
    29. marker: {
    30. backgroundColor: '#8BC34A'
    31. },
    32.  
    33. guideLabel: {
    34. text: 'Beta: %v',
    35. backgroundColor: '#F1F8E9',
    36. borderColor: '#33691E',
    37. fontColor: '#33691E',
    38. lineStyle: 'dashed'
    39. }
    40. },
    41. {
    42. values: [50, 21, 45, 75, 60, 59, 37, 64],
    43. lineColor: '#FFC107',
    44. marker: {
    45. backgroundColor: '#FFC107'
    46. },
    47.  
    48. guideLabel: {
    49. text: 'Gamma: %v',
    50. backgroundColor: '#FFF8E1',
    51. borderColor: '#FF6F00',
    52. fontColor: '#FF6F00',
    53. lineStyle: 'dashdot'
    54. }
    55. }
    56. ],
    57.  
    58. plot: {
    59. aspect: 'spline',
    60. tooltip: {
    61. visible: false
    62. }
    63. }
    64. };
    65.  
    66. zingchart.render({
    67. id: 'myChart',
    68. data: chartConfig,
    69. height: 400,
    70. width: '100%'
    71. });