• 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. mediaRules: [{
    30. maxWidth: 400,
    31. backgroundColor: 'blue',
    32. }]
    33. },
    34. series: [{
    35. values: [11, 26, 7, 44, 11, 42, 13, 21, 15, 33, 23, 24, 13, 4, 18]
    36. }]
    37. };
    38.  
    39. zingchart.render({
    40. id: 'myChart',
    41. data: chartConfig,
    42. height: 370,
    43. width: '100%'
    44. });
    45. </script>
    46. </body>
    47.  
    48. </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. mediaRules: [{
    15. maxWidth: 400,
    16. backgroundColor: 'blue',
    17. }]
    18. },
    19. series: [{
    20. values: [11, 26, 7, 44, 11, 42, 13, 21, 15, 33, 23, 24, 13, 4, 18]
    21. }]
    22. };
    23.  
    24. zingchart.render({
    25. id: 'myChart',
    26. data: chartConfig,
    27. height: 370,
    28. width: '100%'
    29. });