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:'09/01/2023',y:[18.20,18.65,18.10,18.45]},{ x:'09/04/2023',y:[18.50,18.50,18.10,18.30]},{ x:'09/05/2023',y:[18.35,18.85,18.35,18.60]},{ x:'09/06/2023',y:[18.75,18.95,18.60,18.60]},{ x:'09/07/2023',y:[18.55,18.90,18.40,18.40]},{ x:'09/08/2023',y:[18.35,18.40,18.00,18.15]},{ x:'09/11/2023',y:[18.15,18.25,17.85,17.85]},{ x:'09/12/2023',y:[17.90,18.30,17.90,18.20]},{ x:'09/13/2023',y:[18.25,18.40,18.15,18.30]},{ x:'09/14/2023',y:[18.45,18.65,18.40,18.65]},{ x:'09/15/2023',y:[18.75,18.90,18.40,18.90]},{ x:'09/18/2023',y:[18.65,19.10,18.65,18.75]},{ x:'09/19/2023',y:[18.95,19.10,18.55,18.55]},{ x:'09/20/2023',y:[18.60,18.75,18.35,18.45]},{ x:'09/21/2023',y:[18.30,18.35,17.95,18.05]},{ x:'09/22/2023',y:[18.05,18.10,17.75,18.10]},{ x:'09/25/2023',y:[18.10,18.30,18.05,18.30]},{ x:'09/26/2023',y:[18.20,18.20,17.80,17.80]},{ x:'09/27/2023',y:[17.70,17.85,17.40,17.50]},{ x:'09/28/2023',y:[17.60,17.70,17.55,17.55]},{ x:'10/02/2023',y:[17.55,18.00,17.55,17.85]},{ x:'10/03/2023',y:[17.85,18.45,17.85,18.10]},{ x:'10/04/2023',y:[18.10,18.10,17.75,17.85]},{ x:'10/05/2023',y:[18.05,18.35,18.05,18.20]},{ x:'10/06/2023',y:[18.35,18.35,18.05,18.05]},{ x:'10/11/2023',y:[17.95,18.10,17.70,17.75]},{ x:'10/12/2023',y:[17.90,18.20,17.80,18.15]},{ x:'10/13/2023',y:[18.05,18.35,18.05,18.30]},{ x:'10/18/2023',y:[18.85,20.35,18.75,20.35]},{ x:'10/19/2023',y:[20.70,22.35,20.60,22.35]},{ x:'10/20/2023',y:[24.45,24.55,23.60,24.55]},{ x:'10/23/2023',y:[26.45,27.00,25.90,27.00]},{ x:'10/24/2023',y:[27.00,27.10,24.60,24.90]},{ x:'10/25/2023',y:[25.20,27.35,25.05,27.35]},{ x:'10/26/2023',y:[26.35,28.00,26.30,27.80]},{ x:'10/27/2023',y:[28.00,28.25,26.85,26.85]},{ x:'10/31/2023',y:[26.90,27.00,23.80,23.80]},{ x:'11/01/2023',y:[24.25,25.00,23.80,25.00]},{ x:'11/02/2023',y:[25.90,25.90,25.20,25.30]},{ x:'11/03/2023',y:[25.45,25.60,24.00,24.05]},{ x:'11/06/2023',y:[24.50,25.25,24.50,25.25]},{ x:'11/07/2023',y:[25.35,27.75,25.35,27.75]},{ x:'11/08/2023',y:[27.65,27.65,26.30,26.60]},{ x:'11/09/2023',y:[25.80,26.25,24.45,24.75]},{ x:'11/10/2023',y:[24.55,25.50,22.90,23.60]},{ x:'11/13/2023',y:[24.30,24.75,23.50,24.00]},{ x:'11/14/2023',y:[24.00,24.65,23.50,24.00]},{ x:'11/15/2023',y:[24.25,26.40,24.10,26.40]},{ x:'11/16/2023',y:[27.20,29.00,27.20,29.00]},{ x:'11/17/2023',y:[30.50,30.65,27.80,29.45]},{ x:'11/20/2023',y:[29.60,32.35,29.60,32.35]},{ x:'11/21/2023',y:[33.30,34.30,31.10,31.80]},{ x:'11/22/2023',y:[32.00,34.70,31.20,32.70]},{ x:'11/23/2023',y:[33.05,34.20,31.85,32.80]},{ x:'11/24/2023',y:[32.80,33.40,31.75,32.80]},{ x:'11/27/2023',y:[33.00,33.30,31.00,31.35]},{ x:'11/28/2023',y:[31.30,32.80,31.15,31.75]},{ x:'11/29/2023',y:[31.75,32.25,31.40,31.80]},{ x:'11/30/2023',y:[32.05,32.15,31.25,31.60]},{ x:'12/01/2023',y:[32.00,33.90,31.55,31.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3041 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());