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:'04/24/2023',y:[58.00,58.90,58.00,58.90]},{ x:'04/25/2023',y:[59.10,59.10,56.50,58.00]},{ x:'04/26/2023',y:[55.50,58.50,55.50,58.50]},{ x:'04/27/2023',y:[57.90,58.00,56.50,58.00]},{ x:'04/28/2023',y:[63.50,63.80,62.50,63.00]},{ x:'05/02/2023',y:[68.00,68.20,65.00,67.50]},{ x:'05/03/2023',y:[65.00,69.00,65.00,67.00]},{ x:'05/04/2023',y:[68.30,69.00,67.30,69.00]},{ x:'05/05/2023',y:[70.50,71.60,69.10,71.60]},{ x:'05/08/2023',y:[72.50,73.30,67.00,69.10]},{ x:'05/09/2023',y:[73.80,73.80,69.70,71.60]},{ x:'05/10/2023',y:[72.90,74.30,72.90,73.90]},{ x:'05/11/2023',y:[74.00,75.00,73.00,74.50]},{ x:'05/12/2023',y:[74.50,75.00,71.00,72.40]},{ x:'05/15/2023',y:[73.70,73.70,70.00,70.00]},{ x:'05/16/2023',y:[71.30,71.50,69.90,71.00]},{ x:'05/17/2023',y:[71.00,73.00,71.00,72.50]},{ x:'05/18/2023',y:[73.00,73.60,72.30,73.40]},{ x:'05/19/2023',y:[72.50,72.90,71.40,72.90]},{ x:'05/22/2023',y:[72.90,73.20,71.00,71.30]},{ x:'05/23/2023',y:[71.30,73.90,70.80,71.40]},{ x:'05/24/2023',y:[71.90,72.10,71.50,72.10]},{ x:'05/25/2023',y:[71.50,71.50,69.00,71.00]},{ x:'05/26/2023',y:[71.00,71.00,68.80,70.50]},{ x:'05/29/2023',y:[68.90,70.00,68.80,69.10]},{ x:'05/30/2023',y:[69.30,69.50,68.50,69.00]},{ x:'05/31/2023',y:[69.20,69.30,68.40,68.40]},{ x:'06/01/2023',y:[67.80,68.70,62.00,68.00]},{ x:'06/02/2023',y:[72.00,74.00,71.00,73.60]},{ x:'06/05/2023',y:[73.60,74.80,73.50,73.50]},{ x:'06/06/2023',y:[73.50,73.60,71.20,72.00]},{ x:'06/07/2023',y:[72.50,73.00,71.50,72.40]},{ x:'06/08/2023',y:[72.40,72.40,70.00,70.00]},{ x:'06/09/2023',y:[69.00,69.90,68.30,68.30]},{ x:'06/12/2023',y:[68.10,68.50,66.00,66.10]},{ x:'06/13/2023',y:[67.50,67.60,66.50,67.00]},{ x:'06/14/2023',y:[67.00,68.00,66.00,67.00]},{ x:'06/15/2023',y:[66.90,67.30,65.00,67.00]},{ x:'06/16/2023',y:[66.50,67.40,65.00,65.90]},{ x:'06/19/2023',y:[70.50,72.40,70.00,72.40]},{ x:'06/20/2023',y:[75.50,79.60,75.00,78.90]},{ x:'06/21/2023',y:[78.90,82.30,78.90,82.20]},{ x:'06/26/2023',y:[84.40,88.00,84.40,88.00]},{ x:'06/27/2023',y:[92.50,96.80,92.50,96.80]},{ x:'06/28/2023',y:[106.00,106.00,105.00,106.00]},{ x:'06/29/2023',y:[105.50,116.00,105.00,112.00]},{ x:'06/30/2023',y:[115.00,120.50,115.00,120.50]},{ x:'07/03/2023',y:[130.00,132.50,130.00,132.50]},{ x:'07/04/2023',y:[145.50,145.50,132.00,140.00]},{ x:'07/05/2023',y:[147.00,153.50,147.00,153.50]},{ x:'07/06/2023',y:[138.50,138.50,138.50,138.50]},{ x:'07/07/2023',y:[125.00,125.00,125.00,125.00]},{ x:'07/10/2023',y:[112.50,112.50,112.50,112.50]},{ x:'07/11/2023',y:[101.50,101.50,101.50,101.50]},{ x:'07/12/2023',y:[91.40,91.40,91.40,91.40]},{ x:'07/13/2023',y:[84.30,100.50,84.30,100.50]},{ x:'07/14/2023',y:[90.50,94.10,90.50,90.50]},{ x:'07/17/2023',y:[84.80,91.00,82.00,83.00]},{ x:'07/18/2023',y:[74.70,83.00,74.70,81.00]},{ x:'07/19/2023',y:[80.00,84.50,79.00,81.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3089 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());