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:'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]},{ x:'04/29/2024',y:[50.40,53.20,49.60,52.60]},{ x:'04/30/2024',y:[53.20,53.90,50.70,53.50]},{ x:'05/02/2024',y:[58.80,58.80,58.80,58.80]},{ x:'05/03/2024',y:[64.60,64.60,64.60,64.60]},{ x:'05/06/2024',y:[70.00,71.00,58.20,58.20]},{ x:'05/07/2024',y:[57.00,58.00,53.60,54.10]},{ x:'05/08/2024',y:[55.30,56.30,54.00,54.40]},{ x:'05/09/2024',y:[54.70,55.30,51.00,51.30]},{ x:'05/10/2024',y:[52.30,52.50,49.90,49.90]},{ x:'05/13/2024',y:[50.10,50.20,47.80,47.90]},{ x:'05/14/2024',y:[48.25,49.45,47.50,48.60]},{ x:'05/15/2024',y:[49.00,49.50,48.10,48.40]},{ x:'05/16/2024',y:[48.70,48.95,48.05,48.15]},{ x:'05/17/2024',y:[48.95,48.95,48.25,48.35]},{ x:'05/20/2024',y:[49.00,49.00,48.10,48.10]},{ x:'05/21/2024',y:[48.70,48.70,48.00,48.05]},{ x:'05/22/2024',y:[48.20,50.00,48.10,49.60]},{ x:'05/23/2024',y:[49.95,49.95,48.30,48.30]},{ x:'05/24/2024',y:[47.85,48.75,47.85,48.50]},{ x:'06/11/2024',y:[49.80,49.80,47.00,47.55]},{ x:'06/12/2024',y:[46.80,47.20,45.10,45.10]},{ x:'06/13/2024',y:[45.00,45.80,44.45,44.65]},{ x:'06/14/2024',y:[45.00,46.50,44.55,44.70]},{ x:'06/17/2024',y:[44.60,45.30,44.00,44.00]},{ x:'06/18/2024',y:[44.40,44.95,44.00,44.85]},{ x:'06/19/2024',y:[45.30,45.35,43.90,43.90]},{ x:'06/20/2024',y:[44.10,44.40,43.85,43.85]},{ x:'06/21/2024',y:[44.20,44.80,43.40,43.60]},{ x:'06/24/2024',y:[43.60,45.40,43.30,43.85]},{ x:'06/25/2024',y:[43.80,44.65,43.35,44.10]},{ x:'06/26/2024',y:[44.40,45.10,44.15,44.15]},{ x:'06/27/2024',y:[44.15,44.20,43.55,43.55]},{ x:'06/28/2024',y:[43.60,44.10,43.35,43.75]},{ x:'07/01/2024',y:[44.00,44.35,43.20,43.25]},{ x:'07/02/2024',y:[43.50,43.65,42.60,42.60]},{ x:'07/03/2024',y:[42.90,45.20,42.75,44.45]},{ x:'07/04/2024',y:[44.50,45.20,43.75,43.75]},{ x:'07/05/2024',y:[44.10,44.25,43.45,43.55]},{ x:'07/12/2024',y:[44.15,44.60,43.50,43.55]},{ x:'07/15/2024',y:[43.55,44.25,43.35,43.70]} ] }], 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());