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/21/2024',y:[42.15,42.35,41.10,41.70]},{ x:'03/22/2024',y:[41.75,45.85,41.50,45.85]},{ x:'03/25/2024',y:[46.35,48.60,44.60,46.60]},{ x:'03/26/2024',y:[46.80,47.85,45.10,45.55]},{ x:'03/27/2024',y:[47.20,50.10,47.20,47.90]},{ x:'03/28/2024',y:[48.20,48.60,46.95,47.00]},{ x:'03/29/2024',y:[47.80,48.75,46.50,46.55]},{ x:'04/01/2024',y:[46.60,48.60,45.70,47.10]},{ x:'04/02/2024',y:[47.15,48.00,46.75,47.65]},{ x:'04/03/2024',y:[47.45,47.95,46.65,46.70]},{ x:'04/08/2024',y:[47.40,49.50,47.20,48.90]},{ x:'04/09/2024',y:[51.10,53.70,51.10,53.70]},{ x:'04/10/2024',y:[55.60,58.50,53.80,55.20]},{ x:'04/11/2024',y:[52.70,53.00,50.00,50.00]},{ x:'04/12/2024',y:[50.10,51.30,49.55,50.20]},{ x:'04/15/2024',y:[48.65,49.70,48.20,48.20]},{ x:'04/16/2024',y:[47.55,48.00,45.80,46.40]},{ x:'04/17/2024',y:[47.10,47.85,47.10,47.65]},{ x:'04/18/2024',y:[47.00,47.30,46.15,46.40]},{ x:'04/19/2024',y:[45.80,45.80,42.50,43.95]},{ x:'04/22/2024',y:[45.00,45.00,43.15,43.60]},{ x:'04/23/2024',y:[44.95,46.00,43.75,45.00]},{ x:'04/24/2024',y:[45.95,48.20,45.80,47.45]},{ x:'04/25/2024',y:[47.30,48.75,46.60,47.45]},{ x:'04/26/2024',y:[48.00,52.00,47.80,50.70]},{ x:'04/29/2024',y:[51.50,51.90,49.00,49.70]},{ x:'04/30/2024',y:[49.10,49.60,48.60,48.65]},{ x:'05/02/2024',y:[48.30,49.50,47.70,47.80]},{ x:'05/03/2024',y:[48.35,49.25,46.15,46.45]},{ x:'05/06/2024',y:[47.00,48.40,46.05,46.85]},{ x:'05/07/2024',y:[47.05,49.80,47.05,48.90]},{ x:'05/08/2024',y:[48.55,50.50,48.00,48.75]},{ x:'05/09/2024',y:[49.60,51.40,49.60,49.95]},{ x:'05/10/2024',y:[49.70,50.30,48.60,49.05]},{ x:'05/13/2024',y:[48.80,49.15,47.70,48.15]},{ x:'05/14/2024',y:[48.00,50.30,47.70,49.55]},{ x:'05/15/2024',y:[50.00,51.00,49.50,51.00]},{ x:'05/16/2024',y:[52.00,53.50,50.30,50.90]},{ x:'05/17/2024',y:[50.90,52.50,49.90,51.40]},{ x:'05/20/2024',y:[51.00,52.30,49.85,50.80]},{ x:'05/21/2024',y:[50.80,55.80,50.50,55.80]},{ x:'05/22/2024',y:[56.50,61.30,56.30,61.30]},{ x:'05/23/2024',y:[63.20,65.00,57.70,58.70]},{ x:'05/24/2024',y:[58.00,62.80,56.90,62.00]},{ x:'06/11/2024',y:[61.10,61.20,58.00,59.50]},{ x:'06/12/2024',y:[60.00,65.40,59.00,65.40]},{ x:'06/13/2024',y:[65.40,66.50,64.00,64.50]},{ x:'06/14/2024',y:[64.50,65.80,63.40,63.70]},{ x:'06/17/2024',y:[63.80,67.40,63.80,65.20]},{ x:'06/18/2024',y:[65.80,67.00,63.60,64.10]},{ x:'06/19/2024',y:[65.00,65.00,61.10,63.50]},{ x:'06/20/2024',y:[63.30,64.60,62.80,64.60]},{ x:'06/21/2024',y:[63.90,64.80,63.10,64.50]},{ x:'06/24/2024',y:[65.00,69.50,65.00,68.00]},{ x:'06/25/2024',y:[68.90,69.90,65.90,68.00]},{ x:'06/26/2024',y:[67.70,69.20,67.00,67.50]},{ x:'06/27/2024',y:[66.80,67.50,65.40,65.40]},{ x:'06/28/2024',y:[66.30,70.30,66.20,68.80]},{ x:'07/01/2024',y:[70.60,75.00,69.30,69.90]},{ x:'07/02/2024',y:[71.70,73.60,69.90,70.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2464 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());