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:'05/24/2023',y:[70.00,70.50,69.90,69.90]},{ x:'05/25/2023',y:[69.20,70.50,69.20,70.00]},{ x:'05/26/2023',y:[68.80,70.50,68.80,69.20]},{ x:'05/29/2023',y:[69.40,69.50,68.50,68.90]},{ x:'05/30/2023',y:[69.10,70.40,69.00,70.00]},{ x:'05/31/2023',y:[70.10,70.50,70.00,70.00]},{ x:'06/01/2023',y:[70.00,70.80,69.90,70.60]},{ x:'06/02/2023',y:[70.10,70.10,68.70,69.50]},{ x:'06/05/2023',y:[70.10,70.40,69.80,69.80]},{ x:'06/06/2023',y:[69.80,70.00,69.60,69.60]},{ x:'06/07/2023',y:[69.00,69.60,68.80,69.30]},{ x:'06/08/2023',y:[69.40,69.40,68.60,69.00]},{ x:'06/09/2023',y:[68.60,68.90,68.50,68.90]},{ x:'06/12/2023',y:[69.50,69.50,67.90,68.40]},{ x:'06/13/2023',y:[68.40,68.40,67.30,67.70]},{ x:'06/14/2023',y:[68.20,68.20,67.70,67.70]},{ x:'06/15/2023',y:[68.60,68.60,68.00,68.00]},{ x:'06/16/2023',y:[67.90,68.50,67.70,68.00]},{ x:'06/19/2023',y:[67.80,68.80,67.60,68.50]},{ x:'06/20/2023',y:[68.50,68.90,68.40,68.60]},{ x:'06/21/2023',y:[68.20,68.80,68.20,68.50]},{ x:'06/26/2023',y:[68.00,69.00,68.00,68.90]},{ x:'06/27/2023',y:[69.20,75.00,69.20,74.40]},{ x:'06/28/2023',y:[79.90,81.80,79.30,81.80]},{ x:'06/29/2023',y:[89.80,89.80,84.30,88.00]},{ x:'06/30/2023',y:[87.00,90.10,85.60,88.80]},{ x:'07/03/2023',y:[91.30,91.30,87.20,88.20]},{ x:'07/04/2023',y:[88.20,89.30,85.00,85.00]},{ x:'07/05/2023',y:[82.80,83.90,78.30,82.00]},{ x:'07/06/2023',y:[82.50,86.00,81.50,82.60]},{ x:'07/07/2023',y:[82.20,86.20,82.00,83.60]},{ x:'07/10/2023',y:[83.10,84.20,82.00,83.10]},{ x:'07/11/2023',y:[83.00,84.40,82.90,84.00]},{ x:'07/12/2023',y:[82.50,83.30,82.10,82.10]},{ x:'07/13/2023',y:[83.20,83.20,79.50,79.90]},{ x:'07/14/2023',y:[81.50,84.90,80.00,84.00]},{ x:'07/17/2023',y:[82.20,87.20,82.20,85.20]},{ x:'07/18/2023',y:[86.00,86.00,80.00,80.80]},{ x:'07/19/2023',y:[82.10,83.30,81.00,81.20]},{ x:'07/20/2023',y:[81.20,81.90,80.10,81.30]},{ x:'07/21/2023',y:[82.00,83.50,80.70,83.30]},{ x:'07/24/2023',y:[83.30,91.00,83.30,86.50]},{ x:'07/25/2023',y:[88.30,91.00,86.20,89.50]},{ x:'07/26/2023',y:[90.80,90.80,84.50,87.00]},{ x:'07/27/2023',y:[87.40,89.20,85.70,85.70]},{ x:'07/28/2023',y:[85.60,87.00,85.50,86.80]},{ x:'07/31/2023',y:[86.70,87.60,85.00,85.10]},{ x:'08/01/2023',y:[85.00,85.40,83.40,84.90]},{ x:'08/02/2023',y:[84.20,84.90,81.20,81.50]},{ x:'08/04/2023',y:[81.00,82.70,80.10,82.00]},{ x:'08/07/2023',y:[82.00,85.70,82.00,85.00]},{ x:'08/08/2023',y:[85.00,88.60,84.50,88.60]},{ x:'08/09/2023',y:[88.00,88.50,85.10,85.60]},{ x:'08/10/2023',y:[87.30,87.30,83.30,85.10]},{ x:'08/11/2023',y:[85.10,87.50,84.50,86.00]},{ x:'08/14/2023',y:[86.90,87.50,84.70,84.80]},{ x:'08/15/2023',y:[83.80,87.30,83.80,86.60]},{ x:'08/16/2023',y:[86.20,87.50,85.10,86.40]},{ x:'08/17/2023',y:[84.80,87.10,84.50,85.30]},{ x:'08/18/2023',y:[85.90,86.50,85.00,85.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4912 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());