• 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. maxLine: {
    27. lineColor: 'red'
    28. },
    29. maxMarker: {
    30. type: 'star5',
    31. backgroundColor: 'red',
    32. styles: [{
    33. backgroundColor: 'blue',
    34. offsetX: 10,
    35. }],
    36. },
    37. },
    38. scaleX: {
    39. label: {
    40. text: 'Above is an example of a category scale'
    41. },
    42. labels: ['Jan', 'Feb', 'March', 'April', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct']
    43. },
    44. series: [{
    45. values: [
    46. [15, 30],
    47. [20, 40],
    48. [16, 35],
    49. [21, 30],
    50. [25, 45],
    51. [18, 27],
    52. [23, 35],
    53. [29, 39],
    54. [27, 30],
    55. [19, 34]
    56. ]
    57. }]
    58. };
    59.  
    60. zingchart.render({
    61. id: 'myChart',
    62. data: chartConfig,
    63. height: '100%',
    64. width: '100%'
    65. });
    66. </script>
    67. </body>
    68.  
    69. </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. maxLine: {
    5. lineColor: 'red'
    6. },
    7. maxMarker: {
    8. type: 'star5',
    9. backgroundColor: 'red',
    10. styles: [{
    11. backgroundColor: 'blue',
    12. offsetX: 10,
    13. }],
    14. },
    15. },
    16. scaleX: {
    17. label: {
    18. text: 'Above is an example of a category scale'
    19. },
    20. labels: ['Jan', 'Feb', 'March', 'April', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct']
    21. },
    22. series: [{
    23. values: [
    24. [15, 30],
    25. [20, 40],
    26. [16, 35],
    27. [21, 30],
    28. [25, 45],
    29. [18, 27],
    30. [23, 35],
    31. [29, 39],
    32. [27, 30],
    33. [19, 34]
    34. ]
    35. }]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: chartConfig,
    41. height: '100%',
    42. width: '100%'
    43. });