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:'07/12/2024',y:[31.35,32.70,31.30,31.75]},{ x:'07/15/2024',y:[31.85,32.30,31.75,32.00]},{ x:'07/16/2024',y:[32.50,33.40,31.75,33.40]},{ x:'07/17/2024',y:[33.75,34.25,33.05,33.30]},{ x:'07/18/2024',y:[32.75,33.20,32.10,32.60]},{ x:'07/19/2024',y:[32.40,32.65,32.00,32.05]},{ x:'07/22/2024',y:[32.05,32.15,30.55,31.65]},{ x:'07/23/2024',y:[31.70,32.70,31.70,32.05]},{ x:'07/26/2024',y:[31.20,31.25,30.55,30.80]},{ x:'07/29/2024',y:[31.45,31.45,29.55,29.95]},{ x:'07/30/2024',y:[29.60,30.70,29.50,30.65]},{ x:'07/31/2024',y:[30.45,31.00,30.00,30.45]},{ x:'08/01/2024',y:[30.85,31.35,30.55,31.25]},{ x:'08/02/2024',y:[30.30,30.90,29.55,29.55]},{ x:'08/05/2024',y:[29.50,29.50,26.60,26.60]},{ x:'08/06/2024',y:[26.90,27.80,23.95,25.25]},{ x:'08/07/2024',y:[25.25,27.50,25.20,27.35]},{ x:'08/08/2024',y:[26.80,27.30,26.45,26.90]},{ x:'08/09/2024',y:[27.20,27.80,26.90,27.10]},{ x:'08/12/2024',y:[26.50,27.30,26.20,27.05]},{ x:'08/13/2024',y:[26.75,27.50,26.60,27.20]},{ x:'08/14/2024',y:[27.20,27.85,27.20,27.45]},{ x:'08/15/2024',y:[27.75,27.75,27.30,27.45]},{ x:'08/16/2024',y:[28.10,28.50,27.70,28.45]},{ x:'08/19/2024',y:[28.80,28.85,28.05,28.20]},{ x:'08/20/2024',y:[28.50,28.60,28.00,28.10]},{ x:'08/21/2024',y:[27.75,28.05,27.50,27.85]},{ x:'08/22/2024',y:[27.60,28.45,27.60,28.10]},{ x:'08/23/2024',y:[28.10,29.70,28.10,28.60]},{ x:'08/26/2024',y:[28.80,28.80,28.25,28.35]},{ x:'08/27/2024',y:[28.10,29.25,28.05,29.25]},{ x:'08/28/2024',y:[29.60,29.60,29.00,29.10]},{ x:'08/29/2024',y:[29.10,29.40,29.00,29.30]},{ x:'08/30/2024',y:[29.70,30.60,29.60,29.60]},{ x:'09/02/2024',y:[27.50,27.50,27.00,27.00]},{ x:'09/03/2024',y:[27.20,27.35,25.85,26.25]},{ x:'09/04/2024',y:[25.10,25.35,24.80,24.90]},{ x:'09/05/2024',y:[25.35,25.60,24.70,24.80]},{ x:'09/06/2024',y:[24.60,25.00,24.60,24.90]},{ x:'09/09/2024',y:[24.25,25.15,24.25,25.15]},{ x:'09/10/2024',y:[24.90,25.40,24.30,24.90]},{ x:'09/11/2024',y:[25.15,25.20,24.45,24.65]},{ x:'09/12/2024',y:[25.10,25.30,24.85,25.30]},{ x:'09/13/2024',y:[25.30,25.70,25.25,25.60]},{ x:'09/16/2024',y:[25.60,25.95,25.60,25.90]},{ x:'09/18/2024',y:[25.90,26.30,25.75,25.85]},{ x:'09/19/2024',y:[25.75,27.55,25.75,26.60]},{ x:'09/20/2024',y:[26.60,27.10,26.20,26.30]},{ x:'09/23/2024',y:[26.35,27.00,26.30,26.40]},{ x:'09/24/2024',y:[25.80,26.65,25.60,25.75]},{ x:'09/25/2024',y:[26.75,26.75,26.20,26.40]},{ x:'09/26/2024',y:[26.40,26.75,25.95,26.50]},{ x:'09/27/2024',y:[26.55,26.60,25.90,26.05]},{ x:'09/30/2024',y:[26.10,26.10,25.60,25.95]},{ x:'10/01/2024',y:[25.95,26.50,25.40,26.00]},{ x:'10/04/2024',y:[25.70,25.90,25.25,25.75]},{ x:'10/07/2024',y:[25.60,26.40,25.50,26.05]},{ x:'10/08/2024',y:[26.20,26.20,25.25,25.45]},{ x:'10/09/2024',y:[25.50,25.55,24.75,24.75]},{ x:'10/11/2024',y:[24.75,25.05,24.70,24.85]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6140 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());