• 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 some data points'
    20. },
    21. plot: {
    22. selectionMode: 'multiple', //required for selection to work!
    23. selectedMarker: { //sets the styling for selected marker (per series)
    24. type: 'star5',
    25. backgroundColor: 'white',
    26. borderColor: 'black',
    27. borderWidth: 2,
    28. size: 8
    29. }
    30. },
    31. series: [{
    32. values: [11, 26, 7, 44, 11, 42]
    33. },
    34. {
    35. values: [23, 11, 33, 31, 8, 10]
    36. }
    37. ]
    38. };
    39.  
    40. zingchart.render({
    41. id: 'myChart',
    42. data: chartConfig,
    43. height: 400,
    44. width: '100%'
    45. });
    46. </script>
    47. </body>
    48.  
    49. </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 some data points'
    5. },
    6. plot: {
    7. selectionMode: 'multiple', //required for selection to work!
    8. selectedMarker: { //sets the styling for selected marker (per series)
    9. type: 'star5',
    10. backgroundColor: 'white',
    11. borderColor: 'black',
    12. borderWidth: 2,
    13. size: 8
    14. }
    15. },
    16. series: [{
    17. values: [11, 26, 7, 44, 11, 42]
    18. },
    19. {
    20. values: [23, 11, 33, 31, 8, 10]
    21. }
    22. ]
    23. };
    24.  
    25. zingchart.render({
    26. id: 'myChart',
    27. data: chartConfig,
    28. height: 400,
    29. width: '100%'
    30. });