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:[13.30,13.30,13.24,13.24]},{ x:'11/21/2022',y:[13.16,13.18,13.10,13.10]},{ x:'11/22/2022',y:[12.96,12.98,12.93,12.95]},{ x:'11/23/2022',y:[13.15,13.19,13.14,13.18]},{ x:'11/24/2022',y:[13.46,13.47,13.43,13.44]},{ x:'11/25/2022',y:[13.49,13.51,13.44,13.44]},{ x:'11/28/2022',y:[13.26,13.28,13.21,13.23]},{ x:'11/29/2022',y:[13.11,13.24,13.11,13.23]},{ x:'11/30/2022',y:[13.15,13.17,13.12,13.17]},{ x:'12/01/2022',y:[13.62,13.75,13.60,13.62]},{ x:'12/02/2022',y:[13.57,13.57,13.50,13.50]},{ x:'12/05/2022',y:[13.49,13.50,13.45,13.46]},{ x:'12/06/2022',y:[13.22,13.22,13.15,13.15]},{ x:'12/07/2022',y:[12.97,13.01,12.95,12.98]},{ x:'12/08/2022',y:[12.80,12.82,12.76,12.80]},{ x:'12/09/2022',y:[12.95,13.02,12.95,13.00]},{ x:'12/12/2022',y:[12.98,13.00,12.95,12.98]},{ x:'12/13/2022',y:[13.00,13.00,12.94,12.97]},{ x:'12/14/2022',y:[12.98,13.01,12.96,13.00]},{ x:'12/15/2022',y:[12.86,12.86,12.80,12.84]},{ x:'12/16/2022',y:[12.67,12.67,12.61,12.62]},{ x:'12/19/2022',y:[12.38,12.44,12.35,12.36]},{ x:'12/20/2022',y:[12.27,12.28,12.10,12.10]},{ x:'12/21/2022',y:[12.03,12.08,12.01,12.04]},{ x:'12/22/2022',y:[12.14,12.21,12.14,12.19]},{ x:'12/23/2022',y:[11.74,11.74,11.68,11.73]},{ x:'12/26/2022',y:[11.70,11.71,11.66,11.67]},{ x:'12/27/2022',y:[11.68,11.72,11.68,11.68]},{ x:'12/28/2022',y:[11.24,11.24,11.18,11.20]},{ x:'12/29/2022',y:[11.22,11.25,11.21,11.25]},{ x:'12/30/2022',y:[11.51,11.53,11.49,11.50]},{ x:'01/03/2023',y:[11.50,11.54,11.43,11.54]},{ x:'01/04/2023',y:[11.27,11.33,11.27,11.32]},{ x:'01/05/2023',y:[11.43,11.49,11.43,11.48]},{ x:'01/06/2023',y:[11.39,11.45,11.38,11.43]},{ x:'01/09/2023',y:[11.69,11.71,11.64,11.71]},{ x:'01/10/2023',y:[11.90,11.93,11.88,11.90]},{ x:'01/11/2023',y:[12.00,12.02,11.95,11.98]},{ x:'01/12/2023',y:[12.13,12.18,12.13,12.18]},{ x:'01/13/2023',y:[12.30,12.38,12.27,12.28]},{ x:'01/16/2023',y:[12.25,12.35,12.25,12.32]},{ x:'01/17/2023',y:[12.30,12.30,12.26,12.26]},{ x:'01/30/2023',y:[13.40,13.85,13.40,13.81]},{ x:'01/31/2023',y:[13.54,13.54,13.31,13.33]},{ x:'02/01/2023',y:[13.58,13.58,13.53,13.57]},{ x:'02/02/2023',y:[14.04,14.08,13.97,14.01]},{ x:'02/03/2023',y:[14.16,14.17,14.06,14.07]},{ x:'02/06/2023',y:[14.06,14.15,14.05,14.07]},{ x:'02/07/2023',y:[14.17,14.21,14.17,14.21]},{ x:'02/08/2023',y:[14.43,14.52,14.43,14.52]},{ x:'02/09/2023',y:[14.52,14.62,14.52,14.62]},{ x:'02/10/2023',y:[14.70,14.70,14.58,14.60]},{ x:'02/13/2023',y:[14.31,14.31,14.18,14.23]},{ x:'02/14/2023',y:[14.40,14.42,14.39,14.41]},{ x:'02/15/2023',y:[14.70,14.78,14.70,14.71]},{ x:'02/16/2023',y:[14.83,14.94,14.83,14.93]},{ x:'02/17/2023',y:[14.50,14.51,14.43,14.43]},{ x:'02/20/2023',y:[14.43,14.52,14.43,14.49]},{ x:'02/21/2023',y:[14.49,14.49,14.44,14.47]},{ x:'02/22/2023',y:[14.03,14.13,14.03,14.11]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00895 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());