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:[31.91,31.91,31.82,31.85]},{ x:'04/29/2024',y:[32.44,32.45,32.39,32.42]},{ x:'04/30/2024',y:[32.32,32.32,32.27,32.29]},{ x:'05/02/2024',y:[31.86,31.91,31.84,31.84]},{ x:'05/03/2024',y:[31.82,31.82,31.62,31.64]},{ x:'05/06/2024',y:[31.73,31.73,31.60,31.63]},{ x:'05/07/2024',y:[32.00,32.05,31.93,32.04]},{ x:'05/08/2024',y:[32.03,32.05,31.99,32.00]},{ x:'05/09/2024',y:[32.02,32.02,31.85,31.85]},{ x:'05/10/2024',y:[32.02,32.08,32.00,32.05]},{ x:'05/13/2024',y:[32.06,32.06,31.87,31.91]},{ x:'05/14/2024',y:[32.08,32.18,32.07,32.08]},{ x:'05/15/2024',y:[32.34,32.37,32.30,32.30]},{ x:'05/16/2024',y:[32.60,32.60,32.54,32.54]},{ x:'05/17/2024',y:[32.58,32.68,32.58,32.63]},{ x:'05/20/2024',y:[32.59,32.60,32.44,32.58]},{ x:'05/21/2024',y:[32.52,32.52,32.47,32.48]},{ x:'05/22/2024',y:[32.48,32.48,32.39,32.42]},{ x:'05/23/2024',y:[32.78,32.78,32.45,32.51]},{ x:'05/24/2024',y:[32.51,32.51,32.08,32.08]},{ x:'06/11/2024',y:[31.84,31.84,31.75,31.78]},{ x:'06/12/2024',y:[31.76,31.76,31.74,31.76]},{ x:'06/13/2024',y:[31.89,32.18,31.89,32.16]},{ x:'06/14/2024',y:[31.80,31.81,31.77,31.80]},{ x:'06/17/2024',y:[31.57,31.68,31.56,31.67]},{ x:'06/18/2024',y:[31.53,31.72,31.53,31.72]},{ x:'06/19/2024',y:[31.61,31.61,31.58,31.59]},{ x:'06/20/2024',y:[31.62,31.65,31.60,31.62]},{ x:'06/21/2024',y:[31.58,31.58,31.55,31.55]},{ x:'06/24/2024',y:[31.60,31.61,31.44,31.47]},{ x:'06/25/2024',y:[31.36,31.44,31.35,31.42]},{ x:'06/26/2024',y:[31.42,31.63,31.42,31.62]},{ x:'06/27/2024',y:[31.70,31.74,31.67,31.72]},{ x:'06/28/2024',y:[32.35,32.58,32.35,32.52]},{ x:'07/01/2024',y:[32.55,32.57,32.49,32.51]},{ x:'07/02/2024',y:[32.42,32.49,32.42,32.45]},{ x:'07/03/2024',y:[32.45,32.70,32.45,32.67]},{ x:'07/04/2024',y:[32.80,32.81,32.75,32.75]},{ x:'07/05/2024',y:[32.72,32.72,32.67,32.68]},{ x:'07/12/2024',y:[32.35,32.55,32.35,32.53]},{ x:'07/15/2024',y:[32.80,32.98,32.80,32.95]},{ x:'07/16/2024',y:[32.98,33.20,32.98,33.15]},{ x:'07/17/2024',y:[33.32,33.46,33.32,33.33]},{ x:'07/18/2024',y:[33.01,33.06,33.01,33.06]},{ x:'07/19/2024',y:[32.85,32.85,32.65,32.81]},{ x:'07/22/2024',y:[32.65,32.70,32.56,32.69]},{ x:'07/23/2024',y:[32.92,32.92,32.79,32.79]},{ x:'07/26/2024',y:[32.58,32.80,32.56,32.78]},{ x:'07/29/2024',y:[32.99,33.04,32.99,33.02]},{ x:'07/30/2024',y:[32.76,32.76,32.61,32.70]},{ x:'07/31/2024',y:[32.74,32.88,32.74,32.83]},{ x:'08/01/2024',y:[33.06,33.26,33.06,33.19]},{ x:'08/02/2024',y:[32.30,32.35,32.10,32.15]},{ x:'08/05/2024',y:[31.34,31.34,30.50,30.56]},{ x:'08/06/2024',y:[30.72,31.03,30.72,30.84]},{ x:'08/07/2024',y:[31.08,31.25,31.07,31.24]},{ x:'08/08/2024',y:[31.12,31.12,30.98,30.98]},{ x:'08/09/2024',y:[31.40,31.40,31.30,31.30]},{ x:'08/12/2024',y:[31.05,31.50,31.05,31.50]},{ x:'08/13/2024',y:[31.40,31.40,31.36,31.39]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00875 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());