• 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. plot: {
    19. highlight: true
    20. },
    21. legend: {},
    22. series: [{
    23. values: [
    24. [1, 22],
    25. [1.5, 34],
    26. [2, 55],
    27. [2.5, 71],
    28. [3, 42],
    29. [3.5, 39],
    30. [4, 50],
    31. [4.5, 70]
    32. ],
    33. lineColor: '#5C6BC0',
    34. highlightState: {
    35. lineColor: 'red'
    36. },
    37. highlightMarker: {
    38. type: "gear5",
    39. size: 7,
    40. backgroundColor: 'red',
    41. }
    42. },
    43. {
    44. values: [
    45. [5.5, 35],
    46. [6, 42],
    47. [6.5, 67],
    48. [7, 89],
    49. [7.5, 25],
    50. [8, 34],
    51. [8.5, 67],
    52. [9, 85]
    53. ],
    54. lineColor: '#9FA8DA',
    55. highlightState: {
    56. lineColor: 'blue'
    57. },
    58. highlightMarker: {
    59. type: "gear5",
    60. size: 7,
    61. backgroundColor: 'blue',
    62. }
    63. }
    64. ]
    65. };
    66.  
    67. zingchart.render({
    68. id: 'myChart',
    69. data: chartConfig,
    70. height: 400,
    71. width: '100%'
    72. });
    73. </script>
    74. </body>
    75.  
    76. </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. plot: {
    4. highlight: true
    5. },
    6. legend: {},
    7. series: [{
    8. values: [
    9. [1, 22],
    10. [1.5, 34],
    11. [2, 55],
    12. [2.5, 71],
    13. [3, 42],
    14. [3.5, 39],
    15. [4, 50],
    16. [4.5, 70]
    17. ],
    18. lineColor: '#5C6BC0',
    19. highlightState: {
    20. lineColor: 'red'
    21. },
    22. highlightMarker: {
    23. type: "gear5",
    24. size: 7,
    25. backgroundColor: 'red',
    26. }
    27. },
    28. {
    29. values: [
    30. [5.5, 35],
    31. [6, 42],
    32. [6.5, 67],
    33. [7, 89],
    34. [7.5, 25],
    35. [8, 34],
    36. [8.5, 67],
    37. [9, 85]
    38. ],
    39. lineColor: '#9FA8DA',
    40. highlightState: {
    41. lineColor: 'blue'
    42. },
    43. highlightMarker: {
    44. type: "gear5",
    45. size: 7,
    46. backgroundColor: 'blue',
    47. }
    48. }
    49. ]
    50. };
    51.  
    52. zingchart.render({
    53. id: 'myChart',
    54. data: chartConfig,
    55. height: 400,
    56. width: '100%'
    57. });