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/22/2024',y:[15.04,15.07,14.96,15.00]},{ x:'01/23/2024',y:[15.07,15.10,15.00,15.03]},{ x:'01/24/2024',y:[15.05,15.08,15.00,15.02]},{ x:'01/25/2024',y:[15.10,15.18,15.08,15.16]},{ x:'01/26/2024',y:[15.10,15.15,15.05,15.08]},{ x:'01/29/2024',y:[15.10,15.14,15.06,15.12]},{ x:'01/30/2024',y:[15.13,15.23,15.11,15.20]},{ x:'01/31/2024',y:[15.09,15.18,15.06,15.07]},{ x:'02/01/2024',y:[15.01,15.03,14.92,15.01]},{ x:'02/02/2024',y:[15.11,15.11,15.06,15.09]},{ x:'02/05/2024',y:[15.06,15.10,15.02,15.10]},{ x:'02/15/2024',y:[15.68,15.74,15.54,15.73]},{ x:'02/16/2024',y:[15.74,15.80,15.61,15.63]},{ x:'02/19/2024',y:[15.60,15.60,15.50,15.59]},{ x:'02/20/2024',y:[15.60,15.76,15.59,15.73]},{ x:'02/21/2024',y:[15.70,15.70,15.60,15.62]},{ x:'02/22/2024',y:[15.78,15.88,15.76,15.88]},{ x:'02/23/2024',y:[16.00,16.16,15.98,16.10]},{ x:'02/26/2024',y:[16.15,16.17,15.97,16.16]},{ x:'02/27/2024',y:[16.20,16.35,16.01,16.13]},{ x:'02/29/2024',y:[16.04,16.25,16.04,16.23]},{ x:'03/01/2024',y:[16.33,16.35,16.19,16.21]},{ x:'03/04/2024',y:[16.39,16.67,16.39,16.65]},{ x:'03/05/2024',y:[16.74,16.80,16.64,16.78]},{ x:'03/06/2024',y:[16.64,16.92,16.61,16.88]},{ x:'03/07/2024',y:[17.21,17.36,17.13,17.28]},{ x:'03/08/2024',y:[17.74,17.77,17.12,17.31]},{ x:'03/11/2024',y:[17.26,17.34,17.06,17.13]},{ x:'03/12/2024',y:[17.10,17.22,17.02,17.19]},{ x:'03/13/2024',y:[17.38,17.44,17.05,17.12]},{ x:'03/14/2024',y:[17.12,17.14,16.88,16.96]},{ x:'03/15/2024',y:[16.81,16.93,16.76,16.80]},{ x:'03/18/2024',y:[16.82,17.05,16.82,17.05]},{ 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]} ] }], 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());