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/25/2024',y:[17.96,18.02,17.77,17.77]},{ x:'04/26/2024',y:[18.10,18.41,18.09,18.20]},{ x:'04/29/2024',y:[18.64,18.64,18.50,18.50]},{ x:'04/30/2024',y:[18.59,18.65,18.51,18.60]},{ x:'05/02/2024',y:[18.32,18.48,18.27,18.39]},{ x:'05/03/2024',y:[18.71,18.75,18.47,18.52]},{ x:'05/06/2024',y:[18.69,18.85,18.62,18.65]},{ x:'05/07/2024',y:[18.75,18.76,18.50,18.67]},{ x:'05/08/2024',y:[18.67,18.83,18.65,18.79]},{ x:'05/09/2024',y:[18.84,18.87,18.68,18.70]},{ x:'05/10/2024',y:[18.80,18.80,18.54,18.62]},{ x:'05/13/2024',y:[18.73,18.74,18.58,18.61]},{ x:'05/14/2024',y:[18.69,18.89,18.69,18.89]},{ x:'05/15/2024',y:[18.91,19.20,18.91,19.04]},{ x:'05/16/2024',y:[19.23,19.47,19.23,19.30]},{ x:'05/17/2024',y:[19.25,19.25,19.06,19.20]},{ x:'05/20/2024',y:[19.20,19.27,19.00,19.10]},{ x:'05/21/2024',y:[19.10,19.10,18.90,19.02]},{ x:'05/22/2024',y:[19.12,19.34,19.11,19.33]},{ x:'05/23/2024',y:[19.34,19.53,19.32,19.51]},{ x:'05/24/2024',y:[19.43,19.64,19.43,19.62]},{ x:'06/11/2024',y:[19.75,19.91,19.75,19.87]},{ x:'06/12/2024',y:[19.96,20.25,19.95,20.23]},{ x:'06/13/2024',y:[20.57,20.79,20.54,20.76]},{ x:'06/14/2024',y:[20.76,21.06,20.76,21.06]},{ x:'06/17/2024',y:[21.01,21.06,20.93,20.95]},{ x:'06/18/2024',y:[21.10,21.30,21.06,21.26]},{ x:'06/19/2024',y:[21.35,21.90,21.35,21.81]},{ x:'06/20/2024',y:[21.83,22.07,21.83,22.06]},{ x:'06/21/2024',y:[21.89,21.96,21.75,21.91]},{ x:'06/24/2024',y:[21.70,21.70,21.28,21.31]},{ x:'06/25/2024',y:[21.09,21.30,20.89,21.30]},{ x:'06/26/2024',y:[21.35,21.70,21.35,21.63]},{ x:'06/27/2024',y:[21.49,21.58,21.44,21.49]},{ x:'06/28/2024',y:[21.56,21.85,21.56,21.81]},{ x:'07/01/2024',y:[21.85,21.97,21.74,21.75]},{ x:'07/02/2024',y:[21.68,21.81,21.55,21.67]},{ x:'07/03/2024',y:[21.91,21.97,21.82,21.83]},{ x:'07/04/2024',y:[22.08,22.28,22.08,22.25]},{ x:'07/05/2024',y:[22.29,22.43,22.20,22.24]},{ x:'07/12/2024',y:[22.87,22.97,22.54,22.54]},{ x:'07/15/2024',y:[22.69,22.80,22.60,22.62]},{ x:'07/16/2024',y:[22.73,22.92,22.65,22.70]},{ x:'07/17/2024',y:[22.70,22.70,22.37,22.40]},{ x:'07/18/2024',y:[21.93,21.94,21.63,21.81]},{ x:'07/19/2024',y:[21.68,21.72,21.43,21.43]},{ x:'07/22/2024',y:[21.32,21.32,20.58,20.64]},{ x:'07/23/2024',y:[20.83,21.21,20.83,21.21]},{ x:'07/26/2024',y:[20.30,20.62,20.22,20.51]},{ x:'07/29/2024',y:[20.84,20.85,20.39,20.39]},{ x:'07/30/2024',y:[20.26,20.54,20.09,20.54]},{ x:'07/31/2024',y:[20.37,20.55,20.28,20.48]},{ x:'08/01/2024',y:[20.84,20.96,20.68,20.79]},{ x:'08/02/2024',y:[20.35,20.35,19.67,19.67]},{ x:'08/05/2024',y:[18.73,18.73,17.85,17.90]},{ x:'08/06/2024',y:[18.61,18.92,17.73,18.58]},{ x:'08/07/2024',y:[18.82,19.58,18.79,19.53]},{ x:'08/08/2024',y:[19.16,19.44,19.03,19.24]},{ x:'08/09/2024',y:[19.81,20.03,19.73,19.82]},{ x:'08/12/2024',y:[20.12,20.32,20.07,20.19]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00894 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());