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:'07/10/2023',y:[111.50,113.00,108.50,109.50]},{ x:'07/11/2023',y:[109.50,110.00,103.50,108.50]},{ x:'07/12/2023',y:[110.00,112.00,105.50,107.50]},{ x:'07/13/2023',y:[112.00,117.50,111.00,116.00]},{ x:'07/14/2023',y:[117.50,118.00,112.00,112.50]},{ x:'07/17/2023',y:[112.00,112.50,106.00,106.00]},{ x:'07/18/2023',y:[106.50,106.50,100.50,102.00]},{ x:'07/19/2023',y:[104.00,105.00,98.40,98.80]},{ x:'07/20/2023',y:[99.60,100.50,95.30,95.40]},{ x:'07/21/2023',y:[95.40,97.70,91.00,91.20]},{ x:'07/24/2023',y:[91.80,92.10,86.60,87.90]},{ x:'07/25/2023',y:[88.60,91.40,88.30,88.80]},{ x:'07/26/2023',y:[88.60,88.60,84.90,85.30]},{ x:'07/27/2023',y:[85.50,86.60,83.90,83.90]},{ x:'07/28/2023',y:[83.10,85.10,82.30,83.40]},{ x:'07/31/2023',y:[83.90,87.70,83.40,85.70]},{ x:'08/01/2023',y:[85.70,86.30,83.20,84.30]},{ x:'08/02/2023',y:[84.40,86.40,80.00,81.00]},{ x:'08/04/2023',y:[81.00,81.50,79.70,80.80]},{ x:'08/07/2023',y:[80.80,81.20,78.50,80.60]},{ x:'08/08/2023',y:[80.80,80.90,78.40,78.80]},{ x:'08/09/2023',y:[78.90,80.40,77.60,77.60]},{ x:'08/10/2023',y:[77.60,77.80,74.50,75.60]},{ x:'08/11/2023',y:[76.00,77.40,75.40,75.60]},{ x:'08/14/2023',y:[76.10,76.30,73.20,74.60]},{ x:'08/15/2023',y:[74.50,75.10,73.60,75.10]},{ x:'08/16/2023',y:[74.00,77.30,73.20,76.70]},{ x:'08/17/2023',y:[76.00,81.60,75.50,81.00]},{ x:'08/18/2023',y:[80.40,82.30,80.20,81.60]},{ x:'08/21/2023',y:[81.60,82.40,80.80,82.00]},{ x:'08/22/2023',y:[82.40,82.70,80.60,81.70]},{ x:'08/23/2023',y:[81.90,82.30,79.50,79.50]},{ x:'08/24/2023',y:[80.00,81.00,78.40,80.60]},{ x:'08/25/2023',y:[80.10,82.20,80.00,80.90]},{ x:'08/28/2023',y:[67.50,68.10,63.10,65.00]},{ x:'08/29/2023',y:[65.10,65.90,64.20,65.40]},{ x:'08/30/2023',y:[65.50,69.70,65.50,69.40]},{ x:'08/31/2023',y:[70.10,70.60,68.00,68.10]},{ x:'09/01/2023',y:[68.10,69.70,67.50,67.60]},{ x:'09/04/2023',y:[68.50,70.80,68.30,70.40]},{ x:'09/05/2023',y:[70.30,71.50,69.70,70.40]},{ x:'09/06/2023',y:[70.90,73.50,70.90,72.10]},{ x:'09/07/2023',y:[71.60,72.80,70.60,70.70]},{ x:'09/08/2023',y:[70.90,71.00,69.60,70.40]},{ x:'09/11/2023',y:[69.80,70.00,68.20,69.00]},{ x:'09/12/2023',y:[67.30,67.90,65.10,65.30]},{ x:'09/13/2023',y:[65.70,68.30,65.70,68.30]},{ x:'09/14/2023',y:[68.30,69.40,68.00,68.40]},{ x:'09/15/2023',y:[69.20,69.20,67.10,67.40]},{ x:'09/18/2023',y:[67.40,68.00,66.80,67.00]},{ x:'09/19/2023',y:[67.60,67.70,66.40,66.60]},{ x:'09/20/2023',y:[67.00,67.70,66.10,67.10]},{ x:'09/21/2023',y:[67.00,67.10,65.50,65.90]},{ x:'09/22/2023',y:[66.10,66.20,65.10,66.00]},{ x:'09/25/2023',y:[66.10,67.90,65.80,67.60]},{ x:'09/26/2023',y:[67.30,67.40,66.00,66.00]},{ x:'09/27/2023',y:[66.10,66.10,65.50,65.50]},{ x:'09/28/2023',y:[65.40,66.60,65.40,65.70]},{ x:'10/02/2023',y:[66.80,67.50,66.30,66.60]},{ x:'10/03/2023',y:[66.60,66.90,65.60,65.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6111 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());