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/17/2023',y:[67.40,67.80,66.80,67.40]},{ x:'02/20/2023',y:[68.30,71.30,67.50,70.20]},{ x:'02/21/2023',y:[71.30,72.30,70.40,72.00]},{ x:'02/22/2023',y:[71.90,72.70,70.30,70.60]},{ x:'02/23/2023',y:[71.10,73.30,70.80,72.70]},{ x:'02/24/2023',y:[72.20,72.80,71.50,71.90]},{ x:'03/01/2023',y:[72.50,74.90,72.00,73.60]},{ x:'03/02/2023',y:[74.70,76.50,74.00,74.10]},{ x:'03/03/2023',y:[75.10,75.50,73.70,74.90]},{ x:'03/06/2023',y:[75.90,76.20,72.20,75.20]},{ x:'03/07/2023',y:[76.40,76.50,75.30,75.70]},{ x:'03/08/2023',y:[76.90,78.30,76.00,76.10]},{ x:'03/09/2023',y:[75.80,75.80,71.60,71.60]},{ x:'03/10/2023',y:[71.60,71.80,68.20,68.20]},{ x:'03/13/2023',y:[67.70,68.40,66.50,67.30]},{ x:'03/14/2023',y:[67.30,68.20,66.50,67.20]},{ x:'03/15/2023',y:[67.50,69.00,67.30,68.60]},{ x:'03/16/2023',y:[68.80,69.20,67.30,67.90]},{ x:'03/17/2023',y:[68.70,69.90,68.40,69.80]},{ x:'03/20/2023',y:[69.80,71.20,69.00,70.30]},{ x:'03/21/2023',y:[70.70,71.40,69.50,69.70]},{ x:'03/22/2023',y:[70.00,70.20,67.50,67.80]},{ x:'03/23/2023',y:[67.80,68.20,67.10,68.00]},{ x:'03/24/2023',y:[68.00,70.60,67.60,70.10]},{ x:'03/27/2023',y:[70.10,73.00,69.60,72.20]},{ x:'03/28/2023',y:[72.20,72.90,71.10,72.20]},{ x:'03/29/2023',y:[72.20,75.80,72.20,73.70]},{ x:'03/30/2023',y:[75.50,77.10,74.60,75.60]},{ x:'03/31/2023',y:[76.50,77.20,75.90,76.70]},{ x:'04/06/2023',y:[76.80,81.50,76.70,79.30]},{ x:'04/07/2023',y:[79.70,83.30,78.70,82.90]},{ x:'04/10/2023',y:[84.80,86.40,83.70,86.00]},{ x:'04/11/2023',y:[85.10,88.50,84.90,87.00]},{ x:'04/12/2023',y:[87.00,87.90,86.20,87.50]},{ x:'04/13/2023',y:[87.50,87.90,84.60,86.90]},{ x:'04/14/2023',y:[87.30,87.50,85.40,85.40]},{ x:'04/17/2023',y:[86.00,88.60,85.90,86.50]},{ x:'04/18/2023',y:[86.30,86.40,83.40,83.90]},{ x:'04/19/2023',y:[84.50,85.10,82.00,83.60]},{ x:'04/20/2023',y:[84.00,84.70,82.60,82.60]},{ x:'04/21/2023',y:[83.00,83.00,80.00,80.80]},{ x:'04/24/2023',y:[80.50,82.40,80.50,80.80]},{ x:'04/25/2023',y:[81.70,82.80,78.80,79.30]},{ x:'04/26/2023',y:[78.90,79.50,76.70,78.40]},{ x:'04/27/2023',y:[78.20,79.30,76.70,78.40]},{ x:'04/28/2023',y:[79.00,83.80,78.40,83.20]},{ x:'05/02/2023',y:[87.70,91.50,83.50,91.50]},{ x:'05/03/2023',y:[94.00,100.00,91.10,95.70]},{ x:'05/04/2023',y:[96.30,99.50,92.50,94.40]},{ x:'05/05/2023',y:[94.40,94.80,91.60,92.20]},{ x:'05/08/2023',y:[92.50,93.10,90.50,92.60]},{ x:'05/09/2023',y:[94.10,94.10,89.20,89.20]},{ x:'05/10/2023',y:[89.20,91.50,89.10,90.70]},{ x:'05/11/2023',y:[90.40,91.20,86.20,86.90]},{ x:'05/12/2023',y:[87.40,89.40,86.90,88.40]},{ x:'05/15/2023',y:[88.10,89.00,84.50,86.50]},{ x:'05/16/2023',y:[87.20,89.20,86.60,88.50]},{ x:'05/17/2023',y:[89.80,93.00,88.80,89.70]},{ x:'05/18/2023',y:[90.00,90.50,86.60,87.10]},{ x:'05/19/2023',y:[87.60,87.70,85.00,85.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4746 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());