• 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. gui: {
    18. contextMenu: {
    19. docked: true,
    20. position: 'right',
    21. backgroundColor: 'none',
    22. // button: {
    23. // visible: true
    24. // },
    25. // item:{
    26. // backgroundColor:"#333",
    27. // borderWidth: 8,
    28. // color:"#fff"
    29. // }
    30. }
    31. },
    32. graphset: [{
    33. type: "line",
    34. title: {
    35. text: 'Context Menu'
    36. },
    37. subtitle: {
    38. text: "Right-click on the chart to view the context menu.",
    39. fontWeight: 'normal'
    40. },
    41. series: [{
    42. "values": [139, 51.8, 114, 93, 102, 78]
    43. },
    44. {
    45. "values": [157, 126, 83, 152, 150, 194]
    46. },
    47. {
    48. "values": [124, 111, 147, 137, 124, 170]
    49. },
    50. {
    51. "values": [155, 225, 225, 218, 200, 224]
    52. }
    53. ]
    54. }]
    55. };
    56.  
    57. zingchart.render({
    58. id: 'myChart',
    59. data: myConfig,
    60. height: 399,
    61. width: '100%'
    62. });
    63. </script>
    64. </body>
    65.  
    66. </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. gui: {
    3. contextMenu: {
    4. docked: true,
    5. position: 'right',
    6. backgroundColor: 'none',
    7. // button: {
    8. // visible: true
    9. // },
    10. // item:{
    11. // backgroundColor:"#333",
    12. // borderWidth: 8,
    13. // color:"#fff"
    14. // }
    15. }
    16. },
    17. graphset: [{
    18. type: "line",
    19. title: {
    20. text: 'Context Menu'
    21. },
    22. subtitle: {
    23. text: "Right-click on the chart to view the context menu.",
    24. fontWeight: 'normal'
    25. },
    26. series: [{
    27. "values": [139, 51.8, 114, 93, 102, 78]
    28. },
    29. {
    30. "values": [157, 126, 83, 152, 150, 194]
    31. },
    32. {
    33. "values": [124, 111, 147, 137, 124, 170]
    34. },
    35. {
    36. "values": [155, 225, 225, 218, 200, 224]
    37. }
    38. ]
    39. }]
    40. };
    41.  
    42. zingchart.render({
    43. id: 'myChart',
    44. data: myConfig,
    45. height: 399,
    46. width: '100%'
    47. });