• 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. var myConfig = {
    17. type: 'area',
    18. scaleX: {
    19. values: '-100:100:20',
    20. },
    21. scaleY: {
    22. values: '-100:100:25',
    23. refValue: 0,
    24. refLine: {
    25. lineColor: 'red',
    26. lineWidth: 2,
    27. lineStyle: 'solid'
    28. }
    29. },
    30. plot: {
    31. aspect: 'stepped'
    32. },
    33. series: [{
    34. values: [
    35. [-100, 0],
    36. [-90, 31],
    37. [-80, 64],
    38. [-70, 35],
    39. [-60, 5],
    40. [-50, -30],
    41. [-40, -59],
    42. [-30, -34],
    43. [-20, 15],
    44. [-10, 90],
    45. [0, -34],
    46. [10, -70],
    47. [20, 39],
    48. [30, 70],
    49. [40, 80],
    50. [50, 69],
    51. [60, 45],
    52. [70, 20],
    53. [80, -91],
    54. [90, -45],
    55. [100, 0]
    56. ],
    57. lineColor: '#009688',
    58. backgroundColor: '#009688',
    59. marker: {
    60. backgroundColor: '#009688'
    61. }
    62. }]
    63. };
    64.  
    65. zingchart.render({
    66. id: 'myChart',
    67. data: myConfig,
    68. height: 400,
    69. width: "100%"
    70. });
    71. </script>
    72. </body>
    73.  
    74. </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. var myConfig = {
    2. type: 'area',
    3. scaleX: {
    4. values: '-100:100:20',
    5. },
    6. scaleY: {
    7. values: '-100:100:25',
    8. refValue: 0,
    9. refLine: {
    10. lineColor: 'red',
    11. lineWidth: 2,
    12. lineStyle: 'solid'
    13. }
    14. },
    15. plot: {
    16. aspect: 'stepped'
    17. },
    18. series: [{
    19. values: [
    20. [-100, 0],
    21. [-90, 31],
    22. [-80, 64],
    23. [-70, 35],
    24. [-60, 5],
    25. [-50, -30],
    26. [-40, -59],
    27. [-30, -34],
    28. [-20, 15],
    29. [-10, 90],
    30. [0, -34],
    31. [10, -70],
    32. [20, 39],
    33. [30, 70],
    34. [40, 80],
    35. [50, 69],
    36. [60, 45],
    37. [70, 20],
    38. [80, -91],
    39. [90, -45],
    40. [100, 0]
    41. ],
    42. lineColor: '#009688',
    43. backgroundColor: '#009688',
    44. marker: {
    45. backgroundColor: '#009688'
    46. }
    47. }]
    48. };
    49.  
    50. zingchart.render({
    51. id: 'myChart',
    52. data: myConfig,
    53. height: 400,
    54. width: "100%"
    55. });