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/26/2023',y:[14.75,14.80,14.60,14.65]},{ x:'05/29/2023',y:[14.90,15.25,14.90,15.15]},{ x:'05/30/2023',y:[15.40,15.40,14.90,14.90]},{ x:'05/31/2023',y:[15.00,16.30,15.00,15.55]},{ x:'06/01/2023',y:[16.00,16.00,15.30,15.50]},{ x:'06/02/2023',y:[15.60,16.05,15.50,15.60]},{ x:'06/05/2023',y:[15.95,16.05,15.60,15.65]},{ x:'06/06/2023',y:[15.70,15.70,15.30,15.45]},{ x:'06/07/2023',y:[15.60,15.70,15.45,15.65]},{ x:'06/08/2023',y:[15.65,15.65,15.30,15.30]},{ x:'06/09/2023',y:[15.35,15.75,15.35,15.70]},{ x:'06/12/2023',y:[16.05,17.25,16.05,17.25]},{ x:'06/13/2023',y:[17.80,18.15,16.50,16.50]},{ x:'06/14/2023',y:[16.75,17.30,16.60,16.95]},{ x:'06/15/2023',y:[17.25,17.25,16.55,16.75]},{ x:'06/16/2023',y:[16.95,17.75,16.75,17.15]},{ x:'06/19/2023',y:[17.55,18.15,17.10,17.10]},{ x:'06/20/2023',y:[17.35,17.65,16.70,17.15]},{ x:'06/21/2023',y:[17.65,18.65,17.20,17.90]},{ x:'06/26/2023',y:[17.90,17.90,17.35,17.40]},{ x:'06/27/2023',y:[17.55,17.65,16.55,16.55]},{ x:'06/28/2023',y:[16.95,16.95,16.30,16.65]},{ x:'06/29/2023',y:[16.70,16.75,16.45,16.70]},{ x:'06/30/2023',y:[16.70,18.35,16.70,18.35]},{ x:'07/03/2023',y:[18.55,20.00,18.50,18.90]},{ x:'07/04/2023',y:[19.05,20.75,18.50,20.75]},{ x:'07/05/2023',y:[22.10,22.80,21.35,22.80]},{ x:'07/06/2023',y:[24.55,25.05,24.00,25.05]},{ x:'07/07/2023',y:[25.30,26.80,24.20,26.40]},{ x:'07/10/2023',y:[26.55,26.60,25.25,25.25]},{ x:'07/11/2023',y:[25.00,25.25,24.35,25.25]},{ x:'07/12/2023',y:[25.60,25.65,24.50,25.20]},{ x:'07/13/2023',y:[26.00,26.00,24.50,24.50]},{ x:'07/14/2023',y:[25.00,26.50,24.50,26.00]},{ x:'07/17/2023',y:[25.50,25.60,25.15,25.40]},{ x:'07/18/2023',y:[25.65,26.80,24.70,24.75]},{ x:'07/19/2023',y:[24.75,25.15,22.30,22.30]},{ x:'07/20/2023',y:[22.05,23.30,21.25,23.15]},{ x:'07/21/2023',y:[21.80,23.10,21.80,22.20]},{ x:'07/24/2023',y:[22.70,24.40,22.70,24.40]},{ x:'07/25/2023',y:[26.00,26.80,26.00,26.80]},{ x:'07/26/2023',y:[28.80,29.45,27.05,27.70]},{ x:'07/27/2023',y:[28.00,30.45,27.95,30.45]},{ x:'07/28/2023',y:[30.50,30.65,27.70,28.35]},{ x:'07/31/2023',y:[28.35,29.90,26.50,26.80]},{ x:'08/01/2023',y:[26.80,27.70,25.80,26.65]},{ x:'08/02/2023',y:[26.65,26.65,24.10,24.55]},{ x:'08/04/2023',y:[24.55,25.20,23.70,23.85]},{ x:'08/07/2023',y:[24.00,25.50,22.80,24.90]},{ x:'08/08/2023',y:[25.40,25.55,23.80,23.95]},{ x:'08/09/2023',y:[23.40,24.20,23.00,23.00]},{ x:'08/10/2023',y:[22.90,22.90,21.70,21.95]},{ x:'08/11/2023',y:[22.30,23.80,22.30,23.55]},{ x:'08/14/2023',y:[22.65,25.85,22.65,25.25]},{ x:'08/15/2023',y:[25.25,27.25,25.05,25.50]},{ x:'08/16/2023',y:[25.15,26.25,25.10,25.75]},{ x:'08/17/2023',y:[25.35,26.95,25.30,26.00]},{ x:'08/18/2023',y:[27.25,28.60,27.25,28.60]},{ x:'08/21/2023',y:[31.40,31.45,29.45,31.45]},{ x:'08/22/2023',y:[34.55,34.55,33.00,34.55]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6117 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());