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/16/2023',y:[30.80,31.45,30.00,30.65]},{ x:'06/19/2023',y:[30.40,30.40,29.80,29.85]},{ x:'06/20/2023',y:[29.85,30.30,29.15,29.25]},{ x:'06/21/2023',y:[29.45,31.00,29.05,30.60]},{ x:'06/26/2023',y:[30.00,30.55,29.55,29.90]},{ x:'06/27/2023',y:[29.90,29.95,26.95,27.90]},{ x:'06/28/2023',y:[27.90,28.35,27.00,27.10]},{ x:'06/29/2023',y:[27.40,27.80,27.10,27.25]},{ x:'06/30/2023',y:[27.25,27.50,26.00,27.40]},{ x:'07/03/2023',y:[28.00,28.90,27.80,28.60]},{ x:'07/04/2023',y:[28.80,28.95,28.00,28.25]},{ x:'07/05/2023',y:[28.50,29.10,28.05,28.15]},{ x:'07/06/2023',y:[27.95,28.20,27.40,27.45]},{ x:'07/07/2023',y:[27.10,27.40,26.40,26.80]},{ x:'07/10/2023',y:[27.10,27.15,26.55,26.70]},{ x:'07/11/2023',y:[26.70,26.75,25.00,25.10]},{ x:'07/12/2023',y:[25.45,25.60,24.00,24.15]},{ x:'07/13/2023',y:[24.65,25.35,24.10,24.10]},{ x:'07/14/2023',y:[24.15,24.20,23.00,23.25]},{ x:'07/17/2023',y:[23.30,25.20,23.30,25.05]},{ x:'07/18/2023',y:[25.10,25.10,23.50,23.60]},{ x:'07/19/2023',y:[24.00,24.00,23.00,23.00]},{ x:'07/20/2023',y:[23.00,23.90,23.00,23.50]},{ x:'07/21/2023',y:[23.15,23.35,22.95,23.15]},{ x:'07/24/2023',y:[23.10,23.10,22.25,22.50]},{ x:'07/25/2023',y:[22.20,23.15,22.20,22.90]},{ x:'07/26/2023',y:[23.00,23.30,22.35,22.40]},{ x:'07/27/2023',y:[22.35,23.15,22.35,22.70]},{ x:'07/28/2023',y:[22.65,22.90,22.55,22.80]},{ x:'07/31/2023',y:[23.00,23.90,23.00,23.60]},{ x:'08/01/2023',y:[23.65,23.65,22.90,22.90]},{ x:'08/02/2023',y:[22.90,23.15,22.45,22.45]},{ x:'08/04/2023',y:[22.45,22.90,22.30,22.60]},{ x:'08/07/2023',y:[22.45,22.45,22.15,22.25]},{ x:'08/08/2023',y:[22.25,22.50,21.35,21.40]},{ x:'08/09/2023',y:[21.40,21.70,21.00,21.10]},{ x:'08/10/2023',y:[21.50,21.50,20.00,20.10]},{ x:'08/11/2023',y:[20.60,21.00,20.30,20.30]},{ x:'08/14/2023',y:[20.30,21.30,20.00,20.90]},{ x:'08/15/2023',y:[21.20,21.20,20.35,20.60]},{ x:'08/16/2023',y:[20.60,20.60,20.00,20.35]},{ x:'08/17/2023',y:[20.35,20.80,20.20,20.65]},{ x:'08/18/2023',y:[20.50,20.85,20.10,20.10]},{ x:'08/21/2023',y:[20.30,20.65,20.30,20.55]},{ x:'08/22/2023',y:[20.55,20.70,20.00,20.05]},{ x:'08/23/2023',y:[20.30,20.45,19.70,19.70]},{ x:'08/24/2023',y:[19.70,20.20,19.50,19.60]},{ x:'08/25/2023',y:[19.90,19.95,19.20,19.20]},{ x:'08/28/2023',y:[19.20,19.35,18.65,18.90]},{ x:'08/29/2023',y:[19.05,19.40,19.05,19.35]},{ x:'08/30/2023',y:[19.45,19.95,19.45,19.95]},{ x:'08/31/2023',y:[19.90,20.10,19.15,20.05]},{ x:'09/01/2023',y:[20.10,20.20,19.85,19.85]},{ x:'09/04/2023',y:[20.20,20.20,19.55,19.65]},{ x:'09/05/2023',y:[19.60,20.15,19.60,20.00]},{ x:'09/06/2023',y:[19.95,19.95,19.65,19.65]},{ x:'09/07/2023',y:[19.60,19.80,19.30,19.35]},{ x:'09/08/2023',y:[19.25,19.40,18.90,18.95]},{ x:'09/11/2023',y:[19.00,19.10,18.45,18.50]},{ x:'09/12/2023',y:[18.50,18.75,18.45,18.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3058 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());