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:'11/10/2022',y:[47.00,47.13,46.67,46.74]},{ x:'11/11/2022',y:[48.02,48.40,47.84,47.90]},{ x:'11/14/2022',y:[48.11,48.40,47.90,47.93]},{ x:'11/15/2022',y:[47.93,48.12,47.66,47.68]},{ x:'11/16/2022',y:[48.20,48.40,47.83,48.40]},{ x:'11/17/2022',y:[48.35,48.35,47.90,48.12]},{ x:'11/18/2022',y:[48.15,48.15,47.45,47.47]},{ x:'11/21/2022',y:[47.46,47.46,46.79,46.84]},{ x:'11/22/2022',y:[47.03,47.24,46.88,47.20]},{ x:'11/23/2022',y:[48.13,48.13,47.42,47.43]},{ x:'11/24/2022',y:[47.56,47.95,47.42,47.93]},{ x:'11/25/2022',y:[48.22,48.40,48.15,48.19]},{ x:'11/28/2022',y:[48.22,48.74,48.10,48.72]},{ x:'11/29/2022',y:[48.72,49.15,48.50,49.15]},{ x:'11/30/2022',y:[49.00,49.11,48.89,49.00]},{ x:'12/01/2022',y:[49.88,50.20,49.85,49.97]},{ x:'12/02/2022',y:[49.97,49.97,49.13,49.13]},{ x:'12/05/2022',y:[49.18,49.37,48.52,48.65]},{ x:'12/06/2022',y:[48.65,48.75,48.40,48.75]},{ x:'12/07/2022',y:[48.60,48.85,48.37,48.37]},{ x:'12/08/2022',y:[48.28,48.47,48.25,48.47]},{ x:'12/09/2022',y:[48.87,49.07,48.29,48.31]},{ x:'12/12/2022',y:[47.72,48.10,47.24,48.03]},{ x:'12/13/2022',y:[47.56,48.23,47.56,48.11]},{ x:'12/14/2022',y:[48.11,49.06,48.11,48.92]},{ x:'12/15/2022',y:[48.89,48.89,48.16,48.23]},{ x:'12/16/2022',y:[47.20,47.27,46.66,46.66]},{ x:'12/19/2022',y:[46.66,47.15,46.65,47.03]},{ x:'12/20/2022',y:[47.55,47.55,46.18,46.22]},{ x:'12/21/2022',y:[47.00,47.55,46.92,46.94]},{ x:'12/22/2022',y:[47.32,47.32,45.88,45.88]},{ x:'12/23/2022',y:[45.79,45.79,44.94,45.00]},{ x:'12/26/2022',y:[44.70,44.95,44.31,44.93]},{ x:'12/27/2022',y:[45.45,45.61,44.95,45.31]},{ x:'12/28/2022',y:[45.39,45.73,45.28,45.64]},{ x:'12/29/2022',y:[45.50,45.50,44.93,45.00]},{ x:'12/30/2022',y:[46.02,46.24,46.01,46.06]},{ x:'01/03/2023',y:[46.01,46.01,45.17,45.82]},{ x:'01/04/2023',y:[45.58,45.78,45.16,45.27]},{ x:'01/05/2023',y:[45.45,45.45,44.86,44.91]},{ x:'01/06/2023',y:[44.70,44.97,44.44,44.47]},{ x:'01/09/2023',y:[44.93,45.29,44.50,45.15]},{ x:'01/10/2023',y:[45.10,45.15,44.40,44.51]},{ x:'01/11/2023',y:[44.31,44.51,43.75,44.11]},{ x:'01/12/2023',y:[44.28,44.30,43.64,43.67]},{ x:'01/13/2023',y:[43.99,44.27,43.50,43.65]},{ x:'01/16/2023',y:[44.23,44.61,44.14,44.29]},{ x:'01/17/2023',y:[44.25,44.57,43.87,44.40]},{ x:'01/30/2023',y:[43.30,43.30,41.73,42.28]},{ x:'01/31/2023',y:[42.71,42.73,41.96,42.23]},{ x:'02/01/2023',y:[42.90,43.25,42.75,43.22]},{ x:'02/02/2023',y:[42.66,42.66,41.38,42.13]},{ x:'02/03/2023',y:[42.14,42.52,41.82,42.16]},{ x:'02/06/2023',y:[42.53,42.92,42.45,42.50]},{ x:'02/07/2023',y:[42.94,43.19,42.70,42.86]},{ x:'02/08/2023',y:[42.86,43.35,42.71,43.10]},{ x:'02/09/2023',y:[43.38,43.39,42.90,43.30]},{ x:'02/10/2023',y:[43.27,43.27,42.86,43.12]},{ x:'02/13/2023',y:[43.12,43.24,42.62,42.80]},{ x:'02/14/2023',y:[43.13,43.15,42.87,43.07]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00653l 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());