• 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>
    10. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. let chartConfig = {
    24. type: 'range',
    25. plot: {
    26. minMarker: {
    27. type: 'star5',
    28. topState: {
    29. backgroundColor: 'red',
    30. offsetX: '10px',
    31. offsetY: '10px',
    32. },
    33. }
    34. },
    35. series: [{
    36. values: [
    37. [15, 30],
    38. [20, 40],
    39. [16, 35],
    40. [21, 30],
    41. [25, 45],
    42. [18, 27],
    43. [23, 35],
    44. [29, 39],
    45. [27, 30],
    46. [19, 34]
    47. ]
    48. }]
    49. };
    50.  
    51. zingchart.render({
    52. id: 'myChart',
    53. data: chartConfig,
    54. height: '100%',
    55. width: '100%'
    56. });
    57. </script>
    58. </body>
    59.  
    60. </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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. let chartConfig = {
    2. type: 'range',
    3. plot: {
    4. minMarker: {
    5. type: 'star5',
    6. topState: {
    7. backgroundColor: 'red',
    8. offsetX: '10px',
    9. offsetY: '10px',
    10. },
    11. }
    12. },
    13. series: [{
    14. values: [
    15. [15, 30],
    16. [20, 40],
    17. [16, 35],
    18. [21, 30],
    19. [25, 45],
    20. [18, 27],
    21. [23, 35],
    22. [29, 39],
    23. [27, 30],
    24. [19, 34]
    25. ]
    26. }]
    27. };
    28.  
    29. zingchart.render({
    30. id: 'myChart',
    31. data: chartConfig,
    32. height: '100%',
    33. width: '100%'
    34. });