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/19/2024',y:[15.34,15.35,14.88,15.10]},{ x:'04/22/2024',y:[15.05,15.25,15.04,15.09]},{ x:'04/23/2024',y:[15.13,15.21,15.06,15.12]},{ x:'04/24/2024',y:[15.25,15.35,15.21,15.33]},{ x:'04/25/2024',y:[15.30,15.36,15.27,15.28]},{ x:'04/26/2024',y:[15.30,15.44,15.30,15.40]},{ x:'04/29/2024',y:[15.47,15.68,15.47,15.67]},{ x:'04/30/2024',y:[15.67,15.67,15.60,15.60]},{ x:'05/02/2024',y:[15.53,15.80,15.53,15.79]},{ x:'05/03/2024',y:[15.86,15.88,15.74,15.75]},{ x:'05/06/2024',y:[15.83,15.96,15.82,15.91]},{ x:'05/07/2024',y:[15.95,16.00,15.87,15.90]},{ x:'05/08/2024',y:[15.90,15.92,15.80,15.86]},{ x:'05/09/2024',y:[15.86,15.90,15.78,15.78]},{ x:'05/10/2024',y:[15.79,15.99,15.78,15.96]},{ x:'05/13/2024',y:[16.00,16.01,15.87,15.91]},{ x:'05/14/2024',y:[15.91,16.02,15.91,15.99]},{ x:'05/15/2024',y:[15.99,16.06,15.92,15.94]},{ x:'05/16/2024',y:[16.00,16.25,16.00,16.22]},{ x:'05/17/2024',y:[16.12,16.20,16.06,16.20]},{ x:'05/20/2024',y:[16.20,16.22,16.07,16.19]},{ x:'05/21/2024',y:[16.17,16.17,16.01,16.05]},{ x:'05/22/2024',y:[16.05,16.20,16.05,16.19]},{ x:'05/23/2024',y:[16.18,16.19,16.05,16.17]},{ x:'05/24/2024',y:[16.05,16.25,16.05,16.24]},{ x:'06/11/2024',y:[16.51,16.60,16.44,16.46]},{ x:'06/12/2024',y:[16.46,16.51,16.42,16.51]},{ x:'06/13/2024',y:[16.60,16.81,16.55,16.66]},{ x:'06/14/2024',y:[16.66,16.68,16.64,16.68]},{ x:'06/17/2024',y:[16.61,16.76,16.61,16.74]},{ x:'06/18/2024',y:[16.74,16.92,16.74,16.90]},{ x:'06/19/2024',y:[16.92,17.10,16.90,17.05]},{ x:'06/20/2024',y:[17.05,17.15,17.05,17.14]},{ x:'06/21/2024',y:[17.11,17.11,17.04,17.07]},{ x:'06/24/2024',y:[17.00,17.00,16.78,16.84]},{ x:'06/25/2024',y:[16.83,16.84,16.67,16.83]},{ x:'06/26/2024',y:[16.83,16.92,16.76,16.84]},{ x:'06/27/2024',y:[16.78,16.78,16.62,16.65]},{ x:'06/28/2024',y:[16.65,16.81,16.65,16.76]},{ x:'07/01/2024',y:[16.76,17.03,16.76,16.96]},{ x:'07/02/2024',y:[16.95,17.00,16.81,16.91]},{ x:'07/03/2024',y:[17.01,17.02,16.89,16.89]},{ x:'07/04/2024',y:[16.92,17.00,16.90,16.95]},{ x:'07/05/2024',y:[16.98,17.03,16.90,16.93]},{ x:'07/12/2024',y:[16.71,16.71,16.58,16.61]},{ x:'07/15/2024',y:[16.65,16.67,16.51,16.59]},{ x:'07/16/2024',y:[16.60,16.67,16.55,16.60]},{ x:'07/17/2024',y:[16.60,16.66,16.55,16.57]},{ x:'07/18/2024',y:[16.50,16.51,16.32,16.50]},{ x:'07/19/2024',y:[16.44,16.44,16.16,16.23]},{ x:'07/22/2024',y:[16.20,16.20,15.84,15.99]},{ x:'07/23/2024',y:[16.01,16.15,16.01,16.10]},{ x:'07/26/2024',y:[15.77,15.89,15.74,15.89]},{ x:'07/29/2024',y:[15.99,16.07,15.86,15.90]},{ x:'07/30/2024',y:[15.85,15.85,15.61,15.84]},{ x:'07/31/2024',y:[15.81,15.92,15.75,15.86]},{ x:'08/01/2024',y:[15.96,15.99,15.91,15.99]},{ x:'08/02/2024',y:[15.83,15.85,15.65,15.66]},{ x:'08/05/2024',y:[15.38,15.39,14.52,14.64]},{ x:'08/06/2024',y:[15.06,15.15,14.49,14.95]} ] }], 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());