• 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/2.6.1/zingchart.min.js"></script>
    9. <style>
    10. html,
    11. body {
    12. height: 100%;
    13. width: 100%;
    14. margin: 0;
    15. padding: 0;
    16. }
    17.  
    18. #myChart {
    19. height: 100%;
    20. width: 100%;
    21. min-height: 150px;
    22. }
    23.  
    24. zing-grid[loading] {
    25. height: 450px;
    26. }
    27. </style>
    28. </head>
    29.  
    30. <body>
    31. <div id='myChart'></div>
    32. <script>
    33. var myConfig = {
    34. type: "mixed",
    35. title: {
    36. text: 'The blue line is ignored in the selection'
    37. },
    38. plot: {
    39. selectedState: {
    40. backgroundColor: 'green',
    41. lineColor: 'orange'
    42. },
    43. selectedMarker: {
    44. size: 15,
    45. backgroundColor: 'orange'
    46. }
    47. },
    48. series: [{
    49. type: 'line',
    50. dataIgnoreSelection: true,
    51. values: [89, 70, 56, 78, 45, 30, 70, 49, 65]
    52. },
    53. {
    54. type: 'area',
    55. values: [135, 25, 35, 61, 12, 55, 34, 65, 60]
    56. },
    57. {
    58. type: 'bar',
    59. values: [35, 25, 15, 41, 2, 45, 14, 65, 40]
    60. },
    61. ]
    62. };
    63.  
    64. zingchart.loadModules('selection-tool', function() {
    65. zingchart.render({
    66. id: 'myChart',
    67. data: myConfig,
    68. height: '100%',
    69. width: '100%',
    70. modules: 'selection-tool'
    71. });
    72. });
    73. </script>
    74. </body>
    75.  
    76. </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/2.6.1/zingchart.min.js"></script>
    9. </head>
    10.  
    11. <body>
    12. <div id='myChart'></div>
    13. </body>
    14.  
    15. </html>
    1. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 150px;
    13. }
    1. var myConfig = {
    2. type: "mixed",
    3. title: {
    4. text: 'The blue line is ignored in the selection'
    5. },
    6. plot: {
    7. selectedState: {
    8. backgroundColor: 'green',
    9. lineColor: 'orange'
    10. },
    11. selectedMarker: {
    12. size: 15,
    13. backgroundColor: 'orange'
    14. }
    15. },
    16. series: [{
    17. type: 'line',
    18. dataIgnoreSelection: true,
    19. values: [89, 70, 56, 78, 45, 30, 70, 49, 65]
    20. },
    21. {
    22. type: 'area',
    23. values: [135, 25, 35, 61, 12, 55, 34, 65, 60]
    24. },
    25. {
    26. type: 'bar',
    27. values: [35, 25, 15, 41, 2, 45, 14, 65, 40]
    28. },
    29. ]
    30. };
    31.  
    32. zingchart.loadModules('selection-tool', function() {
    33. zingchart.render({
    34. id: 'myChart',
    35. data: myConfig,
    36. height: '100%',
    37. width: '100%',
    38. modules: 'selection-tool'
    39. });
    40. });