How to enable the "chart context menu" in nicegui highcharts to save image as png or jpg? #9
-
Question
according to the highcharts API, I add the above code in my highchart. It seems not to be working. It was expected that a burger button will show up on the upright corner, but nothing happened. Any idea to make the download function work? |
Beta Was this translation helpful? Give feedback.
Answered by
falkoschindler
Nov 9, 2024
Replies: 1 comment 3 replies
-
Hi @xiaozhanzi, Do you have an example how to use these options in plain HTML? I tried it, but it doesn't seem to work either: <html>
<head>
<script src="https://code.highcharts.com/highcharts.js"></script>
</head>
<body>
<div id="container" style="width: 100%; height: 400px"></div>
<script>
Highcharts.chart("container", {
xAxis: {
categories: ["A", "B"],
},
series: [
{ name: "Alpha", data: [0.1, 0.2] },
{ name: "Beta", data: [0.3, 0.4] },
],
navigation: {
buttonOptions: { enabled: true },
},
exporting: {
enabled: true,
buttons: { enabled: true },
},
});
</script>
</body>
</html> |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh, I see! Then let's add the "exporting" extra: