Highcharts.setOptions({
lang: {
resetZoom: "전체보기",
},
});
const chartCallback = function (data) {
let chart = $("#chart").highcharts();
if (chart) {
chart.destroy();
}
if (data) {
const categoriesData = [];
const seriesData = {};
const options = {
chart: {
renderTo: "chart",
zoomType: "x",
panning: true,
panKey: "shift",
},
title: {
text: null,
},
xAxis: {
categories: categoriesData,
},
yAxis: {
min: 0,
allowDecimals: false,
title: {
text: null,
},
labels: {},
},
credits: {
text: "Graceful Light",
href: "https://gracefullight.github.io",
},
tooltip: {
shared: true,
pointFormatter: function () {
if (this.y >= 0) {
return (
'<span style="color:' +
this.series.color +
';">●</span> ' +
this.series.name +
": " +
"<b>" +
Utils.comma(this.y) +
"</b><br/>"
);
}
},
},
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0,
},
},
legend: {
borderWidth: 0,
},
series: seriesData,
};
chart = new Highcharts.Chart(options);
chart.redraw();
} else {
$("#chart").html("no data");
}
};