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:'08/17/2023',y:[77.10,78.50,76.60,78.40]},{ x:'08/18/2023',y:[78.00,79.00,77.70,78.20]},{ x:'08/21/2023',y:[77.80,77.90,76.80,77.10]},{ x:'08/22/2023',y:[77.10,77.10,76.20,77.10]},{ x:'08/23/2023',y:[77.10,78.30,77.10,78.30]},{ x:'08/24/2023',y:[78.40,78.60,77.40,77.60]},{ x:'08/25/2023',y:[77.40,77.90,76.80,77.80]},{ x:'08/28/2023',y:[78.10,78.10,76.80,76.80]},{ x:'08/29/2023',y:[76.80,78.10,76.60,78.00]},{ x:'08/30/2023',y:[78.50,80.20,78.10,79.80]},{ x:'08/31/2023',y:[80.00,80.30,79.40,80.20]},{ x:'09/01/2023',y:[80.20,81.60,80.20,81.60]},{ x:'09/04/2023',y:[82.30,82.30,80.60,81.30]},{ x:'09/05/2023',y:[81.50,81.80,80.80,81.80]},{ x:'09/06/2023',y:[82.00,82.80,81.80,82.80]},{ x:'09/07/2023',y:[83.00,83.10,81.70,81.90]},{ x:'09/08/2023',y:[81.90,83.00,81.90,83.00]},{ x:'09/11/2023',y:[81.70,81.70,78.90,79.80]},{ x:'09/12/2023',y:[80.10,80.20,79.70,79.70]},{ x:'09/13/2023',y:[79.70,80.70,79.70,80.50]},{ x:'09/14/2023',y:[80.50,81.50,80.50,81.50]},{ x:'09/15/2023',y:[81.50,81.90,81.10,81.90]},{ x:'09/18/2023',y:[81.30,84.90,81.30,84.90]},{ x:'09/19/2023',y:[84.90,85.20,83.80,85.00]},{ x:'09/20/2023',y:[85.00,86.30,84.70,84.90]},{ x:'09/21/2023',y:[84.10,84.50,82.50,84.00]},{ x:'09/22/2023',y:[83.10,84.80,83.10,84.20]},{ x:'09/25/2023',y:[75.80,75.80,75.80,75.80]},{ x:'09/26/2023',y:[68.30,68.30,68.30,68.30]},{ x:'09/27/2023',y:[61.50,63.70,61.50,61.50]},{ x:'09/28/2023',y:[63.00,63.00,56.10,61.00]},{ x:'10/02/2023',y:[60.10,61.00,57.50,59.60]},{ x:'10/03/2023',y:[59.80,62.00,59.80,61.80]},{ x:'10/04/2023',y:[61.80,61.80,60.60,61.30]},{ x:'10/05/2023',y:[61.80,63.00,61.80,62.50]},{ x:'10/06/2023',y:[63.00,66.50,63.00,66.30]},{ x:'10/11/2023',y:[66.00,66.00,61.70,62.50]},{ x:'10/12/2023',y:[62.30,62.50,61.90,62.10]},{ x:'10/13/2023',y:[61.80,62.90,61.70,61.90]},{ x:'10/18/2023',y:[59.20,60.10,59.20,59.90]},{ x:'10/19/2023',y:[59.20,59.30,58.70,59.00]},{ x:'10/20/2023',y:[59.00,59.00,57.80,58.00]},{ x:'10/23/2023',y:[57.00,57.60,56.60,57.20]},{ x:'10/24/2023',y:[57.20,58.00,57.20,58.00]},{ x:'10/25/2023',y:[58.00,58.00,57.30,57.70]},{ x:'10/26/2023',y:[57.70,58.70,57.30,57.60]},{ x:'10/27/2023',y:[57.60,57.60,56.60,56.60]},{ x:'10/31/2023',y:[52.20,52.20,49.15,49.50]},{ x:'11/01/2023',y:[49.60,51.90,49.60,51.50]},{ x:'11/02/2023',y:[52.00,54.40,51.60,54.10]},{ x:'11/03/2023',y:[55.70,55.90,53.60,55.20]},{ x:'11/06/2023',y:[56.10,57.30,55.00,57.10]},{ x:'11/07/2023',y:[57.00,59.00,56.00,58.70]},{ x:'11/08/2023',y:[58.20,58.20,57.20,57.80]},{ x:'11/09/2023',y:[57.10,57.10,55.70,56.50]},{ x:'11/10/2023',y:[55.70,57.40,55.20,57.30]},{ x:'11/13/2023',y:[57.20,57.30,56.20,56.90]},{ x:'11/14/2023',y:[56.60,57.10,56.50,56.60]},{ x:'11/15/2023',y:[56.50,57.20,56.30,57.00]},{ x:'11/16/2023',y:[56.50,58.40,56.50,56.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8420 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());