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:'05/04/2023',y:[22.80,22.83,22.71,22.83]},{ x:'05/05/2023',y:[22.84,22.96,22.83,22.87]},{ x:'05/08/2023',y:[23.00,23.07,22.97,22.97]},{ x:'05/09/2023',y:[23.00,23.02,22.87,23.02]},{ x:'05/10/2023',y:[22.98,22.98,22.76,22.80]},{ x:'05/11/2023',y:[22.83,22.87,22.72,22.72]},{ x:'05/12/2023',y:[22.71,22.75,22.58,22.72]},{ x:'05/15/2023',y:[22.72,22.72,22.59,22.64]},{ x:'05/16/2023',y:[22.82,22.93,22.80,22.86]},{ x:'05/17/2023',y:[22.91,23.22,22.91,23.22]},{ x:'05/18/2023',y:[23.41,23.45,23.33,23.41]},{ x:'05/19/2023',y:[23.45,23.50,23.42,23.47]},{ x:'05/22/2023',y:[23.55,23.58,23.52,23.53]},{ x:'05/23/2023',y:[23.59,23.65,23.51,23.57]},{ x:'05/24/2023',y:[23.50,23.50,23.38,23.47]},{ x:'05/25/2023',y:[23.62,23.73,23.59,23.67]},{ x:'05/26/2023',y:[23.93,24.10,23.93,24.10]},{ x:'05/29/2023',y:[24.21,24.50,24.21,24.35]},{ x:'05/30/2023',y:[24.45,24.50,24.40,24.43]},{ x:'05/31/2023',y:[24.42,24.43,24.23,24.40]},{ x:'06/01/2023',y:[24.30,24.30,24.16,24.18]},{ x:'06/02/2023',y:[24.23,24.41,24.23,24.36]},{ x:'06/05/2023',y:[24.32,24.41,24.30,24.30]},{ x:'06/06/2023',y:[24.29,24.44,24.28,24.39]},{ x:'06/07/2023',y:[24.41,24.57,24.41,24.56]},{ x:'06/08/2023',y:[24.57,24.57,24.30,24.31]},{ x:'06/09/2023',y:[24.38,24.52,24.38,24.45]},{ x:'06/12/2023',y:[24.54,24.65,24.54,24.62]},{ x:'06/13/2023',y:[24.77,25.10,24.77,25.04]},{ x:'06/14/2023',y:[25.04,25.12,25.00,25.04]},{ x:'06/15/2023',y:[25.03,25.08,25.00,25.05]},{ x:'06/16/2023',y:[25.01,25.02,24.91,24.95]},{ x:'06/19/2023',y:[24.93,25.15,24.93,25.08]},{ x:'06/20/2023',y:[25.10,25.13,24.90,24.92]},{ x:'06/21/2023',y:[24.92,24.97,24.81,24.91]},{ x:'06/26/2023',y:[24.75,24.79,24.65,24.72]},{ x:'06/27/2023',y:[24.65,24.75,24.57,24.59]},{ x:'06/28/2023',y:[24.67,24.72,24.62,24.65]},{ x:'06/29/2023',y:[24.86,24.92,24.63,24.65]},{ x:'06/30/2023',y:[24.75,24.75,24.54,24.70]},{ x:'07/03/2023',y:[24.75,24.92,24.75,24.89]},{ x:'07/04/2023',y:[24.93,25.06,24.93,25.06]},{ x:'07/05/2023',y:[25.14,25.14,24.96,24.98]},{ x:'07/06/2023',y:[24.84,25.00,24.64,24.65]},{ x:'07/07/2023',y:[24.60,24.60,24.35,24.47]},{ x:'07/10/2023',y:[24.49,24.62,24.35,24.35]},{ x:'07/11/2023',y:[24.56,24.72,24.55,24.69]},{ x:'07/12/2023',y:[24.69,24.71,24.61,24.62]},{ x:'07/13/2023',y:[24.72,25.06,24.72,24.88]},{ x:'07/14/2023',y:[24.97,25.15,24.97,25.13]},{ x:'07/17/2023',y:[25.13,25.13,24.96,24.99]},{ x:'07/18/2023',y:[25.00,25.05,24.90,24.92]},{ x:'07/19/2023',y:[24.93,25.19,24.93,24.98]},{ x:'07/20/2023',y:[24.94,25.05,24.94,24.96]},{ x:'07/21/2023',y:[24.53,24.67,24.44,24.65]},{ x:'07/24/2023',y:[24.63,24.72,24.56,24.61]},{ x:'07/25/2023',y:[24.66,24.83,24.66,24.76]},{ x:'07/26/2023',y:[24.76,24.76,24.46,24.46]},{ x:'07/27/2023',y:[24.54,24.64,24.54,24.60]},{ x:'07/28/2023',y:[24.59,24.73,24.59,24.62]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00728 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());