index.htm 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Highcharts Example</title>
  7. <style type="text/css">
  8. #container {
  9. min-width: 320px;
  10. max-width: 600px;
  11. height: 400px;
  12. margin: 0 auto;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <script src="../../code/highcharts.js"></script>
  18. <script src="../../code/modules/venn.js"></script>
  19. <script src="../../code/modules/exporting.js"></script>
  20. <div id="container"></div>
  21. <script type="text/javascript">
  22. Highcharts.chart('container', {
  23. series: [{
  24. type: 'venn',
  25. data: [{
  26. sets: ['A'],
  27. value: 4,
  28. name: 'Euler diagrams',
  29. description: 'An Euler diagram is a diagrammatic means of representing sets and their' +
  30. 'relationships. Unlike Venn diagrams, which show all possible relations' +
  31. 'between different sets, the Euler diagram shows only relevant' +
  32. 'relationships.'
  33. }, {
  34. sets: ['B'],
  35. value: 1,
  36. name: 'Venn diagrams',
  37. description: 'In Venn diagrams the curves are overlapped in every possible way,' +
  38. 'showing all possible relations between the sets. They are thus a' +
  39. 'special case of Euler diagrams, which do not necessarily show all' +
  40. 'relations'
  41. }, {
  42. sets: ['A', 'B'],
  43. value: 1
  44. }]
  45. }],
  46. tooltip: {
  47. headerFormat:
  48. '<span style="color:{point.color}">\u2022</span> ' +
  49. '<span style="font-size: 14px"> {point.point.name}</span><br/>',
  50. pointFormat: '{point.description}<br><span style="font-size: 10px">Source: Wikipedia</span>'
  51. },
  52. title: {
  53. text: 'Relationship between Euler and Venn diagrams'
  54. }
  55. });
  56. </script>
  57. </body>
  58. </html>