• 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. title: {
    19. text: 'Hover over a node to see the tooltip'
    20. },
    21. tooltip: {
    22. backgroundColor: '#f90',
    23. padding: '5 10',
    24. borderColor: '#009',
    25. borderWidth: 2,
    26. borderRadius: 5,
    27. alpha: 0.75,
    28. text: 'The value of this node is %node-value.'
    29. },
    30. series: [{
    31. values: [11, 26, 7, 44, 11, 42, 13, 21, 15, 33, 23, 24, 13, 4, 18]
    32. }]
    33. };
    34.  
    35. zingchart.render({
    36. id: 'myChart',
    37. data: chartConfig,
    38. height: 400,
    39. width: '100%'
    40. });
    41. </script>
    42. </body>
    43.  
    44. </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. title: {
    4. text: 'Hover over a node to see the tooltip'
    5. },
    6. tooltip: {
    7. backgroundColor: '#f90',
    8. padding: '5 10',
    9. borderColor: '#009',
    10. borderWidth: 2,
    11. borderRadius: 5,
    12. alpha: 0.75,
    13. text: 'The value of this node is %node-value.'
    14. },
    15. series: [{
    16. values: [11, 26, 7, 44, 11, 42, 13, 21, 15, 33, 23, 24, 13, 4, 18]
    17. }]
    18. };
    19.  
    20. zingchart.render({
    21. id: 'myChart',
    22. data: chartConfig,
    23. height: 400,
    24. width: '100%'
    25. });