• 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.  
    30. callout: true,
    31. calloutHeight: 15,
    32. calloutPosition: 'bottom',
    33. calloutWidth: 0,
    34. calloutTip: {
    35. type: 'circle',
    36. backgroundColor: '#fff',
    37. borderWidth: 2,
    38. borderColor: '#f60',
    39. offsetY: 5,
    40. size: 5,
    41. },
    42. },
    43. series: [{
    44. values: [11, 26, 7, 44, 11, 42, 13, 21, 15, 33, 23, 24, 13, 4, 18]
    45. }]
    46. };
    47.  
    48. zingchart.render({
    49. id: 'myChart',
    50. data: chartConfig,
    51. height: 370,
    52. width: '100%'
    53. });
    54. </script>
    55. </body>
    56.  
    57. </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.  
    15. callout: true,
    16. calloutHeight: 15,
    17. calloutPosition: 'bottom',
    18. calloutWidth: 0,
    19. calloutTip: {
    20. type: 'circle',
    21. backgroundColor: '#fff',
    22. borderWidth: 2,
    23. borderColor: '#f60',
    24. offsetY: 5,
    25. size: 5,
    26. },
    27. },
    28. series: [{
    29. values: [11, 26, 7, 44, 11, 42, 13, 21, 15, 33, 23, 24, 13, 4, 18]
    30. }]
    31. };
    32.  
    33. zingchart.render({
    34. id: 'myChart',
    35. data: chartConfig,
    36. height: 370,
    37. width: '100%'
    38. });