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:'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]},{ x:'07/03/2024',y:[28.10,28.20,28.05,28.17]},{ x:'07/04/2024',y:[28.17,28.29,28.05,28.05]},{ x:'07/05/2024',y:[28.03,28.03,27.51,27.76]},{ x:'07/12/2024',y:[28.26,28.42,28.26,28.40]},{ x:'07/15/2024',y:[28.60,28.60,28.47,28.50]},{ x:'07/16/2024',y:[28.53,28.60,28.47,28.55]},{ x:'07/17/2024',y:[28.55,28.72,28.55,28.62]},{ x:'07/18/2024',y:[28.65,28.90,28.65,28.89]},{ x:'07/19/2024',y:[28.71,29.01,28.70,29.01]},{ x:'07/22/2024',y:[29.10,29.32,28.74,28.82]},{ x:'07/23/2024',y:[28.77,28.78,28.70,28.70]},{ x:'07/26/2024',y:[28.55,28.55,27.88,28.06]},{ x:'07/29/2024',y:[28.06,28.53,28.01,28.17]},{ x:'07/30/2024',y:[27.85,27.90,27.77,27.77]},{ x:'07/31/2024',y:[27.77,28.50,27.77,28.50]},{ x:'08/01/2024',y:[28.39,28.45,28.29,28.29]},{ x:'08/02/2024',y:[28.20,28.25,28.08,28.17]},{ x:'08/05/2024',y:[28.17,28.69,28.04,28.25]},{ x:'08/06/2024',y:[28.25,28.59,27.98,28.09]},{ x:'08/07/2024',y:[27.98,28.18,27.91,28.00]},{ x:'08/08/2024',y:[27.92,28.03,27.75,28.03]},{ x:'08/09/2024',y:[27.99,27.99,27.77,27.77]} ] }], 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());