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/30/2024',y:[27.30,27.30,27.10,27.15]},{ x:'01/31/2024',y:[27.05,27.30,27.05,27.15]},{ x:'02/01/2024',y:[27.20,27.60,27.20,27.30]},{ x:'02/02/2024',y:[27.40,27.40,27.15,27.20]},{ x:'02/05/2024',y:[27.25,27.45,27.25,27.40]},{ x:'02/15/2024',y:[27.40,27.45,27.05,27.10]},{ x:'02/16/2024',y:[27.00,27.20,26.95,27.00]},{ x:'02/19/2024',y:[27.05,27.30,27.05,27.20]},{ x:'02/20/2024',y:[27.20,27.25,27.05,27.05]},{ x:'02/21/2024',y:[27.15,27.15,27.05,27.05]},{ x:'02/22/2024',y:[27.10,27.20,27.05,27.05]},{ x:'02/23/2024',y:[27.10,27.10,26.95,26.95]},{ x:'02/26/2024',y:[26.90,26.95,26.75,26.85]},{ x:'02/27/2024',y:[26.85,26.90,26.70,26.70]},{ x:'02/29/2024',y:[26.75,27.10,26.70,26.80]},{ x:'03/01/2024',y:[26.85,27.15,26.85,27.10]},{ x:'03/04/2024',y:[27.40,27.60,27.25,27.25]},{ x:'03/05/2024',y:[27.30,27.60,27.30,27.45]},{ x:'03/06/2024',y:[27.65,28.25,27.60,28.05]},{ x:'03/07/2024',y:[28.20,28.20,27.80,27.80]},{ x:'03/08/2024',y:[27.70,28.15,27.65,28.15]},{ x:'03/11/2024',y:[28.50,28.95,28.30,28.50]},{ x:'03/12/2024',y:[28.50,29.30,28.35,29.05]},{ x:'03/13/2024',y:[29.10,29.20,28.85,29.10]},{ x:'03/14/2024',y:[29.10,29.35,28.95,29.00]},{ x:'03/15/2024',y:[29.00,29.10,28.65,28.65]},{ x:'03/18/2024',y:[28.80,28.85,28.50,28.70]},{ x:'03/19/2024',y:[28.80,29.00,28.65,28.70]},{ x:'03/20/2024',y:[28.70,28.80,28.60,28.70]},{ x:'03/21/2024',y:[28.80,29.10,28.65,29.00]},{ x:'03/22/2024',y:[29.10,29.10,28.75,28.85]},{ x:'03/25/2024',y:[28.85,29.00,28.70,28.95]},{ x:'03/26/2024',y:[29.30,29.95,29.25,29.70]},{ x:'03/27/2024',y:[29.90,30.10,29.65,30.10]},{ x:'03/28/2024',y:[30.40,30.90,30.10,30.20]},{ x:'03/29/2024',y:[30.55,31.50,30.20,30.55]},{ x:'04/01/2024',y:[30.75,30.95,30.65,30.85]},{ x:'04/02/2024',y:[30.90,31.10,30.60,31.00]},{ x:'04/03/2024',y:[31.10,31.65,30.90,31.60]},{ x:'04/08/2024',y:[31.75,31.95,31.30,31.80]},{ x:'04/09/2024',y:[32.00,33.25,31.95,32.65]},{ x:'04/10/2024',y:[32.40,33.00,32.40,32.75]},{ x:'04/11/2024',y:[32.55,32.65,32.20,32.50]},{ x:'04/12/2024',y:[32.60,32.60,32.35,32.55]},{ x:'04/15/2024',y:[32.55,33.80,32.40,32.95]},{ x:'04/16/2024',y:[33.00,33.00,31.65,31.75]},{ x:'04/17/2024',y:[31.85,32.45,31.85,32.35]},{ x:'04/18/2024',y:[32.50,35.55,32.45,35.55]},{ x:'04/19/2024',y:[39.10,39.10,36.20,39.10]},{ x:'04/22/2024',y:[41.00,42.65,35.80,37.25]},{ x:'04/23/2024',y:[37.35,38.15,35.10,36.80]},{ x:'04/24/2024',y:[38.20,39.10,37.05,38.05]},{ x:'04/25/2024',y:[38.00,39.90,37.95,38.60]},{ x:'04/26/2024',y:[38.60,39.50,37.30,39.00]},{ x:'04/29/2024',y:[39.20,39.70,38.50,39.10]},{ x:'04/30/2024',y:[38.95,38.95,37.80,38.00]},{ x:'05/02/2024',y:[38.35,40.90,38.25,39.60]},{ x:'05/03/2024',y:[39.10,40.25,38.50,39.60]},{ x:'05/06/2024',y:[40.10,40.15,38.50,38.65]},{ x:'05/07/2024',y:[38.60,38.95,36.95,37.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3703 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());