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/09/2023',y:[36.66,36.76,36.65,36.69]},{ x:'05/10/2023',y:[36.56,36.56,36.46,36.48]},{ x:'05/11/2023',y:[37.02,37.11,37.02,37.08]},{ x:'05/12/2023',y:[36.90,37.04,36.90,37.04]},{ x:'05/15/2023',y:[37.03,37.03,36.78,36.86]},{ x:'05/16/2023',y:[37.60,37.69,37.60,37.63]},{ x:'05/17/2023',y:[37.68,37.72,37.67,37.68]},{ x:'05/18/2023',y:[38.26,38.32,38.24,38.28]},{ x:'05/19/2023',y:[39.24,39.30,39.14,39.27]},{ x:'05/22/2023',y:[38.85,38.90,38.83,38.88]},{ x:'05/23/2023',y:[39.23,39.46,39.23,39.36]},{ x:'05/24/2023',y:[39.03,39.03,38.87,38.91]},{ x:'05/25/2023',y:[39.58,39.67,39.57,39.65]},{ x:'05/26/2023',y:[39.97,40.07,39.90,40.03]},{ x:'05/29/2023',y:[41.19,42.50,41.18,41.84]},{ x:'05/30/2023',y:[42.10,42.10,41.37,41.51]},{ x:'05/31/2023',y:[41.63,41.72,41.52,41.58]},{ x:'06/01/2023',y:[41.17,41.42,41.17,41.32]},{ x:'06/02/2023',y:[42.00,42.21,42.00,42.17]},{ x:'06/05/2023',y:[42.03,42.09,42.01,42.02]},{ x:'06/06/2023',y:[42.01,42.05,41.92,42.04]},{ x:'06/07/2023',y:[42.38,42.44,42.37,42.42]},{ x:'06/08/2023',y:[41.72,41.72,41.33,41.37]},{ x:'06/09/2023',y:[41.71,41.90,41.71,41.87]},{ x:'06/12/2023',y:[42.00,42.20,42.00,42.20]},{ x:'06/13/2023',y:[43.00,43.25,43.00,43.25]},{ x:'06/14/2023',y:[43.42,43.45,43.38,43.42]},{ x:'06/15/2023',y:[44.10,44.40,44.10,44.28]},{ x:'06/16/2023',y:[44.43,44.48,44.32,44.48]},{ x:'06/19/2023',y:[44.44,44.44,44.18,44.27]},{ x:'06/20/2023',y:[44.27,44.30,44.10,44.12]},{ x:'06/21/2023',y:[44.11,44.12,44.00,44.03]},{ x:'06/26/2023',y:[43.50,43.54,43.30,43.39]},{ x:'06/27/2023',y:[42.60,42.64,42.52,42.55]},{ x:'06/28/2023',y:[43.19,43.25,43.13,43.25]},{ x:'06/29/2023',y:[43.50,43.80,43.50,43.74]},{ x:'06/30/2023',y:[43.57,43.71,43.50,43.71]},{ x:'07/03/2023',y:[43.76,44.28,43.76,44.27]},{ x:'07/04/2023',y:[44.27,44.27,44.19,44.27]},{ x:'07/05/2023',y:[44.21,44.31,44.18,44.26]},{ x:'07/06/2023',y:[44.26,44.33,44.10,44.19]},{ x:'07/07/2023',y:[44.12,44.12,43.92,43.95]},{ x:'07/10/2023',y:[43.87,43.91,43.81,43.87]},{ x:'07/11/2023',y:[44.07,44.22,44.07,44.19]},{ x:'07/12/2023',y:[44.39,44.54,44.39,44.54]},{ x:'07/13/2023',y:[45.03,45.25,45.03,45.13]},{ x:'07/14/2023',y:[45.79,45.85,45.75,45.81]},{ x:'07/17/2023',y:[45.69,45.91,45.60,45.91]},{ x:'07/18/2023',y:[46.04,46.20,46.02,46.09]},{ x:'07/19/2023',y:[46.14,46.48,46.14,46.45]},{ x:'07/20/2023',y:[46.26,46.36,46.25,46.34]},{ x:'07/21/2023',y:[45.21,45.40,45.10,45.36]},{ x:'07/24/2023',y:[45.36,45.45,45.29,45.36]},{ x:'07/25/2023',y:[45.36,45.36,45.21,45.26]},{ x:'07/26/2023',y:[45.36,45.70,45.36,45.62]},{ x:'07/27/2023',y:[45.62,45.72,45.58,45.66]},{ x:'07/28/2023',y:[45.71,45.95,45.68,45.87]},{ x:'07/31/2023',y:[46.53,46.74,46.51,46.53]},{ x:'08/01/2023',y:[46.76,46.96,46.76,46.87]},{ x:'08/02/2023',y:[46.87,46.88,46.61,46.64]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00762 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());