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:'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]},{ x:'07/31/2023',y:[24.73,24.95,24.62,24.64]},{ x:'08/01/2023',y:[24.75,24.90,24.75,24.87]},{ x:'08/02/2023',y:[24.87,24.87,24.45,24.48]},{ x:'08/04/2023',y:[24.48,24.48,24.29,24.36]},{ x:'08/07/2023',y:[24.36,24.57,24.36,24.54]},{ x:'08/08/2023',y:[24.52,24.54,24.23,24.32]},{ x:'08/09/2023',y:[24.22,24.35,24.17,24.28]},{ x:'08/10/2023',y:[24.26,24.26,23.99,24.00]},{ x:'08/11/2023',y:[24.10,24.11,23.91,23.96]},{ x:'08/14/2023',y:[23.84,23.84,23.54,23.62]},{ x:'08/15/2023',y:[23.70,23.85,23.70,23.75]},{ x:'08/16/2023',y:[23.70,23.75,23.60,23.70]},{ x:'08/17/2023',y:[23.54,23.75,23.45,23.69]},{ x:'08/18/2023',y:[23.66,23.73,23.55,23.57]},{ x:'08/21/2023',y:[23.60,23.60,23.45,23.46]},{ x:'08/22/2023',y:[23.55,23.65,23.52,23.52]},{ x:'08/23/2023',y:[23.52,23.68,23.52,23.68]},{ x:'08/24/2023',y:[23.80,24.04,23.80,24.02]},{ x:'08/25/2023',y:[23.82,23.82,23.66,23.66]},{ x:'08/28/2023',y:[23.70,23.96,23.70,23.89]},{ x:'08/29/2023',y:[23.96,24.10,23.91,24.09]},{ x:'08/30/2023',y:[24.25,24.32,24.25,24.28]},{ x:'08/31/2023',y:[24.30,24.30,24.19,24.19]},{ x:'09/01/2023',y:[24.11,24.33,24.11,24.27]},{ x:'09/04/2023',y:[24.23,24.46,24.23,24.45]},{ x:'09/05/2023',y:[24.43,24.55,24.43,24.55]},{ x:'09/06/2023',y:[24.55,24.60,24.49,24.52]},{ x:'09/07/2023',y:[24.43,24.45,24.37,24.37]},{ x:'09/08/2023',y:[24.31,24.31,24.18,24.25]},{ x:'09/11/2023',y:[24.28,24.29,24.17,24.22]},{ x:'09/12/2023',y:[24.20,24.53,24.20,24.53]},{ x:'09/13/2023',y:[24.56,24.65,24.51,24.51]},{ x:'09/14/2023',y:[24.65,24.87,24.64,24.86]} ] }], 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());