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/17/2023',y:[69.30,70.30,68.80,69.40]},{ x:'04/18/2023',y:[69.70,70.10,67.60,68.00]},{ x:'04/19/2023',y:[68.20,68.30,66.50,66.50]},{ x:'04/20/2023',y:[66.50,66.50,64.70,65.00]},{ x:'04/21/2023',y:[65.30,66.00,64.00,64.20]},{ x:'04/24/2023',y:[64.20,65.30,63.80,65.10]},{ x:'04/25/2023',y:[66.50,66.50,62.10,63.80]},{ x:'04/26/2023',y:[62.80,63.20,61.00,62.30]},{ x:'04/27/2023',y:[62.50,65.70,62.00,65.00]},{ x:'04/28/2023',y:[65.80,67.60,65.80,66.40]},{ x:'05/02/2023',y:[66.40,67.20,65.40,65.60]},{ x:'05/03/2023',y:[65.60,66.00,65.00,65.20]},{ x:'05/04/2023',y:[64.20,65.40,62.00,65.00]},{ x:'05/05/2023',y:[64.50,70.00,64.50,69.00]},{ x:'05/08/2023',y:[69.80,69.80,67.60,67.70]},{ x:'05/09/2023',y:[67.80,68.80,66.50,67.30]},{ x:'05/10/2023',y:[67.00,67.30,63.30,63.70]},{ x:'05/11/2023',y:[63.50,63.50,59.60,60.10]},{ x:'05/12/2023',y:[60.00,62.90,59.60,62.90]},{ x:'05/15/2023',y:[62.00,63.60,62.00,63.10]},{ x:'05/16/2023',y:[63.20,64.00,63.20,63.70]},{ x:'05/17/2023',y:[63.70,64.00,62.90,62.90]},{ x:'05/18/2023',y:[63.60,64.20,63.00,64.10]},{ x:'05/19/2023',y:[64.10,69.50,63.70,67.90]},{ x:'05/22/2023',y:[71.90,74.60,70.30,72.30]},{ x:'05/23/2023',y:[73.10,74.50,71.20,73.30]},{ x:'05/24/2023',y:[73.20,77.40,71.80,75.60]},{ x:'05/25/2023',y:[77.40,78.20,74.10,76.00]},{ x:'05/26/2023',y:[77.20,77.30,73.60,73.70]},{ x:'05/29/2023',y:[74.40,76.60,74.10,75.20]},{ x:'05/30/2023',y:[76.10,76.50,74.70,76.50]},{ x:'05/31/2023',y:[77.20,77.30,74.10,75.00]},{ x:'06/01/2023',y:[75.00,75.20,74.00,74.10]},{ x:'06/02/2023',y:[75.60,78.00,74.30,77.80]},{ x:'06/05/2023',y:[78.00,78.30,75.50,75.80]},{ x:'06/06/2023',y:[76.60,77.10,75.60,76.30]},{ x:'06/07/2023',y:[77.30,83.90,76.80,83.90]},{ x:'06/08/2023',y:[83.00,83.20,80.20,80.70]},{ x:'06/09/2023',y:[82.30,82.80,80.50,81.80]},{ x:'06/12/2023',y:[82.30,82.40,78.30,79.70]},{ x:'06/13/2023',y:[80.50,80.50,78.30,78.90]},{ x:'06/14/2023',y:[78.30,79.80,77.60,78.50]},{ x:'06/15/2023',y:[78.60,79.10,76.80,78.00]},{ x:'06/16/2023',y:[78.70,79.00,77.20,77.30]},{ x:'06/19/2023',y:[77.10,77.10,74.20,74.60]},{ x:'06/20/2023',y:[75.20,75.60,72.80,73.60]},{ x:'06/21/2023',y:[74.00,74.50,73.40,73.60]},{ x:'06/26/2023',y:[73.50,73.60,71.30,72.10]},{ x:'06/27/2023',y:[72.10,73.80,70.30,70.50]},{ x:'06/28/2023',y:[71.50,72.40,71.30,71.30]},{ x:'06/29/2023',y:[72.00,74.00,71.50,72.80]},{ x:'06/30/2023',y:[73.80,75.50,72.70,75.50]},{ x:'07/03/2023',y:[76.50,76.60,73.80,74.50]},{ x:'07/04/2023',y:[74.00,76.00,73.50,75.90]},{ x:'07/05/2023',y:[75.70,78.50,75.00,78.30]},{ x:'07/06/2023',y:[77.40,78.80,76.60,77.50]},{ x:'07/07/2023',y:[77.50,80.70,77.30,80.20]},{ x:'07/10/2023',y:[80.50,83.40,78.80,78.90]},{ x:'07/11/2023',y:[80.50,86.50,80.50,85.40]},{ x:'07/12/2023',y:[87.20,89.40,85.50,87.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6274 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());