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:'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]},{ x:'02/23/2023',y:[14.26,14.50,14.26,14.48]},{ x:'02/24/2023',y:[14.53,14.60,14.53,14.57]},{ x:'03/01/2023',y:[14.57,14.60,14.37,14.59]},{ x:'03/02/2023',y:[14.40,14.41,14.29,14.34]},{ x:'03/03/2023',y:[14.44,14.47,14.42,14.47]},{ x:'03/06/2023',y:[14.72,14.84,14.72,14.79]},{ x:'03/07/2023',y:[14.76,14.76,14.69,14.75]},{ x:'03/08/2023',y:[14.57,14.58,14.51,14.53]},{ x:'03/09/2023',y:[14.60,14.63,14.59,14.61]},{ x:'03/10/2023',y:[14.28,14.28,14.17,14.19]},{ x:'03/13/2023',y:[14.18,14.24,14.13,14.24]},{ x:'03/14/2023',y:[14.07,14.07,13.96,13.97]},{ x:'03/15/2023',y:[14.20,14.37,14.20,14.32]},{ x:'03/16/2023',y:[14.25,14.25,14.19,14.21]},{ x:'03/17/2023',y:[14.28,14.54,14.28,14.54]},{ x:'03/20/2023',y:[14.50,14.50,14.37,14.40]},{ x:'03/21/2023',y:[14.50,14.54,14.49,14.51]},{ x:'03/22/2023',y:[14.77,14.86,14.77,14.85]},{ x:'03/23/2023',y:[14.80,14.86,14.78,14.85]},{ x:'03/24/2023',y:[14.87,14.92,14.85,14.90]},{ x:'03/27/2023',y:[14.89,14.89,14.78,14.80]},{ x:'03/28/2023',y:[14.76,14.78,14.71,14.72]},{ x:'03/29/2023',y:[14.72,14.75,14.71,14.75]},{ x:'03/30/2023',y:[14.89,14.97,14.89,14.95]},{ x:'03/31/2023',y:[15.15,15.17,15.13,15.15]},{ x:'04/06/2023',y:[14.87,14.87,14.77,14.78]},{ x:'04/07/2023',y:[14.79,14.80,14.76,14.77]},{ x:'04/10/2023',y:[14.76,14.77,14.72,14.72]},{ x:'04/11/2023',y:[14.77,14.92,14.77,14.89]} ] }], 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());