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/18/2024',y:[41.00,41.55,40.80,41.55]},{ x:'03/19/2024',y:[41.90,43.55,41.90,42.20]},{ x:'03/20/2024',y:[42.85,42.85,42.30,42.70]},{ x:'03/21/2024',y:[43.00,43.30,42.35,42.45]},{ x:'03/22/2024',y:[42.45,43.40,42.45,42.85]},{ x:'03/25/2024',y:[43.70,43.80,42.70,42.85]},{ x:'03/26/2024',y:[42.50,43.10,41.80,41.90]},{ x:'03/27/2024',y:[41.85,42.25,41.55,41.65]},{ x:'03/28/2024',y:[42.15,42.25,41.90,42.20]},{ x:'03/29/2024',y:[42.65,42.65,41.80,42.30]},{ x:'04/01/2024',y:[42.30,42.75,41.90,42.65]},{ x:'04/02/2024',y:[42.70,43.45,42.25,43.45]},{ x:'04/03/2024',y:[44.50,44.50,42.60,42.90]},{ x:'04/08/2024',y:[43.10,44.30,43.10,43.85]},{ x:'04/09/2024',y:[44.20,44.20,43.05,43.65]},{ x:'04/10/2024',y:[43.60,44.00,43.00,43.40]},{ x:'04/11/2024',y:[43.95,44.00,43.10,43.60]},{ x:'04/12/2024',y:[44.10,44.10,43.05,43.20]},{ x:'04/15/2024',y:[43.15,43.15,42.40,42.60]},{ x:'04/16/2024',y:[42.60,42.60,41.25,41.30]},{ x:'04/17/2024',y:[41.60,42.05,41.60,41.75]},{ x:'04/18/2024',y:[41.75,41.90,41.75,41.80]},{ x:'04/19/2024',y:[41.40,41.80,40.20,41.80]},{ x:'04/22/2024',y:[45.95,45.95,45.95,45.95]},{ x:'04/23/2024',y:[50.50,50.50,49.80,50.50]},{ x:'04/24/2024',y:[51.00,51.40,47.80,50.30]},{ x:'04/25/2024',y:[48.75,55.30,48.40,55.30]},{ x:'04/26/2024',y:[55.40,57.50,52.30,55.20]},{ x:'04/29/2024',y:[53.00,54.20,52.00,53.00]},{ x:'04/30/2024',y:[50.00,51.70,49.80,49.80]},{ x:'05/02/2024',y:[49.80,54.70,49.60,54.70]},{ x:'05/03/2024',y:[54.70,54.70,53.10,53.20]},{ x:'05/06/2024',y:[54.00,58.50,54.00,57.10]},{ x:'05/07/2024',y:[56.10,61.00,54.00,59.50]},{ x:'05/08/2024',y:[57.90,59.70,57.60,58.50]},{ x:'05/09/2024',y:[60.00,60.00,57.10,58.00]},{ x:'05/10/2024',y:[58.30,58.30,56.10,56.20]},{ x:'05/13/2024',y:[58.90,58.90,53.50,53.50]},{ x:'05/14/2024',y:[51.70,55.20,51.70,53.60]},{ x:'05/15/2024',y:[54.00,56.30,53.70,55.50]},{ x:'05/16/2024',y:[55.80,57.00,54.10,55.50]},{ x:'05/17/2024',y:[55.80,61.00,55.80,61.00]},{ x:'05/20/2024',y:[60.10,67.10,57.20,67.10]},{ x:'05/21/2024',y:[66.60,69.60,64.80,68.00]},{ x:'05/22/2024',y:[68.20,72.90,66.00,69.10]},{ x:'05/23/2024',y:[68.80,70.90,66.50,67.70]},{ x:'05/24/2024',y:[66.50,69.80,66.20,68.50]},{ x:'06/11/2024',y:[91.50,91.50,84.40,85.40]},{ x:'06/12/2024',y:[84.60,86.00,81.60,83.00]},{ x:'06/13/2024',y:[87.50,90.50,84.60,87.30]},{ x:'06/14/2024',y:[87.40,89.50,85.80,86.60]},{ x:'06/17/2024',y:[88.80,92.00,87.70,89.00]},{ x:'06/18/2024',y:[88.00,97.50,88.00,96.70]},{ x:'06/19/2024',y:[96.70,96.70,91.20,91.40]},{ x:'06/20/2024',y:[91.50,94.00,91.20,93.00]},{ x:'06/21/2024',y:[92.10,93.20,88.80,89.30]},{ x:'06/24/2024',y:[89.50,90.70,88.70,88.90]},{ x:'06/25/2024',y:[88.00,92.90,87.30,90.90]},{ x:'06/26/2024',y:[91.90,99.90,90.50,99.90]},{ x:'06/27/2024',y:[99.70,109.50,98.00,109.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4160 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());