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/23/2024',y:[10.55,10.58,10.54,10.57]},{ x:'01/24/2024',y:[10.56,10.60,10.55,10.55]},{ x:'01/25/2024',y:[10.60,10.66,10.60,10.65]},{ x:'01/26/2024',y:[10.65,10.65,10.60,10.61]},{ x:'01/29/2024',y:[10.61,10.70,10.61,10.70]},{ x:'01/30/2024',y:[10.70,10.74,10.69,10.72]},{ x:'01/31/2024',y:[10.68,10.68,10.61,10.62]},{ x:'02/01/2024',y:[10.62,10.62,10.58,10.61]},{ x:'02/02/2024',y:[10.66,10.71,10.66,10.69]},{ x:'02/05/2024',y:[10.69,10.75,10.67,10.74]},{ x:'02/15/2024',y:[11.05,11.20,11.05,11.16]},{ x:'02/16/2024',y:[11.15,11.19,11.10,11.10]},{ x:'02/19/2024',y:[11.10,11.11,11.05,11.09]},{ x:'02/20/2024',y:[11.09,11.15,11.05,11.15]},{ x:'02/21/2024',y:[11.10,11.15,11.08,11.12]},{ x:'02/22/2024',y:[11.15,11.27,11.15,11.27]},{ x:'02/23/2024',y:[11.36,11.37,11.31,11.34]},{ x:'02/26/2024',y:[11.34,11.38,11.28,11.37]},{ x:'02/27/2024',y:[11.35,11.40,11.23,11.33]},{ x:'02/29/2024',y:[11.30,11.38,11.25,11.36]},{ x:'03/01/2024',y:[11.36,11.37,11.32,11.33]},{ x:'03/04/2024',y:[11.41,11.62,11.41,11.58]},{ x:'03/05/2024',y:[11.62,11.72,11.61,11.72]},{ x:'03/06/2024',y:[11.66,11.82,11.61,11.81]},{ x:'03/07/2024',y:[11.88,12.01,11.87,11.99]},{ x:'03/08/2024',y:[12.10,12.25,11.93,12.00]},{ x:'03/11/2024',y:[11.94,12.02,11.93,11.94]},{ x:'03/12/2024',y:[11.94,12.13,11.92,12.12]},{ x:'03/13/2024',y:[12.18,12.26,12.15,12.17]},{ x:'03/14/2024',y:[12.15,12.18,12.04,12.11]},{ x:'03/15/2024',y:[12.08,12.13,12.03,12.09]},{ x:'03/18/2024',y:[12.08,12.24,12.08,12.24]},{ x:'03/19/2024',y:[12.21,12.31,12.17,12.29]},{ x:'03/20/2024',y:[12.30,12.40,12.23,12.25]},{ x:'03/21/2024',y:[12.38,12.51,12.38,12.50]},{ x:'03/22/2024',y:[12.51,12.54,12.43,12.49]},{ x:'03/25/2024',y:[12.49,12.53,12.46,12.49]},{ x:'03/26/2024',y:[12.49,12.60,12.30,12.37]},{ x:'03/27/2024',y:[12.39,12.48,12.37,12.46]},{ x:'03/28/2024',y:[12.49,12.50,12.38,12.46]},{ x:'03/29/2024',y:[12.46,12.53,12.43,12.51]},{ x:'04/01/2024',y:[12.52,12.58,12.48,12.48]},{ x:'04/02/2024',y:[12.51,12.68,12.51,12.66]},{ x:'04/03/2024',y:[12.60,12.66,12.55,12.62]},{ x:'04/08/2024',y:[12.63,12.72,12.63,12.69]},{ x:'04/09/2024',y:[12.74,12.89,12.72,12.88]},{ x:'04/10/2024',y:[12.92,12.92,12.85,12.91]},{ x:'04/11/2024',y:[12.85,12.87,12.79,12.85]},{ x:'04/12/2024',y:[12.88,12.91,12.85,12.88]},{ x:'04/15/2024',y:[12.81,12.81,12.68,12.72]},{ x:'04/16/2024',y:[12.60,12.60,12.25,12.32]},{ x:'04/17/2024',y:[12.55,12.58,12.42,12.57]},{ x:'04/18/2024',y:[12.30,12.41,12.22,12.40]},{ x:'04/19/2024',y:[12.21,12.26,11.72,11.87]},{ x:'04/22/2024',y:[11.85,11.90,11.65,11.66]},{ x:'04/23/2024',y:[11.81,11.86,11.70,11.77]},{ x:'04/24/2024',y:[11.93,12.18,11.93,12.17]},{ x:'04/25/2024',y:[12.08,12.08,11.97,11.99]},{ x:'04/26/2024',y:[12.10,12.24,12.10,12.19]},{ x:'04/29/2024',y:[12.27,12.37,12.27,12.34]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00905 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());