metadata.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Privacy Policy</title>
  6. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  7. <link rel='stylesheet prefetch' href='https://fperucic.github.io/treant-js/Treant.css'>
  8. <style type="text/css">
  9. .chart { height: 159px; width: 332px; margin: 5px; margin: 5px auto; border: 3px solid #DDD; border-radius: 3px; }
  10. .data-category {
  11. background-color: rgba(255,0,0,0.4);
  12. }
  13. .DC {
  14. background-color: rgba(255,0,0,0.4);
  15. }
  16. .data-type {
  17. background-color: rgba(150,50,50,0.4);
  18. }
  19. .DT {
  20. background-color: rgba(150,50,50,0.4);
  21. }
  22. .process {
  23. background-color: rgba(0,0,250,0.4);
  24. }
  25. .legal-basis {
  26. background-color: rgba(0,200,250,0.4);
  27. }
  28. .data-source {
  29. background-color: rgba(100,200,50,0.4);
  30. }
  31. .processor {
  32. background-color: rgba(250,200,0,0.4);
  33. }
  34. .third-party {
  35. background-color: rgba(150,255,0,0.4);
  36. }
  37. #legend {
  38. position: absolute;
  39. top: 10px;
  40. right: 250px;
  41. padding: 5px;
  42. border: 2px dashed black;
  43. background: white;
  44. }
  45. </style>
  46. <body>
  47. <div>
  48. <div id="metadata" style="height: 500px; margin: 5px; width: auto;"> </div>
  49. </div>
  50. <script src="https://fperucic.github.io/treant-js/Treant.js"></script>
  51. <script src="https://fperucic.github.io/treant-js/vendor/raphael.js"></script>
  52. <script type="text/javascript">
  53. var simple_chart_config = {
  54. chart: {
  55. container: "#metadata",
  56. // rootOrientation: "WEST",
  57. levelSeparation: 50,
  58. siblingSeparation: 25,
  59. subTeeSeparation: 25,
  60. connectors: {
  61. type: "step",
  62. style: {
  63. "stroke-width": 2
  64. }
  65. },
  66. },
  67. connectors: {
  68. type: "straight",
  69. style: {
  70. "stroke-width": 2,
  71. "stroke": "#ccc"
  72. }
  73. },
  74. nodeStructure: {
  75. text: { name: "Policy" },
  76. children: [
  77. {
  78. text: { name: "Data Collection" },
  79. children: [
  80. {
  81. text: { name: "source" },
  82. children: [
  83. {
  84. text: { name: "Data Subject" },
  85. },
  86. {
  87. text: { name: "Third Party" },
  88. },
  89. ]
  90. },
  91. {
  92. text: { name: "legal basis" },
  93. children: [
  94. {
  95. text: { name: "Necessary" }
  96. },
  97. {
  98. text: { name: "Opt-In" }
  99. }
  100. ]
  101. },
  102. {
  103. text: { name: "mechanism" },
  104. children: [
  105. {
  106. text: { name: "manual" }
  107. },
  108. {
  109. text: { name: "automatic" }
  110. }
  111. ]
  112. }
  113. ]
  114. },
  115. // {
  116. // text: { name: "Data Usage" },
  117. // children: [
  118. // {
  119. // text: { name: "Operate Services" }
  120. // },
  121. // {
  122. // text: { name: "Security" }
  123. // },
  124. // {
  125. // text: { name: "Legal Obligations" }
  126. // },
  127. // {
  128. // text: { name: "Other" },
  129. // children: [
  130. // {
  131. // text: { name: "Improve Services" }
  132. // },
  133. // {
  134. // text: { name: "Analytics" }
  135. // },
  136. // {
  137. // text: { name: "Marketing" }
  138. // }
  139. // ]
  140. // }
  141. // ]
  142. // }
  143. ]
  144. }
  145. };
  146. $(document).ready(function() {
  147. new Treant(simple_chart_config);
  148. });
  149. </script>
  150. </body>
  151. </html>