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