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:'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]},{ x:'04/30/2024',y:[12.36,12.37,12.31,12.32]},{ x:'05/02/2024',y:[12.28,12.28,12.15,12.21]},{ x:'05/03/2024',y:[12.30,12.36,12.19,12.20]},{ x:'05/06/2024',y:[12.35,12.41,12.31,12.33]},{ x:'05/07/2024',y:[12.37,12.42,12.29,12.35]},{ x:'05/08/2024',y:[12.35,12.44,12.33,12.43]},{ x:'05/09/2024',y:[12.45,12.48,12.39,12.40]},{ x:'05/10/2024',y:[12.45,12.45,12.34,12.43]},{ x:'05/13/2024',y:[12.55,12.55,12.42,12.43]},{ x:'05/14/2024',y:[12.45,12.53,12.42,12.53]},{ x:'05/15/2024',y:[12.60,12.75,12.60,12.63]},{ x:'05/16/2024',y:[12.75,12.85,12.68,12.71]},{ x:'05/17/2024',y:[12.71,12.73,12.66,12.70]},{ x:'05/20/2024',y:[12.69,12.74,12.58,12.68]},{ x:'05/21/2024',y:[12.68,12.72,12.63,12.68]},{ x:'05/22/2024',y:[12.79,12.92,12.75,12.89]},{ x:'05/23/2024',y:[12.98,13.00,12.87,12.98]},{ x:'05/24/2024',y:[12.88,12.99,12.87,12.98]},{ x:'06/11/2024',y:[13.15,13.21,13.12,13.14]},{ x:'06/12/2024',y:[13.11,13.34,13.11,13.33]},{ x:'06/13/2024',y:[13.42,13.60,13.42,13.53]},{ x:'06/14/2024',y:[13.56,13.68,13.53,13.64]},{ x:'06/17/2024',y:[13.64,13.71,13.62,13.66]},{ x:'06/18/2024',y:[13.73,13.88,13.72,13.87]},{ x:'06/19/2024',y:[14.00,14.27,13.98,14.25]},{ x:'06/20/2024',y:[14.32,14.41,14.26,14.40]},{ x:'06/21/2024',y:[14.30,14.35,14.20,14.30]},{ x:'06/24/2024',y:[14.24,14.24,13.98,13.99]},{ x:'06/25/2024',y:[13.82,13.98,13.69,13.95]},{ x:'06/26/2024',y:[13.98,14.15,13.98,14.10]},{ x:'06/27/2024',y:[14.00,14.10,13.97,14.07]},{ x:'06/28/2024',y:[14.20,14.26,14.10,14.19]},{ x:'07/01/2024',y:[14.21,14.30,14.17,14.19]},{ x:'07/02/2024',y:[14.19,14.21,14.06,14.09]} ] }], 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());