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/22/2024',y:[31.68,31.71,31.65,31.69]},{ x:'04/23/2024',y:[31.96,31.97,31.96,31.96]},{ x:'04/24/2024',y:[31.89,31.89,31.86,31.86]},{ x:'04/25/2024',y:[31.68,31.69,31.65,31.65]},{ x:'04/26/2024',y:[31.48,31.56,31.48,31.56]},{ x:'04/29/2024',y:[31.83,31.83,31.80,31.80]},{ x:'04/30/2024',y:[31.90,31.98,31.90,31.98]},{ x:'05/02/2024',y:[31.83,31.87,31.83,31.87]},{ x:'05/03/2024',y:[31.91,31.98,31.91,31.98]},{ x:'05/06/2024',y:[32.18,32.21,32.16,32.21]},{ x:'05/07/2024',y:[32.28,32.46,32.28,32.46]},{ x:'05/08/2024',y:[32.57,32.57,32.51,32.51]},{ x:'05/09/2024',y:[32.39,32.39,32.17,32.17]},{ x:'05/10/2024',y:[32.33,32.39,32.33,32.36]},{ x:'05/13/2024',y:[32.32,32.32,32.29,32.30]},{ x:'05/14/2024',y:[32.31,32.31,32.29,32.30]},{ x:'05/15/2024',y:[32.43,32.43,32.35,32.35]},{ x:'05/16/2024',y:[32.70,32.71,32.66,32.67]},{ x:'05/17/2024',y:[32.61,32.67,32.61,32.67]},{ x:'05/20/2024',y:[32.50,32.52,32.50,32.52]},{ x:'05/21/2024',y:[32.44,32.46,32.42,32.46]},{ x:'05/22/2024',y:[32.57,32.57,32.54,32.54]},{ x:'05/23/2024',y:[32.56,32.56,32.48,32.48]},{ x:'05/24/2024',y:[32.35,32.35,32.31,32.34]},{ x:'06/11/2024',y:[32.57,32.57,32.54,32.57]},{ x:'06/12/2024',y:[32.69,32.80,32.69,32.71]},{ x:'06/13/2024',y:[32.99,32.99,32.99,32.99]},{ x:'06/14/2024',y:[33.20,33.27,33.20,33.27]},{ x:'06/17/2024',y:[33.31,33.31,33.23,33.23]},{ x:'06/18/2024',y:[33.22,33.22,33.10,33.10]},{ x:'06/19/2024',y:[33.26,33.34,33.26,33.34]},{ x:'06/20/2024',y:[32.81,32.81,32.78,32.78]},{ x:'06/21/2024',y:[32.65,32.65,32.63,32.64]},{ x:'06/24/2024',y:[32.68,32.73,32.67,32.69]},{ x:'06/25/2024',y:[32.91,33.03,32.90,33.03]},{ x:'06/26/2024',y:[33.00,33.00,32.85,32.90]},{ x:'06/27/2024',y:[32.61,32.61,32.51,32.55]},{ x:'06/28/2024',y:[32.72,32.72,32.59,32.59]},{ x:'07/01/2024',y:[32.23,32.24,32.20,32.24]},{ x:'07/02/2024',y:[32.23,32.24,32.22,32.22]},{ x:'07/03/2024',y:[32.45,32.46,32.45,32.46]},{ x:'07/04/2024',y:[32.70,32.70,32.61,32.61]},{ x:'07/05/2024',y:[32.57,32.59,32.57,32.59]},{ x:'07/12/2024',y:[33.03,33.13,33.03,33.13]},{ x:'07/15/2024',y:[33.01,33.15,33.01,33.13]},{ x:'07/16/2024',y:[33.16,33.17,33.16,33.17]},{ x:'07/17/2024',y:[33.36,33.48,33.36,33.42]},{ x:'07/18/2024',y:[33.35,33.36,33.34,33.36]},{ x:'07/19/2024',y:[33.34,33.34,33.30,33.30]},{ x:'07/22/2024',y:[33.27,33.38,33.27,33.38]},{ x:'07/23/2024',y:[33.23,33.23,33.23,33.23]},{ x:'07/26/2024',y:[33.10,33.10,33.01,33.09]},{ x:'07/29/2024',y:[33.26,33.30,33.25,33.25]},{ x:'07/30/2024',y:[33.33,33.33,33.33,33.33]},{ x:'07/31/2024',y:[33.35,33.41,33.35,33.38]},{ x:'08/01/2024',y:[33.65,33.70,33.65,33.66]},{ x:'08/02/2024',y:[33.92,33.96,33.85,33.87]},{ x:'08/05/2024',y:[34.29,34.29,34.00,34.10]},{ x:'08/06/2024',y:[33.67,33.67,33.53,33.60]},{ x:'08/07/2024',y:[33.44,33.44,33.44,33.44]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00781b 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());