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/19/2024',y:[40.25,42.40,39.70,40.70]},{ x:'03/20/2024',y:[40.05,40.15,38.00,38.25]},{ x:'03/21/2024',y:[38.25,38.75,37.30,38.60]},{ x:'03/22/2024',y:[38.35,39.35,37.70,38.50]},{ x:'03/25/2024',y:[38.50,42.35,38.40,42.35]},{ x:'03/26/2024',y:[43.30,43.85,39.55,40.60]},{ x:'03/27/2024',y:[40.60,41.65,40.10,40.75]},{ x:'03/28/2024',y:[41.15,42.80,40.80,42.45]},{ x:'03/29/2024',y:[42.40,44.00,42.20,43.75]},{ x:'04/01/2024',y:[44.90,44.95,42.20,43.00]},{ x:'04/02/2024',y:[43.00,43.30,42.10,42.35]},{ x:'04/03/2024',y:[42.20,42.80,41.05,41.35]},{ x:'04/08/2024',y:[41.25,41.60,40.45,40.80]},{ x:'04/09/2024',y:[41.25,43.20,41.20,41.55]},{ x:'04/10/2024',y:[41.55,43.30,41.20,42.65]},{ x:'04/11/2024',y:[43.45,46.90,43.00,46.90]},{ x:'04/12/2024',y:[47.85,51.50,47.80,51.50]},{ x:'04/15/2024',y:[53.10,53.20,47.40,49.30]},{ x:'04/16/2024',y:[48.50,49.00,44.40,44.75]},{ x:'04/17/2024',y:[45.95,49.20,45.10,49.20]},{ x:'04/18/2024',y:[49.00,54.00,47.25,48.95]},{ x:'04/19/2024',y:[47.00,47.80,44.50,46.20]},{ x:'04/22/2024',y:[46.35,47.00,43.00,43.15]},{ x:'04/23/2024',y:[44.05,45.90,42.00,42.00]},{ x:'04/24/2024',y:[42.80,44.00,41.65,41.65]},{ x:'04/25/2024',y:[42.00,44.85,41.35,43.50]},{ x:'04/26/2024',y:[43.75,47.30,43.75,45.40]},{ x:'04/29/2024',y:[46.20,48.40,43.60,43.95]},{ x:'04/30/2024',y:[44.95,46.80,42.70,46.25]},{ x:'05/02/2024',y:[46.25,47.35,45.10,46.50]},{ x:'05/03/2024',y:[47.25,47.80,45.65,46.40]},{ x:'05/06/2024',y:[46.50,50.50,46.00,48.80]},{ x:'05/07/2024',y:[49.00,49.75,47.50,48.90]},{ x:'05/08/2024',y:[48.75,49.90,46.60,46.90]},{ x:'05/09/2024',y:[47.85,49.30,47.20,47.20]},{ x:'05/10/2024',y:[47.20,48.00,45.50,46.30]},{ x:'05/13/2024',y:[47.30,47.60,45.80,45.95]},{ x:'05/14/2024',y:[45.85,46.50,45.75,45.85]},{ x:'05/15/2024',y:[46.10,48.20,45.85,47.30]},{ x:'05/16/2024',y:[48.00,49.20,46.00,46.50]},{ x:'05/17/2024',y:[48.50,51.10,47.50,48.00]},{ x:'05/20/2024',y:[47.80,48.70,47.40,47.50]},{ x:'05/21/2024',y:[47.10,48.20,46.70,48.05]},{ x:'05/22/2024',y:[48.05,52.60,47.90,49.20]},{ x:'05/23/2024',y:[51.00,51.80,48.75,49.00]},{ x:'05/24/2024',y:[48.25,51.50,47.65,50.10]},{ x:'06/11/2024',y:[67.70,69.00,67.50,68.90]},{ x:'06/12/2024',y:[69.00,69.00,67.00,68.50]},{ x:'06/13/2024',y:[69.30,70.70,68.10,70.60]},{ x:'06/14/2024',y:[71.20,71.20,69.50,70.60]},{ x:'06/17/2024',y:[71.00,75.20,71.00,73.50]},{ x:'06/18/2024',y:[74.90,77.80,74.20,77.80]},{ x:'06/19/2024',y:[79.00,79.40,72.00,73.10]},{ x:'06/20/2024',y:[72.90,75.00,72.10,73.70]},{ x:'06/21/2024',y:[71.20,73.30,68.40,71.10]},{ x:'06/24/2024',y:[70.90,72.70,67.00,68.30]},{ x:'06/25/2024',y:[68.00,70.80,65.80,68.60]},{ x:'06/26/2024',y:[69.00,75.40,69.00,75.40]},{ x:'06/27/2024',y:[76.40,82.90,76.20,82.90]},{ x:'06/28/2024',y:[87.30,91.10,85.00,87.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3312 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());