• 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. crosshairY: {
    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. backgroundColor: 'red',
    35. }],
    36. },
    37. mediaRules: [{
    38. maxWidth: 400,
    39. lineColor: 'red',
    40. }],
    41. },
    42. plot: {
    43. tooltip: {
    44. visible: false
    45. }
    46. },
    47. series: [{
    48. values: [11, 26, 7, 44, 11]
    49. },
    50. {
    51. values: [42, 13, 21, 15, 33]
    52. },
    53. {
    54. values: [10, 10, 12, 13, 12]
    55. }
    56. ]
    57. };
    58.  
    59. zingchart.render({
    60. id: 'myChart',
    61. data: myConfig,
    62. height: 400,
    63. width: '100%'
    64. });
    65. </script>
    66. </body>
    67.  
    68. </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. crosshairY: {
    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. backgroundColor: 'red',
    20. }],
    21. },
    22. mediaRules: [{
    23. maxWidth: 400,
    24. lineColor: 'red',
    25. }],
    26. },
    27. plot: {
    28. tooltip: {
    29. visible: false
    30. }
    31. },
    32. series: [{
    33. values: [11, 26, 7, 44, 11]
    34. },
    35. {
    36. values: [42, 13, 21, 15, 33]
    37. },
    38. {
    39. values: [10, 10, 12, 13, 12]
    40. }
    41. ]
    42. };
    43.  
    44. zingchart.render({
    45. id: 'myChart',
    46. data: myConfig,
    47. height: 400,
    48. width: '100%'
    49. });