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