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/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]},{ x:'08/23/2023',y:[35.00,38.00,35.00,37.70]},{ x:'08/24/2023',y:[37.80,39.70,34.75,36.90]},{ x:'08/25/2023',y:[36.15,37.45,35.50,35.80]},{ x:'08/28/2023',y:[36.45,36.45,34.50,34.50]},{ x:'08/29/2023',y:[34.60,37.20,34.60,37.20]},{ x:'08/30/2023',y:[37.60,38.60,36.70,37.25]},{ x:'08/31/2023',y:[37.25,37.45,36.35,37.25]},{ x:'09/01/2023',y:[38.00,38.25,36.60,36.75]},{ x:'09/04/2023',y:[36.75,36.75,35.00,36.60]},{ x:'09/05/2023',y:[36.60,37.00,36.00,36.90]},{ x:'09/06/2023',y:[37.65,39.00,37.40,38.45]},{ x:'09/07/2023',y:[36.95,37.90,36.95,37.55]},{ x:'09/08/2023',y:[37.10,38.20,35.65,37.35]},{ x:'09/11/2023',y:[38.20,38.45,35.00,35.00]},{ x:'09/12/2023',y:[35.70,36.80,31.50,31.80]},{ x:'09/13/2023',y:[31.60,32.80,30.95,32.05]} ] }], 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());