• 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. var myConfig = {
    17. type: "line",
    18. crosshairX: {
    19. lineColor: "#565656",
    20. lineStyle: "dashed",
    21. lineWidth: 2,
    22. alpha: 0.5,
    23. scaleLabel: { //label associated to scaleX index
    24. bold: true,
    25. backgroundColor: "#787878",
    26. borderRadius: 3,
    27. fontColor: "#eaeaea",
    28. fontSize: "12px",
    29. callout: true,
    30. paddingTop: 2
    31. },
    32. mediaRules: [{
    33. maxWidth: 400,
    34. lineColor: 'red',
    35. }],
    36. },
    37. plot: {
    38. tooltip: {
    39. visible: false
    40. }
    41. },
    42. series: [{
    43. values: [11, 26, 7, 44, 11]
    44. },
    45. {
    46. values: [42, 13, 21, 15, 33]
    47. },
    48. {
    49. values: [10, 10, 12, 13, 12]
    50. }
    51. ]
    52. };
    53.  
    54. zingchart.render({
    55. id: 'myChart',
    56. data: myConfig,
    57. height: 400,
    58. width: '100%'
    59. });
    60. </script>
    61. </body>
    62.  
    63. </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. var myConfig = {
    2. type: "line",
    3. crosshairX: {
    4. lineColor: "#565656",
    5. lineStyle: "dashed",
    6. lineWidth: 2,
    7. alpha: 0.5,
    8. scaleLabel: { //label associated to scaleX index
    9. bold: true,
    10. backgroundColor: "#787878",
    11. borderRadius: 3,
    12. fontColor: "#eaeaea",
    13. fontSize: "12px",
    14. callout: true,
    15. paddingTop: 2
    16. },
    17. mediaRules: [{
    18. maxWidth: 400,
    19. lineColor: 'red',
    20. }],
    21. },
    22. plot: {
    23. tooltip: {
    24. visible: false
    25. }
    26. },
    27. series: [{
    28. values: [11, 26, 7, 44, 11]
    29. },
    30. {
    31. values: [42, 13, 21, 15, 33]
    32. },
    33. {
    34. values: [10, 10, 12, 13, 12]
    35. }
    36. ]
    37. };
    38.  
    39. zingchart.render({
    40. id: 'myChart',
    41. data: myConfig,
    42. height: 400,
    43. width: '100%'
    44. });