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/18/2022',y:[38.13,38.24,38.13,38.22]},{ x:'11/21/2022',y:[38.32,38.37,38.32,38.37]},{ x:'11/22/2022',y:[38.45,38.45,38.40,38.45]},{ x:'11/23/2022',y:[38.74,38.86,38.74,38.86]},{ x:'11/24/2022',y:[39.25,39.32,39.20,39.20]},{ x:'11/25/2022',y:[39.14,39.14,39.09,39.10]},{ x:'11/28/2022',y:[39.17,39.37,39.17,39.33]},{ x:'11/29/2022',y:[39.18,39.18,38.85,38.85]},{ x:'11/30/2022',y:[38.71,38.71,38.50,38.52]},{ x:'12/01/2022',y:[38.90,38.90,38.64,38.64]},{ x:'12/02/2022',y:[39.25,39.25,39.09,39.11]},{ x:'12/05/2022',y:[39.44,39.44,39.35,39.39]},{ x:'12/06/2022',y:[39.34,39.34,39.07,39.30]},{ x:'12/07/2022',y:[39.54,39.54,39.51,39.52]},{ x:'12/08/2022',y:[39.98,40.05,39.97,40.00]},{ x:'12/09/2022',y:[40.00,40.16,40.00,40.15]},{ x:'12/12/2022',y:[39.81,39.99,39.70,39.97]},{ x:'12/13/2022',y:[39.84,39.84,39.79,39.80]},{ x:'12/14/2022',y:[39.97,40.00,39.95,39.97]},{ x:'12/15/2022',y:[39.86,39.87,39.80,39.81]},{ x:'12/16/2022',y:[40.01,40.03,39.96,39.99]},{ x:'12/19/2022',y:[39.61,39.76,39.61,39.76]},{ x:'12/20/2022',y:[39.54,39.56,39.13,39.19]},{ x:'12/21/2022',y:[38.71,38.74,38.57,38.73]},{ x:'12/22/2022',y:[38.90,38.94,38.90,38.91]},{ x:'12/23/2022',y:[38.88,38.97,38.88,38.95]},{ x:'12/26/2022',y:[38.95,39.12,38.85,38.96]},{ x:'12/27/2022',y:[38.87,38.87,38.73,38.79]},{ x:'12/28/2022',y:[38.46,38.47,38.26,38.32]},{ x:'12/29/2022',y:[38.00,38.10,38.00,38.01]},{ x:'12/30/2022',y:[38.10,38.18,38.10,38.18]},{ x:'01/03/2023',y:[38.01,38.05,37.92,38.05]},{ x:'01/04/2023',y:[38.30,38.37,38.30,38.34]},{ x:'01/05/2023',y:[38.36,38.60,38.36,38.57]},{ x:'01/06/2023',y:[38.57,38.67,38.57,38.63]},{ x:'01/09/2023',y:[39.07,39.15,39.07,39.08]},{ x:'01/10/2023',y:[39.36,39.38,39.30,39.33]},{ x:'01/11/2023',y:[39.13,39.19,39.13,39.16]},{ x:'01/12/2023',y:[39.49,39.61,39.49,39.61]},{ x:'01/13/2023',y:[39.93,39.99,39.87,39.96]},{ x:'01/16/2023',y:[39.96,39.96,39.88,39.90]},{ x:'01/17/2023',y:[39.92,39.92,39.89,39.89]},{ x:'01/30/2023',y:[39.91,39.93,39.79,39.84]},{ x:'01/31/2023',y:[39.23,39.23,38.96,38.99]},{ x:'02/01/2023',y:[39.13,39.20,39.11,39.17]},{ x:'02/02/2023',y:[39.24,39.25,39.19,39.23]},{ x:'02/03/2023',y:[39.42,39.45,39.40,39.43]},{ x:'02/06/2023',y:[39.19,39.31,39.16,39.18]},{ x:'02/07/2023',y:[39.05,39.05,38.92,38.94]},{ x:'02/08/2023',y:[38.83,38.83,38.69,38.75]},{ x:'02/09/2023',y:[38.81,38.81,38.74,38.78]},{ x:'02/10/2023',y:[38.59,38.59,38.45,38.53]},{ x:'02/13/2023',y:[38.23,38.26,38.18,38.26]},{ x:'02/14/2023',y:[38.36,38.37,38.34,38.37]},{ x:'02/15/2023',y:[38.37,38.41,38.34,38.40]},{ x:'02/16/2023',y:[38.25,38.27,38.18,38.24]},{ x:'02/17/2023',y:[38.02,38.02,37.78,37.80]},{ x:'02/20/2023',y:[38.09,38.09,37.90,37.92]},{ x:'02/21/2023',y:[38.00,38.00,37.90,37.92]},{ x:'02/22/2023',y:[37.77,37.77,37.56,37.62]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00740b 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());