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:'02/29/2024',y:[39.30,39.30,37.70,38.15]},{ x:'03/01/2024',y:[38.40,39.00,37.95,38.80]},{ x:'03/04/2024',y:[39.50,40.35,38.85,39.75]},{ x:'03/05/2024',y:[40.00,40.40,37.95,38.00]},{ x:'03/06/2024',y:[38.05,38.20,36.80,37.20]},{ x:'03/07/2024',y:[39.80,39.80,36.70,36.90]},{ x:'03/08/2024',y:[37.20,37.25,34.00,34.85]},{ x:'03/11/2024',y:[35.00,37.25,34.90,36.30]},{ x:'03/12/2024',y:[36.60,39.90,36.25,39.90]},{ x:'03/13/2024',y:[39.95,41.30,38.20,38.50]},{ x:'03/14/2024',y:[38.70,39.70,37.10,38.85]},{ x:'03/15/2024',y:[38.25,39.70,38.10,38.25]},{ x:'03/18/2024',y:[39.00,40.35,37.55,39.75]},{ x:'03/19/2024',y:[39.75,39.75,38.40,38.90]},{ x:'03/20/2024',y:[38.80,39.25,37.65,37.70]},{ x:'03/21/2024',y:[38.20,38.20,37.15,37.25]},{ x:'03/22/2024',y:[37.30,39.30,37.30,38.25]},{ x:'03/25/2024',y:[38.25,38.85,37.80,38.25]},{ x:'03/26/2024',y:[38.50,39.30,37.45,37.70]},{ x:'03/27/2024',y:[37.95,38.85,37.15,38.35]},{ x:'03/28/2024',y:[38.40,38.65,37.70,37.80]},{ x:'03/29/2024',y:[38.40,39.70,38.30,39.50]},{ x:'04/01/2024',y:[40.10,40.10,38.55,38.70]},{ x:'04/02/2024',y:[39.00,40.80,38.25,40.50]},{ x:'04/03/2024',y:[40.10,40.10,37.90,38.70]},{ x:'04/08/2024',y:[38.90,39.10,38.20,38.30]},{ x:'04/09/2024',y:[38.50,38.65,37.75,37.80]},{ x:'04/10/2024',y:[37.30,38.30,37.30,37.65]},{ x:'04/11/2024',y:[37.65,37.85,36.20,36.40]},{ x:'04/12/2024',y:[36.50,37.00,36.40,36.70]},{ x:'04/15/2024',y:[36.50,37.90,36.00,36.90]},{ x:'04/16/2024',y:[36.65,36.65,35.25,35.35]},{ x:'04/17/2024',y:[35.50,37.75,35.50,37.50]},{ x:'04/18/2024',y:[37.35,37.80,36.80,36.95]},{ x:'04/19/2024',y:[36.40,37.00,34.80,35.70]},{ x:'04/22/2024',y:[35.65,36.25,34.25,34.30]},{ x:'04/23/2024',y:[34.70,35.30,34.30,34.60]},{ x:'04/24/2024',y:[37.90,37.90,36.65,37.20]},{ x:'04/25/2024',y:[36.60,40.90,36.30,40.90]},{ x:'04/26/2024',y:[43.90,44.95,42.50,44.95]},{ x:'04/29/2024',y:[48.40,49.40,46.00,49.40]},{ x:'04/30/2024',y:[49.80,51.00,46.90,50.00]},{ x:'05/02/2024',y:[49.45,50.90,46.85,50.60]},{ x:'05/03/2024',y:[49.50,49.75,47.25,47.70]},{ x:'05/06/2024',y:[46.70,47.05,44.50,46.00]},{ x:'05/07/2024',y:[46.50,48.15,46.50,48.00]},{ x:'05/08/2024',y:[47.00,48.45,47.00,47.85]},{ x:'05/09/2024',y:[48.00,48.30,46.00,46.20]},{ x:'05/10/2024',y:[46.15,46.65,45.00,46.60]},{ x:'05/13/2024',y:[47.00,49.95,46.50,49.65]},{ x:'05/14/2024',y:[49.00,49.90,48.40,48.50]},{ x:'05/15/2024',y:[48.50,51.20,48.50,50.50]},{ x:'05/16/2024',y:[50.50,52.00,48.75,50.00]},{ x:'05/17/2024',y:[50.00,50.80,46.10,48.10]},{ x:'05/20/2024',y:[47.30,47.65,45.20,45.80]},{ x:'05/21/2024',y:[45.90,47.85,45.90,46.80]},{ x:'05/22/2024',y:[46.80,51.40,46.55,51.40]},{ x:'05/23/2024',y:[51.40,51.40,48.50,49.00]},{ x:'05/24/2024',y:[48.50,53.90,47.80,53.90]},{ x:'06/11/2024',y:[45.95,46.55,44.50,44.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3234 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());