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:'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]},{ x:'07/03/2024',y:[14.23,14.30,14.17,14.18]},{ x:'07/04/2024',y:[14.32,14.49,14.31,14.48]},{ x:'07/05/2024',y:[14.53,14.56,14.46,14.48]},{ x:'07/12/2024',y:[15.30,15.48,15.11,15.40]},{ x:'07/15/2024',y:[15.45,15.70,15.43,15.55]},{ x:'07/16/2024',y:[14.40,14.55,14.36,14.38]},{ x:'07/17/2024',y:[14.39,14.41,14.22,14.26]},{ x:'07/18/2024',y:[14.10,14.11,13.90,14.00]},{ x:'07/19/2024',y:[13.94,13.94,13.72,13.74]},{ x:'07/22/2024',y:[13.72,13.73,13.26,13.36]},{ x:'07/23/2024',y:[13.60,13.69,13.54,13.69]},{ x:'07/26/2024',y:[13.30,13.35,13.16,13.30]},{ x:'07/29/2024',y:[13.56,13.56,13.30,13.31]},{ x:'07/30/2024',y:[13.26,13.38,13.12,13.34]},{ x:'07/31/2024',y:[13.28,13.42,13.24,13.35]},{ x:'08/01/2024',y:[13.70,13.73,13.50,13.60]},{ x:'08/02/2024',y:[13.33,13.39,13.01,13.02]},{ x:'08/05/2024',y:[12.50,12.50,11.89,11.90]},{ x:'08/06/2024',y:[12.30,12.40,11.75,12.24]},{ x:'08/07/2024',y:[12.35,12.77,12.35,12.73]},{ x:'08/08/2024',y:[12.51,12.64,12.31,12.49]},{ x:'08/09/2024',y:[12.87,12.95,12.78,12.83]},{ x:'08/12/2024',y:[12.94,13.11,12.94,13.03]},{ x:'08/13/2024',y:[13.11,13.13,13.03,13.08]} ] }], 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());