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:'01/22/2024',y:[32.40,33.60,32.40,33.45]},{ x:'01/23/2024',y:[33.50,33.50,32.80,33.00]},{ x:'01/24/2024',y:[33.00,33.80,32.95,33.50]},{ x:'01/25/2024',y:[34.00,34.00,33.25,33.25]},{ x:'01/26/2024',y:[33.25,33.30,32.65,32.65]},{ x:'01/29/2024',y:[33.10,33.25,32.80,33.15]},{ x:'01/30/2024',y:[33.15,36.45,32.60,36.00]},{ x:'01/31/2024',y:[36.00,38.40,35.05,38.20]},{ x:'02/01/2024',y:[38.25,39.90,37.40,39.30]},{ x:'02/02/2024',y:[39.70,39.90,38.35,38.35]},{ x:'02/05/2024',y:[38.10,38.70,37.05,37.10]},{ x:'02/15/2024',y:[36.95,37.70,35.50,36.85]},{ x:'02/16/2024',y:[36.85,37.30,36.20,36.65]},{ x:'02/19/2024',y:[37.00,37.75,36.80,37.45]},{ x:'02/20/2024',y:[37.45,37.45,36.50,36.60]},{ x:'02/21/2024',y:[36.85,36.85,36.05,36.10]},{ x:'02/22/2024',y:[36.30,36.40,35.20,35.30]},{ x:'02/23/2024',y:[35.40,36.30,34.80,35.85]},{ x:'02/26/2024',y:[35.90,36.40,35.65,36.20]},{ x:'02/27/2024',y:[36.05,36.05,35.00,35.05]},{ x:'02/29/2024',y:[34.35,34.95,34.30,34.70]},{ x:'03/01/2024',y:[35.20,35.85,34.70,35.50]},{ x:'03/04/2024',y:[36.20,37.60,35.55,37.40]},{ x:'03/05/2024',y:[37.60,37.85,36.15,36.40]},{ x:'03/06/2024',y:[36.50,38.20,36.50,37.15]},{ x:'03/07/2024',y:[37.25,39.40,37.25,39.10]},{ x:'03/08/2024',y:[39.35,40.85,36.75,38.85]},{ x:'03/11/2024',y:[38.70,38.70,36.85,36.90]},{ x:'03/12/2024',y:[37.05,37.70,36.65,36.80]},{ x:'03/13/2024',y:[37.25,38.65,37.10,38.00]},{ x:'03/14/2024',y:[38.20,38.50,37.00,37.00]},{ x:'03/15/2024',y:[36.85,36.95,35.80,35.80]},{ x:'03/18/2024',y:[35.60,35.60,32.25,32.25]},{ x:'03/19/2024',y:[32.10,32.10,29.05,29.05]},{ x:'03/20/2024',y:[29.05,29.15,28.00,28.20]},{ x:'04/01/2024',y:[31.20,31.45,30.05,31.20]},{ x:'04/02/2024',y:[31.85,31.85,31.20,31.30]},{ x:'04/03/2024',y:[31.20,31.20,29.40,29.50]},{ x:'04/08/2024',y:[29.80,30.00,29.10,30.00]},{ x:'04/09/2024',y:[30.25,30.40,29.65,29.70]},{ x:'04/10/2024',y:[29.70,30.50,29.70,29.80]},{ x:'04/11/2024',y:[29.00,29.05,26.85,27.75]},{ x:'04/12/2024',y:[27.80,28.20,27.60,27.65]},{ x:'04/15/2024',y:[27.70,28.00,27.00,27.00]},{ x:'04/16/2024',y:[26.20,26.95,25.90,26.30]},{ x:'04/17/2024',y:[26.45,27.15,26.30,26.35]},{ x:'04/18/2024',y:[26.55,27.15,26.05,26.85]},{ x:'04/19/2024',y:[26.85,26.95,25.20,25.50]},{ x:'04/22/2024',y:[25.60,26.60,25.25,25.30]},{ x:'04/23/2024',y:[25.65,26.00,25.30,25.70]},{ x:'04/24/2024',y:[25.80,26.25,25.75,25.75]},{ x:'04/25/2024',y:[25.75,25.75,25.30,25.50]},{ x:'04/26/2024',y:[25.50,25.70,25.50,25.50]},{ x:'04/29/2024',y:[26.00,26.60,26.00,26.25]},{ x:'04/30/2024',y:[26.45,26.45,26.15,26.35]},{ x:'05/02/2024',y:[26.65,26.65,26.10,26.35]},{ x:'05/03/2024',y:[26.35,26.50,25.80,25.80]},{ x:'05/06/2024',y:[25.85,26.50,25.85,26.20]},{ x:'05/07/2024',y:[26.55,26.55,25.70,25.80]},{ x:'05/08/2024',y:[25.80,26.10,25.80,25.85]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3308 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());