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/14/2022',y:[12.34,12.41,12.28,12.28]},{ x:'11/15/2022',y:[12.30,12.41,12.28,12.40]},{ x:'11/16/2022',y:[12.44,12.49,12.41,12.47]},{ x:'11/17/2022',y:[12.26,12.28,12.15,12.18]},{ x:'11/18/2022',y:[12.14,12.16,12.11,12.11]},{ x:'11/21/2022',y:[12.02,12.04,11.97,11.99]},{ x:'11/22/2022',y:[11.89,11.89,11.80,11.81]},{ x:'11/23/2022',y:[11.96,11.98,11.94,11.97]},{ x:'11/24/2022',y:[12.20,12.24,12.19,12.19]},{ x:'11/25/2022',y:[12.21,12.24,12.15,12.15]},{ x:'11/28/2022',y:[12.00,12.00,11.92,11.94]},{ x:'11/29/2022',y:[11.85,11.92,11.82,11.92]},{ x:'11/30/2022',y:[11.86,11.89,11.81,11.89]},{ x:'12/01/2022',y:[12.39,12.46,12.37,12.41]},{ x:'12/02/2022',y:[12.36,12.36,12.29,12.32]},{ x:'12/05/2022',y:[12.33,12.37,12.30,12.31]},{ x:'12/06/2022',y:[12.16,12.17,12.10,12.13]},{ x:'12/07/2022',y:[11.98,12.02,11.92,12.01]},{ x:'12/08/2022',y:[11.90,11.94,11.86,11.92]},{ x:'12/09/2022',y:[12.05,12.12,12.04,12.10]},{ x:'12/12/2022',y:[11.99,12.00,11.95,12.00]},{ x:'12/13/2022',y:[12.04,12.07,11.98,11.99]},{ x:'12/14/2022',y:[12.08,12.10,12.05,12.07]},{ x:'12/15/2022',y:[11.93,11.94,11.89,11.92]},{ x:'12/16/2022',y:[11.76,11.78,11.72,11.73]},{ x:'12/19/2022',y:[11.60,11.60,11.55,11.56]},{ x:'12/20/2022',y:[11.47,11.48,11.27,11.28]},{ x:'12/21/2022',y:[11.28,11.30,11.23,11.24]},{ x:'12/22/2022',y:[11.39,11.41,11.38,11.39]},{ x:'12/23/2022',y:[10.99,10.99,10.93,10.95]},{ x:'12/26/2022',y:[10.95,10.95,10.90,10.92]},{ x:'12/27/2022',y:[10.94,10.98,10.94,10.96]},{ x:'12/28/2022',y:[10.58,10.58,10.49,10.51]},{ x:'12/29/2022',y:[10.52,10.52,10.47,10.51]},{ x:'12/30/2022',y:[10.75,10.77,10.70,10.74]},{ x:'01/03/2023',y:[10.74,10.78,10.67,10.78]},{ x:'01/04/2023',y:[10.60,10.62,10.57,10.59]},{ x:'01/05/2023',y:[10.76,10.84,10.73,10.81]},{ x:'01/06/2023',y:[10.72,10.79,10.70,10.76]},{ x:'01/09/2023',y:[10.95,10.95,10.88,10.90]},{ x:'01/10/2023',y:[11.10,11.13,11.05,11.11]},{ x:'01/11/2023',y:[11.25,11.26,11.20,11.23]},{ x:'01/12/2023',y:[11.38,11.44,11.36,11.42]},{ x:'01/13/2023',y:[11.56,11.58,11.50,11.50]},{ x:'01/16/2023',y:[11.59,11.64,11.59,11.62]},{ x:'01/17/2023',y:[11.63,11.63,11.57,11.57]},{ x:'01/30/2023',y:[12.72,12.92,12.72,12.87]},{ x:'01/31/2023',y:[12.67,12.67,12.48,12.50]},{ x:'02/01/2023',y:[12.76,12.81,12.73,12.80]},{ x:'02/02/2023',y:[13.20,13.41,13.20,13.29]},{ x:'02/03/2023',y:[13.35,13.39,13.25,13.28]},{ x:'02/06/2023',y:[13.25,13.33,13.22,13.25]},{ x:'02/07/2023',y:[13.27,13.31,13.27,13.29]},{ x:'02/08/2023',y:[13.46,13.57,13.46,13.54]},{ x:'02/09/2023',y:[13.52,13.53,13.48,13.52]},{ x:'02/10/2023',y:[13.54,13.55,13.46,13.46]},{ x:'02/13/2023',y:[13.22,13.22,13.12,13.20]},{ x:'02/14/2023',y:[13.39,13.41,13.35,13.36]},{ x:'02/15/2023',y:[13.66,13.75,13.66,13.67]},{ x:'02/16/2023',y:[13.83,13.95,13.83,13.94]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00893 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());