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:'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]},{ 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]} ] }], 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());