• 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: 'bar',
    18. plot: {
    19. errors: [
    20. [3, 4],
    21. [3.1, 3.5],
    22. [3.4, 3.1],
    23. [2.9, 3.3],
    24. [4, 3],
    25. [4.1, 3.9],
    26. [2.9, 3.3],
    27. [3.6, 3.7],
    28. [3.5, 3.5]
    29. ],
    30. error: {
    31. hoverState: {
    32. lineColor: 'red'
    33. }
    34. },
    35. tooltip: {
    36. text: '%v<br>+%node-error-plus/-%node-error-minus',
    37. fontColor: 'black',
    38. fontFamily: 'Georgia',
    39. backgroundColor: 'white',
    40. borderColor: 'black',
    41. borderWidth: 1,
    42. borderRadius: '5px',
    43. alpha: 0.7,
    44. padding: '5%'
    45. },
    46. barSpace: '0%',
    47. barSpaceLeft: '5%',
    48. barSpaceRight: '5%'
    49. },
    50. scaleX: {
    51. format: 'Test %v'
    52. },
    53. scaleY: {
    54. values: '0:100:20',
    55. guide: {
    56. lineStyle: 'dotted'
    57. }
    58. },
    59. series: [{
    60. values: [34, 95, 25, 15, 28, 55, 59],
    61. backgroundColor: '#0066cc'
    62. },
    63. {
    64. values: [31, 89, 15, 29, 34, 41, 66],
    65. backgroundColor: '#3399ff'
    66. }
    67. ]
    68. };
    69.  
    70. zingchart.render({
    71. id: 'myChart',
    72. data: chartConfig,
    73. height: 400,
    74. width: '100%'
    75. });
    76. </script>
    77. </body>
    78.  
    79. </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: 'bar',
    3. plot: {
    4. errors: [
    5. [3, 4],
    6. [3.1, 3.5],
    7. [3.4, 3.1],
    8. [2.9, 3.3],
    9. [4, 3],
    10. [4.1, 3.9],
    11. [2.9, 3.3],
    12. [3.6, 3.7],
    13. [3.5, 3.5]
    14. ],
    15. error: {
    16. hoverState: {
    17. lineColor: 'red'
    18. }
    19. },
    20. tooltip: {
    21. text: '%v<br>+%node-error-plus/-%node-error-minus',
    22. fontColor: 'black',
    23. fontFamily: 'Georgia',
    24. backgroundColor: 'white',
    25. borderColor: 'black',
    26. borderWidth: 1,
    27. borderRadius: '5px',
    28. alpha: 0.7,
    29. padding: '5%'
    30. },
    31. barSpace: '0%',
    32. barSpaceLeft: '5%',
    33. barSpaceRight: '5%'
    34. },
    35. scaleX: {
    36. format: 'Test %v'
    37. },
    38. scaleY: {
    39. values: '0:100:20',
    40. guide: {
    41. lineStyle: 'dotted'
    42. }
    43. },
    44. series: [{
    45. values: [34, 95, 25, 15, 28, 55, 59],
    46. backgroundColor: '#0066cc'
    47. },
    48. {
    49. values: [31, 89, 15, 29, 34, 41, 66],
    50. backgroundColor: '#3399ff'
    51. }
    52. ]
    53. };
    54.  
    55. zingchart.render({
    56. id: 'myChart',
    57. data: chartConfig,
    58. height: 400,
    59. width: '100%'
    60. });