• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script nonce="undefined" src="//www.zingchart.com/scripts/zcDocs.js"></script>
    8. <link href='//www.zingchart.com/css/zcDocs.css' rel='stylesheet' type='text/css'>
    9.  
    10. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    11. <style></style>
    12. </head>
    13.  
    14. <body>
    15. <div id='demo-chart'></div>
    16.  
    17. <pre id='output'></pre>
    18. <script>
    19. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    20. var myConfig = {
    21. 'type': 'line',
    22. 'stacked': 1,
    23. 'title': {
    24. text: 'Hover me!'
    25. },
    26. 'legend': {},
    27. 'guide': {},
    28. 'series': [{
    29. 'values': [11, 26, 7, 44, 11]
    30. },
    31. {
    32. 'values': [42, 13, 21, 15, 33]
    33. }
    34. ]
    35. };
    36. zingchart.guide_mousemove = function(p) {
    37. zcdocs.demos.dump('guide_mousemove', p);
    38. }
    39.  
    40.  
    41. zingchart.render({
    42. id: 'demo-chart',
    43. data: myConfig,
    44. height: 400,
    45. width: '100%'
    46. });
    47. </script>
    48. </body>
    49.  
    50. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script src="//www.zingchart.com/scripts/zcDocs.js"></script>
    8. <link href='//www.zingchart.com/css/zcDocs.css' rel='stylesheet' type='text/css'>
    9.  
    10. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    11. </head>
    12.  
    13. <body>
    14. <div id='demo-chart'></div>
    15.  
    16. <pre id='output'></pre>
    17. </body>
    18.  
    19. </html>
    1.  
    1. var myConfig = {
    2. 'type': 'line',
    3. 'stacked': 1,
    4. 'title': {
    5. text: 'Hover me!'
    6. },
    7. 'legend': {},
    8. 'guide': {},
    9. 'series': [{
    10. 'values': [11, 26, 7, 44, 11]
    11. },
    12. {
    13. 'values': [42, 13, 21, 15, 33]
    14. }
    15. ]
    16. };
    17. zingchart.guide_mousemove = function(p) {
    18. zcdocs.demos.dump('guide_mousemove', p);
    19. }
    20.  
    21.  
    22. zingchart.render({
    23. id: 'demo-chart',
    24. data: myConfig,
    25. height: 400,
    26. width: '100%'
    27. });