• 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. subtitle: {
    19. text: 'click, drag, and zoom into the chart'
    20. },
    21. scaleX: {
    22. zooming: true //sets zooming along scaleX
    23. },
    24. scaleY: {
    25. zooming: true //sets zooming along scaleY
    26. },
    27. zoom: { //controls styling and some functionality of zooming
    28. backgroundColor: '#1e7bd3',
    29. borderColor: '#181818',
    30. borderStyle: 'dashed',
    31. borderWidth: 1,
    32.  
    33. mediaRules: [{
    34. maxWidth: 400,
    35. backgroundColor: 'red'
    36. }]
    37. },
    38. series: [{
    39. values: [182, 155, 161, 155, 193, 167, 177, 228, 180, 168, 218, 131, 212, 184, 163, 147, 208, 136, 228, 188, 191, 227, 135, 134, 128, 173, 219, 207, 173, 159]
    40. },
    41. {
    42. values: [243, 189, 213, 190, 267, 226, 245, 264, 220, 254, 190, 205, 207, 192, 224, 247, 275, 260, 267, 186, 223, 249, 244, 206, 276, 223, 270, 224, 261, 183]
    43. },
    44. {
    45. values: [158, 227, 190, 213, 176, 185, 212, 219, 208, 193, 172, 177, 245, 199, 145, 170, 164, 197, 186, 170, 212, 236, 196, 247, 226, 156, 228, 157, 201, 199]
    46. }
    47. ]
    48. };
    49.  
    50. zingchart.render({
    51. id: 'myChart',
    52. data: chartConfig,
    53. height: 400,
    54. width: '100%'
    55. });
    56. </script>
    57. </body>
    58.  
    59. </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. subtitle: {
    4. text: 'click, drag, and zoom into the chart'
    5. },
    6. scaleX: {
    7. zooming: true //sets zooming along scaleX
    8. },
    9. scaleY: {
    10. zooming: true //sets zooming along scaleY
    11. },
    12. zoom: { //controls styling and some functionality of zooming
    13. backgroundColor: '#1e7bd3',
    14. borderColor: '#181818',
    15. borderStyle: 'dashed',
    16. borderWidth: 1,
    17.  
    18. mediaRules: [{
    19. maxWidth: 400,
    20. backgroundColor: 'red'
    21. }]
    22. },
    23. series: [{
    24. values: [182, 155, 161, 155, 193, 167, 177, 228, 180, 168, 218, 131, 212, 184, 163, 147, 208, 136, 228, 188, 191, 227, 135, 134, 128, 173, 219, 207, 173, 159]
    25. },
    26. {
    27. values: [243, 189, 213, 190, 267, 226, 245, 264, 220, 254, 190, 205, 207, 192, 224, 247, 275, 260, 267, 186, 223, 249, 244, 206, 276, 223, 270, 224, 261, 183]
    28. },
    29. {
    30. values: [158, 227, 190, 213, 176, 185, 212, 219, 208, 193, 172, 177, 245, 199, 145, 170, 164, 197, 186, 170, 212, 236, 196, 247, 226, 156, 228, 157, 201, 199]
    31. }
    32. ]
    33. };
    34.  
    35. zingchart.render({
    36. id: 'myChart',
    37. data: chartConfig,
    38. height: 400,
    39. width: '100%'
    40. });