@@ -98,8 +98,9 @@ <h1 class="page-title">Source: components/Ontologies/OntologySunburst.vue</h1>
9898<script>
9999import { mapActions, mapGetters, mapState } from "vuex";
100100import { useTheme } from "vuetify";
101- import Sunburst from "highcharts/modules/sunburst";
102101import Highcharts from "highcharts";
102+ import Sunburst from "highcharts/modules/sunburst";
103+ import Exporting from "highcharts/modules/exporting";
103104
104105//Implement Sunburst module for Highcharts
105106// check if Sunburst is a function, if not try .default
@@ -109,6 +110,12 @@ <h1 class="page-title">Source: components/Ontologies/OntologySunburst.vue</h1>
109110 Sunburst.default(Highcharts);
110111}
111112
113+ if (typeof Exporting === "function") {
114+ Exporting(Highcharts);
115+ } else if (typeof Exporting.default === "function") {
116+ Exporting.default(Highcharts);
117+ }
118+
112119export default {
113120 name: "OntologySunburst",
114121 props: {
@@ -239,6 +246,20 @@ <h1 class="page-title">Source: components/Ontologies/OntologySunburst.vue</h1>
239246 filename: "SRAO-Sunburst",
240247 },
241248 },
249+ exporting: {
250+ enabled: true, // explicit enable
251+ sourceWidth: 1500,
252+ sourceHeight: 1600,
253+ scale: 1,
254+ filename: "SRAO-Sunburst",
255+ buttons: {
256+ contextButton: {
257+ // You can customize the menu symbol or position here if needed
258+ // symbol: 'menu',
259+ // align: 'right',
260+ },
261+ },
262+ },
242263 subjectsArrList: [],
243264 nodeClicked: "",
244265 };
0 commit comments