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/10/2023',y:[34.30,34.31,34.26,34.26]},{ x:'04/11/2023',y:[34.01,34.12,34.01,34.10]},{ x:'04/12/2023',y:[33.96,34.12,33.96,34.11]},{ x:'04/13/2023',y:[34.06,34.10,34.06,34.09]},{ x:'04/14/2023',y:[33.93,33.95,33.92,33.94]},{ x:'04/17/2023',y:[33.62,33.82,33.62,33.81]},{ x:'04/18/2023',y:[33.39,33.55,33.39,33.54]},{ x:'04/19/2023',y:[33.41,33.61,33.41,33.61]},{ x:'04/20/2023',y:[33.65,33.67,33.65,33.67]},{ x:'04/21/2023',y:[33.75,33.79,33.75,33.79]},{ x:'04/24/2023',y:[33.61,33.73,33.61,33.71]},{ x:'04/25/2023',y:[33.98,34.02,33.98,34.00]},{ x:'04/26/2023',y:[34.35,34.35,34.29,34.34]},{ x:'04/27/2023',y:[34.19,34.24,34.18,34.19]},{ x:'04/28/2023',y:[33.91,34.06,33.91,34.03]},{ x:'05/02/2023',y:[33.90,33.92,33.77,33.77]},{ x:'05/03/2023',y:[33.90,33.91,33.89,33.90]},{ x:'05/04/2023',y:[34.34,34.34,34.25,34.25]},{ x:'05/05/2023',y:[33.89,33.89,33.84,33.87]},{ x:'05/08/2023',y:[33.81,33.88,33.80,33.88]},{ x:'05/09/2023',y:[33.59,33.66,33.59,33.64]},{ x:'05/10/2023',y:[33.53,33.57,33.53,33.56]},{ x:'05/11/2023',y:[33.60,33.63,33.55,33.61]},{ x:'05/12/2023',y:[33.98,34.02,33.97,34.01]},{ x:'05/15/2023',y:[33.75,33.83,33.75,33.79]},{ x:'05/16/2023',y:[33.43,33.56,33.43,33.55]},{ x:'05/17/2023',y:[33.01,33.03,33.00,33.03]},{ x:'05/18/2023',y:[32.94,32.94,32.85,32.89]},{ x:'05/19/2023',y:[32.62,32.64,32.60,32.63]},{ x:'05/22/2023',y:[32.43,32.45,32.33,32.44]},{ x:'05/23/2023',y:[32.31,32.36,32.31,32.36]},{ x:'05/24/2023',y:[32.36,32.41,32.36,32.41]},{ x:'05/25/2023',y:[32.19,32.21,32.17,32.20]},{ x:'05/26/2023',y:[32.15,32.15,32.08,32.13]},{ x:'05/29/2023',y:[32.13,32.13,32.05,32.09]},{ x:'05/30/2023',y:[32.28,32.33,32.25,32.31]},{ x:'05/31/2023',y:[32.54,32.67,32.54,32.65]},{ x:'06/01/2023',y:[32.83,32.83,32.72,32.72]},{ x:'06/02/2023',y:[32.82,32.86,32.82,32.85]},{ x:'06/05/2023',y:[32.66,32.70,32.66,32.68]},{ x:'06/06/2023',y:[32.69,32.70,32.68,32.69]},{ x:'06/07/2023',y:[32.86,32.90,32.86,32.89]},{ x:'06/08/2023',y:[32.59,32.59,32.55,32.56]},{ x:'06/09/2023',y:[32.61,32.71,32.61,32.71]},{ x:'06/12/2023',y:[32.77,32.77,32.74,32.77]},{ x:'06/13/2023',y:[32.74,32.80,32.71,32.79]},{ x:'06/14/2023',y:[32.75,32.75,32.73,32.74]},{ x:'06/15/2023',y:[32.77,32.77,32.68,32.68]},{ x:'06/16/2023',y:[33.01,33.01,32.97,32.98]},{ x:'06/19/2023',y:[33.02,33.06,33.02,33.05]},{ x:'06/20/2023',y:[32.99,33.00,32.97,33.00]},{ x:'06/21/2023',y:[33.40,33.40,33.30,33.30]},{ x:'06/26/2023',y:[33.43,33.52,33.43,33.52]},{ x:'06/27/2023',y:[33.52,33.52,33.43,33.43]},{ x:'06/28/2023',y:[33.37,33.44,33.37,33.44]},{ x:'06/29/2023',y:[33.55,33.55,33.51,33.51]},{ x:'06/30/2023',y:[33.28,33.30,33.25,33.25]},{ x:'07/03/2023',y:[33.40,33.45,33.40,33.45]},{ x:'07/04/2023',y:[33.44,33.53,33.44,33.51]},{ x:'07/05/2023',y:[33.58,33.58,33.54,33.54]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00799b 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());