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/02/2023',y:[11.16,11.29,11.16,11.28]},{ x:'02/03/2023',y:[11.30,11.36,11.24,11.33]},{ x:'02/06/2023',y:[11.32,11.32,11.17,11.17]},{ x:'02/07/2023',y:[11.16,11.23,11.15,11.21]},{ x:'02/08/2023',y:[11.27,11.41,11.27,11.37]},{ x:'02/09/2023',y:[11.34,11.37,11.31,11.35]},{ x:'02/10/2023',y:[11.33,11.33,11.27,11.29]},{ x:'02/13/2023',y:[11.29,11.29,11.15,11.19]},{ x:'02/14/2023',y:[11.24,11.33,11.24,11.31]},{ x:'02/15/2023',y:[11.30,11.30,11.20,11.21]},{ x:'02/16/2023',y:[11.16,11.18,11.12,11.16]},{ x:'02/17/2023',y:[11.12,11.12,11.06,11.08]},{ x:'02/20/2023',y:[11.08,11.18,11.08,11.14]},{ x:'02/21/2023',y:[11.15,11.28,11.15,11.27]},{ x:'02/22/2023',y:[11.16,11.21,11.15,11.18]},{ x:'02/23/2023',y:[11.20,11.40,11.20,11.36]},{ x:'02/24/2023',y:[11.38,11.47,11.36,11.37]},{ x:'03/01/2023',y:[11.35,11.40,11.25,11.38]},{ x:'03/02/2023',y:[11.39,11.48,11.39,11.46]},{ x:'03/03/2023',y:[11.50,11.58,11.50,11.57]},{ x:'03/06/2023',y:[11.65,11.76,11.64,11.73]},{ x:'03/07/2023',y:[11.73,11.84,11.69,11.81]},{ x:'03/08/2023',y:[11.76,11.78,11.70,11.76]},{ x:'03/09/2023',y:[11.80,11.83,11.78,11.79]},{ x:'03/10/2023',y:[11.73,11.75,11.64,11.65]},{ x:'03/13/2023',y:[11.56,11.66,11.47,11.64]},{ x:'03/14/2023',y:[11.55,11.59,11.50,11.53]},{ x:'03/15/2023',y:[11.59,11.69,11.52,11.52]},{ x:'03/16/2023',y:[11.50,11.50,11.40,11.42]},{ x:'03/17/2023',y:[11.48,11.59,11.48,11.59]},{ x:'03/20/2023',y:[11.61,11.66,11.57,11.59]},{ x:'03/21/2023',y:[11.64,11.69,11.60,11.60]},{ x:'03/22/2023',y:[11.63,11.71,11.63,11.71]},{ x:'03/23/2023',y:[11.70,11.77,11.65,11.73]},{ x:'03/24/2023',y:[11.77,11.77,11.71,11.75]},{ x:'03/27/2023',y:[11.75,11.78,11.71,11.75]},{ x:'03/28/2023',y:[11.73,11.74,11.59,11.61]},{ x:'03/29/2023',y:[11.64,11.66,11.51,11.56]},{ x:'03/30/2023',y:[11.60,11.68,11.60,11.65]},{ x:'03/31/2023',y:[11.68,11.78,11.68,11.71]},{ x:'04/06/2023',y:[11.71,11.71,11.60,11.63]},{ x:'04/07/2023',y:[11.64,11.71,11.64,11.70]},{ x:'04/10/2023',y:[11.70,11.75,11.68,11.72]},{ x:'04/11/2023',y:[11.72,11.80,11.70,11.76]},{ x:'04/12/2023',y:[11.76,11.83,11.75,11.81]},{ x:'04/13/2023',y:[11.80,11.80,11.70,11.71]},{ x:'04/14/2023',y:[11.72,11.79,11.70,11.78]},{ x:'04/17/2023',y:[11.78,11.80,11.74,11.80]},{ x:'04/18/2023',y:[11.80,11.80,11.69,11.71]},{ x:'04/19/2023',y:[11.72,11.73,11.63,11.65]},{ x:'04/20/2023',y:[11.64,11.64,11.56,11.58]},{ x:'04/21/2023',y:[11.58,11.60,11.40,11.40]},{ x:'04/24/2023',y:[11.39,11.47,11.35,11.46]},{ x:'04/25/2023',y:[11.48,11.48,11.21,11.21]},{ x:'04/26/2023',y:[11.20,11.21,11.13,11.19]},{ x:'04/27/2023',y:[11.19,11.32,11.16,11.28]},{ x:'04/28/2023',y:[11.35,11.39,11.30,11.36]},{ x:'05/02/2023',y:[11.36,11.44,11.36,11.42]},{ x:'05/03/2023',y:[11.21,11.32,11.21,11.31]},{ x:'05/04/2023',y:[11.23,11.34,11.23,11.33]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00900 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());