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:[21.90,22.60,21.60,21.90]},{ x:'01/23/2024',y:[22.00,22.00,21.70,21.70]},{ x:'01/24/2024',y:[21.70,21.70,21.40,21.55]},{ x:'01/25/2024',y:[21.55,21.60,21.45,21.45]},{ x:'01/26/2024',y:[21.45,21.65,21.00,21.00]},{ x:'01/29/2024',y:[21.00,22.40,21.00,22.20]},{ x:'01/30/2024',y:[22.45,24.40,22.45,24.40]},{ x:'01/31/2024',y:[25.80,26.50,24.00,25.20]},{ x:'02/01/2024',y:[25.35,27.70,25.10,27.70]},{ x:'02/02/2024',y:[29.40,30.00,28.10,28.95]},{ x:'02/05/2024',y:[30.50,31.50,29.20,29.85]},{ x:'02/15/2024',y:[30.00,30.70,26.90,26.95]},{ x:'02/16/2024',y:[27.05,29.60,27.00,29.10]},{ x:'02/19/2024',y:[30.00,32.00,29.50,32.00]},{ x:'02/20/2024',y:[32.50,33.75,29.80,30.20]},{ x:'02/21/2024',y:[29.70,30.35,29.00,29.50]},{ x:'02/22/2024',y:[29.70,32.45,29.50,32.45]},{ x:'02/23/2024',y:[33.10,35.65,33.10,35.65]},{ x:'02/26/2024',y:[37.50,39.20,37.00,39.20]},{ x:'02/27/2024',y:[40.20,42.85,39.65,42.05]},{ x:'02/29/2024',y:[43.20,46.25,43.20,46.25]},{ x:'03/01/2024',y:[49.25,49.25,44.15,46.00]},{ x:'03/04/2024',y:[47.60,50.60,46.00,50.60]},{ x:'03/05/2024',y:[52.00,55.60,52.00,55.60]},{ x:'03/06/2024',y:[58.60,61.10,57.90,61.10]},{ x:'03/07/2024',y:[62.80,62.90,55.00,55.00]},{ x:'03/08/2024',y:[52.90,52.90,49.50,49.50]},{ x:'03/11/2024',y:[47.90,48.60,46.50,48.50]},{ x:'03/12/2024',y:[46.20,46.20,43.65,43.65]},{ x:'03/13/2024',y:[41.50,41.50,39.30,39.30]},{ x:'03/14/2024',y:[37.35,42.65,37.35,42.50]},{ x:'03/15/2024',y:[41.25,43.70,41.25,42.90]},{ x:'03/18/2024',y:[43.35,45.05,43.35,44.90]},{ x:'03/19/2024',y:[44.45,45.00,42.20,43.00]},{ x:'03/20/2024',y:[43.00,45.10,43.00,44.75]},{ x:'03/21/2024',y:[44.00,45.80,42.65,44.10]},{ x:'03/22/2024',y:[44.45,47.45,43.60,43.60]},{ x:'03/25/2024',y:[44.05,46.25,43.45,45.85]},{ x:'03/26/2024',y:[46.35,46.45,43.10,43.80]},{ x:'03/27/2024',y:[44.30,48.15,44.05,48.15]},{ x:'03/28/2024',y:[49.35,52.90,48.15,49.45]},{ x:'03/29/2024',y:[50.10,53.20,49.60,53.00]},{ x:'04/01/2024',y:[54.70,56.00,53.60,54.10]},{ x:'04/02/2024',y:[54.10,55.40,51.40,54.60]},{ x:'04/03/2024',y:[54.20,56.60,53.00,55.50]},{ x:'04/08/2024',y:[55.80,56.30,53.50,55.40]},{ x:'04/09/2024',y:[55.20,55.90,49.95,50.10]},{ x:'04/10/2024',y:[50.20,52.10,49.00,51.00]},{ x:'04/11/2024',y:[51.80,53.00,48.70,51.10]},{ x:'04/12/2024',y:[50.80,52.10,50.20,50.60]},{ x:'04/15/2024',y:[50.40,51.70,49.70,50.80]},{ x:'04/16/2024',y:[50.30,51.30,47.30,49.05]},{ x:'04/17/2024',y:[49.15,51.80,48.30,48.30]},{ x:'04/18/2024',y:[48.05,48.10,43.50,44.00]},{ x:'04/19/2024',y:[43.45,43.90,40.50,42.50]},{ x:'04/22/2024',y:[42.50,45.75,41.80,42.00]},{ x:'04/23/2024',y:[43.40,45.10,40.85,44.50]},{ x:'04/24/2024',y:[44.70,48.95,44.15,48.95]},{ x:'04/25/2024',y:[50.20,52.00,48.05,50.20]},{ x:'04/26/2024',y:[50.10,51.50,49.20,50.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4303 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());