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