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:'02/17/2023',y:[11.60,11.67,11.56,11.65]},{ x:'02/20/2023',y:[11.65,11.79,11.59,11.75]},{ x:'02/21/2023',y:[11.75,11.92,11.75,11.88]},{ x:'02/22/2023',y:[11.72,11.74,11.65,11.68]},{ x:'02/23/2023',y:[11.76,12.03,11.76,11.97]},{ x:'02/24/2023',y:[12.04,12.12,11.94,11.96]},{ x:'03/01/2023',y:[11.80,12.16,11.77,12.15]},{ x:'03/02/2023',y:[12.15,12.15,12.00,12.10]},{ x:'03/03/2023',y:[12.16,12.30,12.10,12.14]},{ x:'03/06/2023',y:[12.24,12.33,12.21,12.26]},{ x:'03/07/2023',y:[12.25,12.33,12.19,12.31]},{ x:'03/08/2023',y:[12.20,12.27,12.18,12.26]},{ x:'03/09/2023',y:[12.31,12.37,12.30,12.30]},{ x:'03/10/2023',y:[12.13,12.17,12.02,12.04]},{ x:'03/13/2023',y:[11.95,12.02,11.83,12.01]},{ x:'03/14/2023',y:[11.90,11.94,11.83,11.84]},{ x:'03/15/2023',y:[12.00,12.12,11.92,11.92]},{ x:'03/16/2023',y:[11.83,11.97,11.83,11.93]},{ x:'03/17/2023',y:[12.11,12.19,12.07,12.14]},{ x:'03/20/2023',y:[12.18,12.23,12.14,12.15]},{ x:'03/21/2023',y:[12.25,12.28,12.13,12.13]},{ x:'03/22/2023',y:[12.26,12.35,12.25,12.34]},{ x:'03/23/2023',y:[12.31,12.45,12.30,12.45]},{ x:'03/24/2023',y:[12.50,12.50,12.40,12.44]},{ x:'03/27/2023',y:[12.41,12.44,12.32,12.33]},{ x:'03/28/2023',y:[12.28,12.32,12.12,12.13]},{ x:'03/29/2023',y:[12.20,12.21,11.95,12.03]},{ x:'03/30/2023',y:[12.15,12.18,12.12,12.17]},{ x:'03/31/2023',y:[12.21,12.27,12.18,12.21]},{ x:'04/06/2023',y:[12.12,12.13,12.03,12.10]},{ x:'04/07/2023',y:[12.15,12.21,12.12,12.16]},{ x:'04/10/2023',y:[12.18,12.25,12.17,12.19]},{ x:'04/11/2023',y:[12.19,12.33,12.17,12.32]},{ x:'04/12/2023',y:[12.31,12.31,12.21,12.29]},{ x:'04/13/2023',y:[12.27,12.27,12.11,12.12]},{ x:'04/14/2023',y:[12.18,12.28,12.17,12.27]},{ x:'04/17/2023',y:[12.21,12.30,12.17,12.28]},{ x:'04/18/2023',y:[12.28,12.30,12.18,12.20]},{ x:'04/19/2023',y:[12.19,12.19,12.05,12.06]},{ x:'04/20/2023',y:[12.07,12.07,11.91,11.93]},{ x:'04/21/2023',y:[11.94,11.96,11.69,11.70]},{ x:'04/24/2023',y:[11.64,11.72,11.60,11.69]},{ x:'04/25/2023',y:[11.69,11.69,11.31,11.33]},{ x:'04/26/2023',y:[11.22,11.29,11.13,11.28]},{ x:'04/27/2023',y:[11.25,11.43,11.21,11.34]},{ x:'04/28/2023',y:[11.44,11.52,11.43,11.47]},{ x:'05/02/2023',y:[11.50,11.65,11.43,11.61]},{ x:'05/03/2023',y:[11.52,11.60,11.50,11.59]},{ x:'05/04/2023',y:[11.58,11.62,11.53,11.61]},{ x:'05/05/2023',y:[11.62,11.70,11.59,11.63]},{ x:'05/08/2023',y:[11.75,11.80,11.70,11.71]},{ x:'05/09/2023',y:[11.71,11.71,11.57,11.67]},{ x:'05/10/2023',y:[11.63,11.63,11.50,11.57]},{ x:'05/11/2023',y:[11.57,11.60,11.44,11.44]},{ x:'05/12/2023',y:[11.39,11.47,11.36,11.46]},{ x:'05/15/2023',y:[11.38,11.38,11.29,11.35]},{ x:'05/16/2023',y:[11.45,11.51,11.44,11.47]},{ x:'05/17/2023',y:[11.46,11.60,11.46,11.59]},{ x:'05/18/2023',y:[11.75,11.77,11.68,11.73]},{ x:'05/19/2023',y:[11.82,11.83,11.75,11.80]} ] }], 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());