• 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. let chartConfig = {
    17. type: 'line',
    18. arrows: [{
    19. backgroundColor: 'red',
    20. alpha: 0.7,
    21. direction: 'top', //location of node in relation to end of arrow
    22. length: 75, //length of arrow
    23. to: { //either to or from are required, but not both
    24. hook: 'node:plot=0,index=4' //hooks or x,y postions can be used
    25. },
    26. label: {
    27. text: 'Look Here',
    28. bold: true,
    29. backgroundColor: 'none',
    30. borderWidth: 0,
    31. fontAngle: 90,
    32. offsetX: -10,
    33. offsetY: 8
    34.  
    35. }
    36. },
    37. {
    38. backgroundColor: 'green',
    39. alpha: 0.2,
    40. borderAlpha: 1,
    41. from: {
    42. hook: 'node:plot=1,index=4'
    43. },
    44. to: {
    45. hook: 'node:plot=1,index=7'
    46. }
    47. }
    48. ],
    49. series: [{
    50. values: [182, 155, 161, 125, 95, 150, 140, 150, 173, 147, 208, 136]
    51. },
    52. {
    53. values: [243, 189, 213, 190, 267, 226, 245, 294, 220, 255, 107, 192]
    54. },
    55. ]
    56. };
    57.  
    58. zingchart.render({
    59. id: 'myChart',
    60. data: chartConfig,
    61. height: 400,
    62. width: '100%'
    63. });
    64. </script>
    65. </body>
    66.  
    67. </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. let chartConfig = {
    2. type: 'line',
    3. arrows: [{
    4. backgroundColor: 'red',
    5. alpha: 0.7,
    6. direction: 'top', //location of node in relation to end of arrow
    7. length: 75, //length of arrow
    8. to: { //either to or from are required, but not both
    9. hook: 'node:plot=0,index=4' //hooks or x,y postions can be used
    10. },
    11. label: {
    12. text: 'Look Here',
    13. bold: true,
    14. backgroundColor: 'none',
    15. borderWidth: 0,
    16. fontAngle: 90,
    17. offsetX: -10,
    18. offsetY: 8
    19.  
    20. }
    21. },
    22. {
    23. backgroundColor: 'green',
    24. alpha: 0.2,
    25. borderAlpha: 1,
    26. from: {
    27. hook: 'node:plot=1,index=4'
    28. },
    29. to: {
    30. hook: 'node:plot=1,index=7'
    31. }
    32. }
    33. ],
    34. series: [{
    35. values: [182, 155, 161, 125, 95, 150, 140, 150, 173, 147, 208, 136]
    36. },
    37. {
    38. values: [243, 189, 213, 190, 267, 226, 245, 294, 220, 255, 107, 192]
    39. },
    40. ]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: chartConfig,
    46. height: 400,
    47. width: '100%'
    48. });