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