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/13/2023',y:[46.45,48.30,46.20,47.10]},{ x:'02/14/2023',y:[47.40,47.70,45.80,47.10]},{ x:'02/15/2023',y:[47.00,47.90,46.05,46.50]},{ x:'02/16/2023',y:[47.50,49.00,46.30,47.35]},{ x:'02/17/2023',y:[47.85,48.75,47.55,48.65]},{ x:'02/20/2023',y:[50.00,51.30,49.65,51.10]},{ x:'02/21/2023',y:[51.70,51.70,49.80,50.50]},{ x:'02/22/2023',y:[50.00,50.10,48.85,48.85]},{ x:'02/23/2023',y:[49.15,49.20,48.30,48.70]},{ x:'02/24/2023',y:[48.80,48.90,47.60,47.60]},{ x:'03/01/2023',y:[47.65,47.85,46.60,46.75]},{ x:'03/02/2023',y:[46.30,47.00,45.85,46.35]},{ x:'03/03/2023',y:[46.90,48.00,46.45,48.00]},{ x:'03/06/2023',y:[48.00,48.20,47.60,47.65]},{ x:'03/07/2023',y:[47.60,48.10,46.60,46.65]},{ x:'03/08/2023',y:[46.65,47.10,46.20,46.65]},{ x:'03/09/2023',y:[46.05,46.60,45.05,45.05]},{ x:'03/10/2023',y:[45.45,46.20,44.80,44.85]},{ x:'03/13/2023',y:[44.80,44.95,43.55,44.40]},{ x:'03/14/2023',y:[44.90,46.20,44.40,45.60]},{ x:'03/15/2023',y:[45.80,46.05,45.25,45.40]},{ x:'03/16/2023',y:[45.20,45.20,44.15,44.15]},{ x:'03/17/2023',y:[45.00,46.40,44.25,46.40]},{ x:'03/20/2023',y:[46.50,47.80,46.10,47.70]},{ x:'03/21/2023',y:[47.90,47.90,46.10,46.10]},{ x:'03/22/2023',y:[46.55,46.60,46.00,46.00]},{ x:'03/23/2023',y:[46.30,47.85,45.90,47.15]},{ x:'03/24/2023',y:[47.25,49.10,47.15,47.80]},{ x:'03/27/2023',y:[48.40,50.00,48.05,49.30]},{ x:'03/28/2023',y:[49.80,50.90,49.30,49.80]},{ x:'03/29/2023',y:[49.95,51.40,48.60,50.70]},{ x:'03/30/2023',y:[50.90,51.90,50.20,50.30]},{ x:'03/31/2023',y:[49.90,50.00,48.45,48.70]},{ x:'04/06/2023',y:[48.70,49.65,48.00,48.00]},{ x:'04/07/2023',y:[48.10,49.50,47.95,49.00]},{ x:'04/10/2023',y:[48.80,50.00,48.75,49.30]},{ x:'04/11/2023',y:[49.70,49.70,48.85,48.90]},{ x:'04/12/2023',y:[48.90,51.30,48.90,49.75]},{ x:'04/13/2023',y:[50.60,50.60,49.65,49.70]},{ x:'04/14/2023',y:[51.30,51.30,49.95,50.00]},{ x:'04/17/2023',y:[50.50,52.90,50.40,52.90]},{ x:'04/18/2023',y:[52.30,52.50,50.80,51.50]},{ x:'04/19/2023',y:[51.90,55.00,51.50,53.20]},{ x:'04/20/2023',y:[53.70,54.80,51.80,52.50]},{ x:'04/21/2023',y:[53.00,53.40,51.10,52.20]},{ x:'04/24/2023',y:[52.30,55.30,51.90,53.40]},{ x:'04/25/2023',y:[55.00,55.50,53.20,55.50]},{ x:'04/26/2023',y:[54.80,54.80,51.90,52.50]},{ x:'04/27/2023',y:[52.70,53.20,52.00,52.70]},{ x:'04/28/2023',y:[53.30,54.30,52.50,53.60]},{ x:'05/02/2023',y:[54.50,54.70,53.70,54.20]},{ x:'05/03/2023',y:[53.90,55.20,53.80,54.00]},{ x:'05/04/2023',y:[54.00,55.80,53.50,54.70]},{ x:'05/05/2023',y:[55.00,55.30,53.30,54.40]},{ x:'05/08/2023',y:[54.40,54.70,53.50,53.50]},{ x:'05/09/2023',y:[53.70,53.80,51.70,51.70]},{ x:'05/10/2023',y:[52.00,56.80,51.80,56.80]},{ x:'05/11/2023',y:[55.00,59.60,54.60,57.10]},{ x:'05/12/2023',y:[56.30,60.20,56.10,59.10]},{ x:'05/15/2023',y:[59.20,63.50,53.20,53.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3224 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());