• 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: "line",
    18. arrows: [{
    19. backgroundColor: "red",
    20. alpha: 0.8,
    21. borderAlpha: 1,
    22. direction: "bottom",
    23. length: 60,
    24. to: { //sets an arrow hooked to a data point
    25. hook: "node:plot=1,index=4"
    26. },
    27. label: {
    28. text: "New Marketing",
    29. color: "#fff",
    30. textAlpha: 1,
    31. offsetY: -18
    32. }
    33. }],
    34. series: [{
    35. values: [1, 2, 4, 8, 16, 22, 34, 66, 90, 100, 105, 107, 115]
    36. },
    37. {
    38. values: [0, 1, 3, 7, 15, 31, 63, 95, 111, 119, 123, 130, 135]
    39. }
    40. ]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: myConfig,
    46. height: 400,
    47. width: "100%"
    48. });
    49. </script>
    50. </body>
    51.  
    52. </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: "line",
    3. arrows: [{
    4. backgroundColor: "red",
    5. alpha: 0.8,
    6. borderAlpha: 1,
    7. direction: "bottom",
    8. length: 60,
    9. to: { //sets an arrow hooked to a data point
    10. hook: "node:plot=1,index=4"
    11. },
    12. label: {
    13. text: "New Marketing",
    14. color: "#fff",
    15. textAlpha: 1,
    16. offsetY: -18
    17. }
    18. }],
    19. series: [{
    20. values: [1, 2, 4, 8, 16, 22, 34, 66, 90, 100, 105, 107, 115]
    21. },
    22. {
    23. values: [0, 1, 3, 7, 15, 31, 63, 95, 111, 119, 123, 130, 135]
    24. }
    25. ]
    26. };
    27.  
    28. zingchart.render({
    29. id: 'myChart',
    30. data: myConfig,
    31. height: 400,
    32. width: "100%"
    33. });