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/15/2022',y:[10.66,10.90,10.61,10.89]},{ x:'11/16/2022',y:[10.69,10.70,10.50,10.66]},{ x:'11/17/2022',y:[10.53,10.67,10.49,10.65]},{ x:'11/18/2022',y:[10.71,10.83,10.60,10.61]},{ x:'11/21/2022',y:[10.61,10.66,10.50,10.50]},{ x:'11/22/2022',y:[10.45,10.55,10.41,10.51]},{ x:'11/23/2022',y:[10.63,10.66,10.52,10.53]},{ x:'11/24/2022',y:[10.60,10.78,10.60,10.76]},{ x:'11/25/2022',y:[10.77,10.77,10.64,10.64]},{ x:'11/28/2022',y:[10.46,10.55,10.43,10.45]},{ x:'11/29/2022',y:[10.32,10.46,10.28,10.43]},{ x:'11/30/2022',y:[10.43,10.52,10.41,10.51]},{ x:'12/01/2022',y:[10.78,10.90,10.77,10.85]},{ x:'12/02/2022',y:[10.80,10.90,10.73,10.87]},{ x:'12/05/2022',y:[10.90,11.03,10.87,10.88]},{ x:'12/06/2022',y:[10.85,10.85,10.55,10.57]},{ x:'12/07/2022',y:[10.51,10.60,10.42,10.42]},{ x:'12/08/2022',y:[10.40,10.40,10.24,10.28]},{ x:'12/09/2022',y:[10.40,10.52,10.38,10.47]},{ x:'12/12/2022',y:[10.40,10.40,10.29,10.34]},{ x:'12/13/2022',y:[10.40,10.42,10.30,10.31]},{ x:'12/14/2022',y:[10.38,10.57,10.35,10.57]},{ x:'12/15/2022',y:[10.50,10.57,10.47,10.53]},{ x:'12/16/2022',y:[10.30,10.37,10.25,10.33]},{ x:'12/19/2022',y:[10.27,10.34,10.20,10.27]},{ x:'12/20/2022',y:[10.20,10.31,10.00,10.00]},{ x:'12/21/2022',y:[10.08,10.10,9.98,9.99]},{ x:'12/22/2022',y:[10.12,10.17,10.09,10.10]},{ x:'12/23/2022',y:[9.95,10.00,9.87,9.97]},{ x:'12/26/2022',y:[10.00,10.02,9.91,9.95]},{ x:'12/27/2022',y:[9.99,10.13,9.99,10.06]},{ x:'12/28/2022',y:[9.92,9.93,9.76,9.80]},{ x:'12/29/2022',y:[9.71,9.83,9.68,9.82]},{ x:'12/30/2022',y:[9.98,9.98,9.86,9.86]},{ x:'01/03/2023',y:[9.78,10.05,9.76,10.04]},{ x:'01/04/2023',y:[10.02,10.08,9.99,10.04]},{ x:'01/05/2023',y:[10.14,10.21,10.09,10.11]},{ x:'01/06/2023',y:[10.06,10.37,10.06,10.37]},{ x:'01/09/2023',y:[10.59,10.79,10.59,10.79]},{ x:'01/10/2023',y:[10.81,10.86,10.74,10.83]},{ x:'01/11/2023',y:[10.86,10.88,10.78,10.85]},{ x:'01/12/2023',y:[10.89,10.90,10.77,10.77]},{ x:'01/13/2023',y:[10.96,11.00,10.80,10.80]},{ x:'01/16/2023',y:[10.86,10.92,10.85,10.86]},{ x:'01/17/2023',y:[10.87,10.88,10.80,10.86]},{ x:'01/30/2023',y:[11.30,11.48,11.30,11.47]},{ x:'01/31/2023',y:[11.42,11.49,11.36,11.39]},{ x:'02/01/2023',y:[11.47,11.52,11.41,11.49]},{ x:'02/02/2023',y:[11.63,11.81,11.63,11.80]},{ x:'02/03/2023',y:[11.81,11.87,11.71,11.84]},{ x:'02/06/2023',y:[11.77,11.77,11.60,11.62]},{ x:'02/07/2023',y:[11.56,11.66,11.56,11.64]},{ x:'02/08/2023',y:[11.80,12.08,11.80,12.03]},{ x:'02/09/2023',y:[12.03,12.05,11.93,11.96]},{ x:'02/10/2023',y:[12.00,12.00,11.86,11.88]},{ x:'02/13/2023',y:[11.82,11.82,11.70,11.71]},{ x:'02/14/2023',y:[11.78,11.85,11.77,11.82]},{ x:'02/15/2023',y:[11.70,11.75,11.56,11.60]},{ x:'02/16/2023',y:[11.65,11.78,11.65,11.78]},{ x:'02/17/2023',y:[11.60,11.67,11.56,11.65]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00892 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());