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:'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]},{ x:'09/14/2023',y:[31.40,34.05,31.40,32.75]},{ x:'09/15/2023',y:[33.10,34.00,32.50,33.55]},{ x:'09/18/2023',y:[32.60,32.80,31.70,31.70]},{ x:'09/19/2023',y:[31.95,32.20,30.05,30.75]},{ x:'09/20/2023',y:[30.80,32.35,30.45,31.10]},{ x:'09/21/2023',y:[30.65,31.45,29.60,30.20]},{ x:'09/22/2023',y:[30.00,31.35,29.70,31.10]},{ x:'09/25/2023',y:[31.25,33.60,30.80,33.00]},{ x:'09/26/2023',y:[32.75,34.00,31.70,31.70]},{ x:'09/27/2023',y:[31.75,34.85,31.60,34.85]},{ x:'09/28/2023',y:[34.65,38.30,34.65,38.30]},{ x:'10/02/2023',y:[39.10,42.10,39.10,42.10]},{ x:'10/03/2023',y:[44.50,45.50,42.00,43.30]},{ x:'10/04/2023',y:[47.00,47.60,44.50,47.60]},{ x:'10/05/2023',y:[50.50,50.50,47.50,49.35]},{ x:'10/06/2023',y:[50.40,54.20,49.80,54.10]},{ x:'10/11/2023',y:[48.70,48.70,48.70,48.70]},{ x:'10/12/2023',y:[45.80,47.65,44.80,47.65]},{ x:'10/13/2023',y:[47.00,48.00,46.20,47.50]},{ x:'10/18/2023',y:[46.30,46.30,44.30,44.30]},{ x:'10/19/2023',y:[43.90,45.95,43.90,45.95]},{ x:'10/20/2023',y:[45.20,45.95,44.60,45.50]},{ x:'10/23/2023',y:[44.00,44.75,40.95,40.95]},{ x:'10/24/2023',y:[40.95,44.00,40.95,43.00]},{ x:'10/25/2023',y:[44.50,47.30,41.05,47.30]},{ x:'10/26/2023',y:[45.90,51.10,45.50,50.30]},{ x:'10/27/2023',y:[51.00,55.30,50.80,55.30]},{ x:'10/31/2023',y:[50.50,51.40,44.85,44.85]},{ x:'11/01/2023',y:[45.20,46.25,42.70,43.30]} ] }], 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());