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/11/2023',y:[37.02,37.08,36.98,37.05]},{ x:'04/12/2023',y:[37.04,37.10,37.01,37.05]},{ x:'04/13/2023',y:[36.81,36.81,36.70,36.74]},{ x:'04/14/2023',y:[36.88,36.97,36.86,36.87]},{ x:'04/17/2023',y:[36.87,37.03,36.87,36.99]},{ x:'04/18/2023',y:[37.05,37.06,36.98,37.00]},{ x:'04/19/2023',y:[37.09,37.09,36.96,36.96]},{ x:'04/20/2023',y:[36.78,36.84,36.72,36.80]},{ x:'04/21/2023',y:[36.35,36.37,36.27,36.32]},{ x:'04/24/2023',y:[36.22,36.22,36.10,36.10]},{ x:'04/25/2023',y:[36.00,36.14,36.00,36.00]},{ x:'04/26/2023',y:[35.77,35.77,35.55,35.59]},{ x:'04/27/2023',y:[35.71,35.86,35.69,35.86]},{ x:'04/28/2023',y:[36.15,36.36,36.15,36.35]},{ x:'05/02/2023',y:[36.49,36.49,36.33,36.43]},{ x:'05/03/2023',y:[35.94,35.94,35.76,35.79]},{ x:'05/04/2023',y:[35.53,35.71,35.52,35.70]},{ x:'05/05/2023',y:[35.81,35.81,35.71,35.75]},{ x:'05/08/2023',y:[36.16,36.29,36.16,36.28]},{ 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]} ] }], 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());