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:'05/10/2023',y:[31.77,31.80,31.76,31.80]},{ x:'05/11/2023',y:[31.82,31.85,31.80,31.85]},{ x:'05/12/2023',y:[32.13,32.13,32.07,32.11]},{ x:'05/15/2023',y:[31.96,31.96,31.93,31.93]},{ x:'05/16/2023',y:[31.77,31.86,31.77,31.86]},{ x:'05/17/2023',y:[31.86,31.87,31.80,31.83]},{ x:'05/18/2023',y:[31.76,31.76,31.43,31.58]},{ x:'05/19/2023',y:[31.48,31.48,31.41,31.41]},{ x:'05/22/2023',y:[31.41,31.41,31.30,31.37]},{ x:'05/23/2023',y:[31.31,31.31,31.27,31.29]},{ x:'05/24/2023',y:[31.30,31.32,31.30,31.32]},{ x:'05/25/2023',y:[31.32,31.32,31.25,31.25]},{ x:'05/26/2023',y:[31.15,31.16,31.15,31.16]},{ x:'05/29/2023',y:[31.10,31.11,31.06,31.08]},{ x:'05/30/2023',y:[31.14,31.22,31.13,31.22]},{ x:'05/31/2023',y:[31.43,31.43,31.25,31.35]},{ x:'06/01/2023',y:[31.46,31.46,31.42,31.46]},{ x:'06/02/2023',y:[31.48,31.55,31.48,31.51]},{ x:'06/05/2023',y:[31.40,31.41,31.39,31.40]},{ x:'06/06/2023',y:[31.40,31.43,31.40,31.40]},{ x:'06/07/2023',y:[31.44,31.53,31.44,31.53]},{ x:'06/08/2023',y:[31.41,31.43,31.37,31.43]},{ x:'06/09/2023',y:[31.47,31.49,31.47,31.47]},{ x:'06/12/2023',y:[31.56,31.56,31.47,31.47]},{ x:'06/13/2023',y:[31.54,31.54,31.52,31.54]},{ x:'06/14/2023',y:[31.54,31.54,31.50,31.50]},{ x:'06/15/2023',y:[31.51,31.53,31.51,31.53]},{ x:'06/16/2023',y:[31.67,31.67,31.65,31.67]},{ x:'06/19/2023',y:[31.67,31.80,31.67,31.78]},{ x:'06/20/2023',y:[31.77,31.80,31.77,31.80]},{ x:'06/21/2023',y:[32.00,32.13,32.00,32.09]},{ x:'06/26/2023',y:[32.30,32.40,32.29,32.33]},{ x:'06/27/2023',y:[32.50,32.50,32.40,32.42]},{ x:'06/28/2023',y:[32.35,32.45,32.35,32.45]},{ x:'06/29/2023',y:[32.41,32.47,32.39,32.47]},{ x:'06/30/2023',y:[32.29,32.33,32.29,32.33]},{ x:'07/03/2023',y:[32.46,32.46,32.43,32.43]},{ x:'07/04/2023',y:[32.44,32.56,32.44,32.55]},{ x:'07/05/2023',y:[32.55,32.58,32.55,32.58]},{ x:'07/06/2023',y:[32.52,32.52,32.43,32.43]},{ x:'07/07/2023',y:[32.12,32.17,32.12,32.17]},{ x:'07/10/2023',y:[32.02,32.02,31.95,32.00]},{ x:'07/11/2023',y:[32.12,32.14,32.12,32.14]},{ x:'07/12/2023',y:[32.15,32.17,32.15,32.17]},{ x:'07/13/2023',y:[32.22,32.25,32.22,32.25]},{ x:'07/14/2023',y:[32.38,32.38,32.35,32.35]},{ x:'07/17/2023',y:[32.42,32.49,32.42,32.49]},{ x:'07/18/2023',y:[32.08,32.10,32.07,32.10]},{ x:'07/19/2023',y:[32.24,32.27,32.24,32.27]},{ x:'07/20/2023',y:[32.25,32.28,32.19,32.28]},{ x:'07/21/2023',y:[32.15,32.24,32.14,32.23]},{ x:'07/24/2023',y:[32.36,32.36,32.36,32.36]},{ x:'07/25/2023',y:[32.40,32.40,32.40,32.40]},{ x:'07/26/2023',y:[32.35,32.35,32.34,32.34]},{ x:'07/27/2023',y:[32.34,32.34,32.34,32.34]},{ x:'07/28/2023',y:[32.33,32.33,32.27,32.31]},{ x:'07/31/2023',y:[32.35,32.37,32.35,32.37]},{ x:'08/01/2023',y:[32.66,32.66,32.66,32.66]},{ x:'08/02/2023',y:[32.52,32.53,32.51,32.53]},{ x:'08/04/2023',y:[32.00,32.00,31.82,31.97]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00749b 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());