• 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>
    10. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. var myConfig = {
    24. gui: {
    25. contextMenu: {
    26. backgroundColor: 'red',
    27. docked: true,
    28. position: 'left',
    29. item: {
    30. backgroundColor: 'pink',
    31. fontColor: 'black',
    32. hoverState: {
    33. backgroundColor: 'black',
    34. fontColor: 'white'
    35. }
    36. }
    37. }
    38. },
    39. graphset: [{
    40. type: 'line',
    41. title: {
    42. text: 'Context Menu Styling'
    43. },
    44. subtitle: {
    45. text: 'Right-click to access the context menu.',
    46. fontWeight: 'normal'
    47. },
    48. plot: {
    49. aspect: 'segmented',
    50. marker: {
    51. size: 4
    52. }
    53. },
    54. scaleX: {
    55.  
    56. },
    57. scaleY: {
    58. values: '0:100:20',
    59. guide: {
    60. lineStyle: 'dotted'
    61. }
    62. },
    63. series: [{
    64. values: [69, 68, 54, 48, 70, 74, 98, 70, 72, 68, 49, 69],
    65. lineColor: 'red',
    66. marker: {
    67. type: 'diamond',
    68. backgroundColor: 'red'
    69. }
    70. },
    71. {
    72. values: [51, 53, 47, 60, 48, 52, 35, 52, 55, 47, 60, 48],
    73. lineColor: 'black',
    74. marker: {
    75. type: 'square',
    76. backgroundColor: 'black'
    77. }
    78. }
    79. ]
    80. }]
    81. };
    82.  
    83. zingchart.render({
    84. id: 'myChart',
    85. data: myConfig,
    86. height: 399,
    87. width: '100%'
    88. });
    89. </script>
    90. </body>
    91.  
    92. </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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. var myConfig = {
    2. gui: {
    3. contextMenu: {
    4. backgroundColor: 'red',
    5. docked: true,
    6. position: 'left',
    7. item: {
    8. backgroundColor: 'pink',
    9. fontColor: 'black',
    10. hoverState: {
    11. backgroundColor: 'black',
    12. fontColor: 'white'
    13. }
    14. }
    15. }
    16. },
    17. graphset: [{
    18. type: 'line',
    19. title: {
    20. text: 'Context Menu Styling'
    21. },
    22. subtitle: {
    23. text: 'Right-click to access the context menu.',
    24. fontWeight: 'normal'
    25. },
    26. plot: {
    27. aspect: 'segmented',
    28. marker: {
    29. size: 4
    30. }
    31. },
    32. scaleX: {
    33.  
    34. },
    35. scaleY: {
    36. values: '0:100:20',
    37. guide: {
    38. lineStyle: 'dotted'
    39. }
    40. },
    41. series: [{
    42. values: [69, 68, 54, 48, 70, 74, 98, 70, 72, 68, 49, 69],
    43. lineColor: 'red',
    44. marker: {
    45. type: 'diamond',
    46. backgroundColor: 'red'
    47. }
    48. },
    49. {
    50. values: [51, 53, 47, 60, 48, 52, 35, 52, 55, 47, 60, 48],
    51. lineColor: 'black',
    52. marker: {
    53. type: 'square',
    54. backgroundColor: 'black'
    55. }
    56. }
    57. ]
    58. }]
    59. };
    60.  
    61. zingchart.render({
    62. id: 'myChart',
    63. data: myConfig,
    64. height: 399,
    65. width: '100%'
    66. });