function getChartColorsArray(e) { if (null !== document.getElementById(e)) { e = document.getElementById(e).getAttribute("data-colors"); if (e) return (e = JSON.parse(e)).map(function(e) { var t = e.replace(" ", ""); return -1 === t.indexOf(",") ? getComputedStyle(document.documentElement).getPropertyValue(t) || t : 2 == (e = e.split(",")).length ? "rgba(" + getComputedStyle(document.documentElement).getPropertyValue(e[0]) + "," + e[1] + ")" : t }) } } var chartCandlestickBasicColors = getChartColorsArray("basic_candlestick"), chartCandlestickComboColors = (chartCandlestickBasicColors && (options = { series: [{ data: [ { x:'03/21/2024',y:[28.20,28.28,28.12,28.12]},{ x:'03/22/2024',y:[28.20,28.20,27.65,27.85]},{ x:'03/25/2024',y:[27.85,28.03,27.72,27.87]},{ x:'03/26/2024',y:[27.87,27.94,27.73,27.87]},{ x:'03/27/2024',y:[27.87,27.95,27.82,27.82]},{ x:'03/28/2024',y:[27.82,28.05,27.73,27.96]},{ x:'03/29/2024',y:[27.90,28.05,27.87,27.87]},{ x:'04/01/2024',y:[28.05,28.40,28.05,28.32]},{ x:'04/02/2024',y:[28.33,28.40,28.24,28.24]},{ x:'04/03/2024',y:[28.24,28.24,28.07,28.20]},{ x:'04/08/2024',y:[28.30,28.35,27.83,28.20]},{ x:'04/09/2024',y:[28.10,28.15,27.93,27.94]},{ x:'04/10/2024',y:[27.92,28.05,27.84,27.90]},{ x:'04/11/2024',y:[27.81,27.93,27.71,27.92]},{ x:'04/12/2024',y:[27.81,27.95,27.78,27.85]},{ x:'04/15/2024',y:[27.84,28.32,27.54,28.29]},{ x:'04/16/2024',y:[28.25,28.57,28.15,28.37]},{ x:'04/17/2024',y:[28.37,28.37,28.17,28.22]},{ x:'04/18/2024',y:[28.41,28.85,28.41,28.70]},{ x:'04/19/2024',y:[28.69,28.69,28.46,28.53]},{ x:'04/22/2024',y:[28.52,28.78,28.52,28.60]},{ x:'04/23/2024',y:[28.60,28.64,28.43,28.61]},{ x:'04/24/2024',y:[28.61,28.61,28.37,28.49]},{ x:'04/25/2024',y:[28.49,28.66,28.40,28.56]},{ x:'04/26/2024',y:[28.57,28.95,28.57,28.95]},{ x:'04/29/2024',y:[28.97,29.48,28.97,29.33]},{ x:'04/30/2024',y:[29.33,29.39,29.15,29.15]},{ x:'05/02/2024',y:[29.10,29.44,29.10,29.39]},{ x:'05/03/2024',y:[29.50,29.67,29.50,29.54]},{ x:'05/06/2024',y:[29.99,29.99,29.40,29.41]},{ x:'05/07/2024',y:[29.48,29.49,29.28,29.44]},{ x:'05/08/2024',y:[29.50,29.50,29.27,29.35]},{ x:'05/09/2024',y:[29.34,29.48,29.32,29.41]},{ x:'05/10/2024',y:[29.62,29.62,29.34,29.46]},{ x:'05/13/2024',y:[29.49,29.53,29.24,29.46]},{ x:'05/14/2024',y:[29.46,29.46,29.22,29.24]},{ x:'05/15/2024',y:[29.23,29.24,29.02,29.19]},{ x:'05/16/2024',y:[29.01,29.22,28.94,29.20]},{ x:'05/17/2024',y:[29.18,29.29,29.08,29.16]},{ x:'05/20/2024',y:[29.25,29.70,29.25,29.66]},{ x:'05/21/2024',y:[29.66,29.66,29.46,29.52]},{ x:'05/22/2024',y:[29.50,29.67,29.41,29.54]},{ x:'05/23/2024',y:[29.50,29.50,29.03,29.03]},{ x:'05/24/2024',y:[28.98,29.01,28.86,28.91]},{ x:'06/11/2024',y:[28.35,28.44,28.01,28.16]},{ x:'06/12/2024',y:[28.04,28.15,28.04,28.05]},{ x:'06/13/2024',y:[28.54,28.54,27.96,28.05]},{ x:'06/14/2024',y:[27.92,28.18,27.91,28.15]},{ x:'06/17/2024',y:[28.15,28.25,28.09,28.16]},{ x:'06/18/2024',y:[28.16,28.21,28.02,28.16]},{ x:'06/19/2024',y:[28.16,28.16,27.99,28.08]},{ x:'06/20/2024',y:[28.18,28.20,27.98,28.00]},{ x:'06/21/2024',y:[27.98,27.98,27.65,27.71]},{ x:'06/24/2024',y:[27.71,28.00,27.60,28.00]},{ x:'06/25/2024',y:[28.14,28.14,27.87,27.97]},{ x:'06/26/2024',y:[27.73,28.13,27.73,27.98]},{ x:'06/27/2024',y:[28.00,28.00,27.73,27.96]},{ x:'06/28/2024',y:[27.99,28.07,27.94,28.00]},{ x:'07/01/2024',y:[27.76,27.88,27.76,27.85]},{ x:'07/02/2024',y:[27.85,28.25,27.85,28.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "006206 Daily 股市資訊", align: "left", style: { fontWeight: 500 } }, xaxis: { labels: { format: 'dd/MM', } }, yaxis: { tooltip: { enabled: !0 } } }, (chart = new ApexCharts(document.querySelector("#basic_candlestick"), options)).render()), (chart = new ApexCharts(document.querySelector("#1"), options)).render());