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