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/19/2024',y:[16.93,17.02,16.83,17.00]},{ x:'03/20/2024',y:[17.08,17.15,16.82,16.87]},{ x:'03/21/2024',y:[17.16,17.17,17.05,17.12]},{ x:'03/22/2024',y:[17.15,17.15,16.95,17.03]},{ x:'03/25/2024',y:[17.05,17.08,16.99,16.99]},{ x:'03/26/2024',y:[17.17,17.21,16.79,16.92]},{ x:'03/27/2024',y:[16.94,16.97,16.84,16.93]},{ x:'03/28/2024',y:[16.87,16.93,16.71,16.86]},{ x:'03/29/2024',y:[16.86,17.08,16.84,17.05]},{ x:'04/01/2024',y:[17.07,17.08,16.93,16.94]},{ x:'04/02/2024',y:[16.94,17.13,16.94,17.08]},{ x:'04/03/2024',y:[16.90,17.05,16.90,16.99]},{ x:'04/08/2024',y:[16.98,17.04,16.90,16.93]},{ x:'04/09/2024',y:[17.02,17.19,17.00,17.18]},{ x:'04/10/2024',y:[17.17,17.37,17.17,17.36]},{ x:'04/11/2024',y:[17.25,17.33,17.22,17.29]},{ x:'04/12/2024',y:[17.29,17.39,17.27,17.28]},{ x:'04/15/2024',y:[17.15,17.16,16.91,16.95]},{ x:'04/16/2024',y:[16.73,16.73,16.37,16.45]},{ x:'04/17/2024',y:[16.58,16.66,16.52,16.66]},{ x:'04/18/2024',y:[16.62,16.73,16.42,16.66]},{ x:'04/19/2024',y:[16.24,16.25,15.60,15.83]},{ x:'04/22/2024',y:[15.62,15.79,15.42,15.42]},{ x:'04/23/2024',y:[15.66,15.73,15.53,15.57]},{ x:'04/24/2024',y:[15.91,16.13,15.91,16.11]},{ x:'04/25/2024',y:[15.87,15.89,15.70,15.72]},{ x:'04/26/2024',y:[15.95,16.14,15.95,16.02]},{ x:'04/29/2024',y:[16.36,16.41,16.31,16.34]},{ x:'04/30/2024',y:[16.34,16.41,16.30,16.35]},{ x:'05/02/2024',y:[16.17,16.25,16.16,16.23]},{ x:'05/03/2024',y:[16.50,16.54,16.28,16.31]},{ x:'05/06/2024',y:[16.50,16.53,16.32,16.36]},{ x:'05/07/2024',y:[16.47,16.48,16.30,16.38]},{ x:'05/08/2024',y:[16.38,16.48,16.34,16.46]},{ x:'05/09/2024',y:[16.46,16.48,16.35,16.35]},{ x:'05/10/2024',y:[16.42,16.42,16.24,16.35]},{ x:'05/13/2024',y:[16.48,16.50,16.37,16.42]},{ x:'05/14/2024',y:[16.44,16.69,16.44,16.66]},{ x:'05/15/2024',y:[16.90,16.96,16.79,16.79]},{ x:'05/16/2024',y:[17.08,17.17,16.99,17.01]},{ x:'05/17/2024',y:[17.01,17.01,16.93,16.97]},{ x:'05/20/2024',y:[16.99,17.05,16.87,16.98]},{ x:'05/21/2024',y:[16.98,17.02,16.87,16.97]},{ x:'05/22/2024',y:[17.07,17.28,17.02,17.26]},{ x:'05/23/2024',y:[17.35,17.46,17.26,17.44]},{ x:'05/24/2024',y:[17.29,17.46,17.28,17.42]},{ x:'06/11/2024',y:[17.97,18.00,17.85,17.87]},{ x:'06/12/2024',y:[17.96,18.27,17.96,18.27]},{ x:'06/13/2024',y:[18.57,18.89,18.57,18.76]},{ x:'06/14/2024',y:[18.70,18.82,18.65,18.82]},{ x:'06/17/2024',y:[18.83,18.92,18.76,18.85]},{ x:'06/18/2024',y:[18.97,19.28,18.97,19.28]},{ x:'06/19/2024',y:[19.55,19.82,19.50,19.80]},{ x:'06/20/2024',y:[19.83,19.96,19.80,19.93]},{ x:'06/21/2024',y:[19.71,19.82,19.58,19.77]},{ x:'06/24/2024',y:[19.54,19.54,19.16,19.21]},{ x:'06/25/2024',y:[19.01,19.12,18.77,19.09]},{ x:'06/26/2024',y:[19.20,19.41,19.16,19.33]},{ x:'06/27/2024',y:[19.06,19.20,19.06,19.17]},{ x:'06/28/2024',y:[19.19,19.42,19.19,19.37]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00904 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());