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:'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]},{ x:'08/04/2023',y:[46.09,46.09,45.50,45.95]},{ x:'08/07/2023',y:[45.94,46.11,45.89,46.07]},{ x:'08/08/2023',y:[46.21,46.23,46.04,46.11]},{ x:'08/09/2023',y:[45.76,45.76,45.64,45.71]},{ x:'08/10/2023',y:[44.98,44.98,44.71,44.75]},{ x:'08/11/2023',y:[44.70,44.85,44.58,44.61]},{ x:'08/14/2023',y:[44.32,44.41,44.15,44.22]},{ x:'08/15/2023',y:[45.19,45.38,45.19,45.31]},{ x:'08/16/2023',y:[45.16,45.16,44.80,44.85]},{ x:'08/17/2023',y:[44.15,44.26,44.03,44.19]},{ x:'08/18/2023',y:[43.94,43.94,43.64,43.67]},{ x:'08/21/2023',y:[43.70,43.82,43.67,43.70]},{ x:'08/22/2023',y:[44.34,44.58,44.34,44.54]},{ x:'08/23/2023',y:[44.68,44.72,44.66,44.68]},{ x:'08/24/2023',y:[45.95,46.33,45.95,46.30]},{ x:'08/25/2023',y:[44.58,44.61,44.44,44.46]},{ x:'08/28/2023',y:[44.46,44.64,44.46,44.52]},{ x:'08/29/2023',y:[45.00,45.14,44.94,45.10]},{ x:'08/30/2023',y:[45.97,46.06,45.94,45.98]},{ x:'08/31/2023',y:[46.14,46.32,46.12,46.17]},{ x:'09/01/2023',y:[46.38,46.50,46.38,46.46]},{ x:'09/04/2023',y:[46.52,46.80,46.52,46.78]} ] }], 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());