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/02/2023',y:[43.70,45.45,42.50,42.65]},{ x:'08/04/2023',y:[41.70,46.90,41.70,46.90]},{ x:'08/07/2023',y:[48.00,51.50,47.15,49.50]},{ x:'08/08/2023',y:[48.30,52.50,48.30,50.70]},{ x:'08/09/2023',y:[50.30,51.70,47.70,48.80]},{ x:'08/10/2023',y:[49.00,51.90,47.50,47.70]},{ x:'08/11/2023',y:[48.60,50.50,48.00,49.90]},{ x:'08/14/2023',y:[49.20,54.30,49.00,50.70]},{ x:'08/15/2023',y:[49.90,53.50,49.80,50.10]},{ x:'08/16/2023',y:[51.50,51.50,49.00,49.00]},{ x:'08/17/2023',y:[48.55,50.00,48.10,48.10]},{ x:'08/18/2023',y:[48.15,52.20,47.85,50.80]},{ x:'08/21/2023',y:[51.80,54.00,51.50,51.90]},{ x:'08/22/2023',y:[51.90,53.50,49.35,49.80]},{ x:'08/23/2023',y:[51.70,51.70,49.10,49.60]},{ x:'08/24/2023',y:[49.75,50.90,47.50,47.60]},{ x:'08/25/2023',y:[46.30,49.70,46.30,47.10]},{ x:'08/28/2023',y:[48.45,49.20,45.10,48.10]},{ x:'08/29/2023',y:[49.20,51.50,49.00,49.20]},{ x:'08/30/2023',y:[49.20,51.20,49.15,49.15]},{ x:'08/31/2023',y:[49.20,51.20,49.00,49.50]},{ x:'09/01/2023',y:[50.00,50.20,49.05,49.05]},{ x:'09/04/2023',y:[48.80,52.00,48.80,52.00]},{ x:'09/05/2023',y:[52.10,57.20,52.10,57.20]},{ x:'09/06/2023',y:[58.30,60.30,54.30,54.80]},{ x:'09/07/2023',y:[55.00,57.50,54.60,55.40]},{ x:'09/08/2023',y:[55.20,57.30,53.10,53.30]},{ x:'09/11/2023',y:[53.30,55.90,52.40,55.80]},{ x:'09/12/2023',y:[56.60,56.60,53.10,53.30]},{ x:'09/13/2023',y:[54.30,55.40,53.30,54.40]},{ x:'09/14/2023',y:[54.40,58.50,54.40,58.50]},{ x:'09/15/2023',y:[59.00,59.00,55.20,55.60]},{ x:'09/18/2023',y:[54.00,57.20,54.00,55.00]},{ x:'09/19/2023',y:[55.30,56.00,53.80,54.50]},{ x:'09/20/2023',y:[56.00,57.20,54.40,55.60]},{ x:'09/21/2023',y:[54.70,57.40,54.70,55.60]},{ x:'09/22/2023',y:[54.80,56.30,54.80,55.40]},{ x:'09/25/2023',y:[55.40,58.70,55.40,58.30]},{ x:'09/26/2023',y:[58.10,63.80,56.60,63.40]},{ x:'09/27/2023',y:[66.00,69.70,64.30,69.70]},{ x:'09/28/2023',y:[75.30,76.60,70.70,76.60]},{ x:'10/02/2023',y:[75.90,82.70,75.00,76.00]},{ x:'10/03/2023',y:[74.00,80.50,74.00,78.30]},{ x:'10/04/2023',y:[77.70,78.30,76.20,76.40]},{ x:'10/05/2023',y:[77.10,77.10,72.90,73.10]},{ x:'10/06/2023',y:[73.50,74.90,73.00,73.00]},{ x:'10/11/2023',y:[75.20,77.00,74.30,74.60]},{ x:'10/12/2023',y:[77.00,78.80,75.90,77.90]},{ x:'10/13/2023',y:[79.90,79.90,74.90,75.50]},{ x:'10/18/2023',y:[67.80,68.60,65.00,65.00]},{ x:'10/19/2023',y:[63.70,67.30,63.70,67.00]},{ x:'10/20/2023',y:[65.50,67.70,65.00,65.00]},{ x:'10/23/2023',y:[64.70,65.10,62.00,62.10]},{ x:'10/24/2023',y:[62.50,68.30,62.30,68.30]},{ x:'10/25/2023',y:[70.00,73.80,68.90,70.80]},{ x:'10/26/2023',y:[70.00,73.50,68.30,68.60]},{ x:'10/27/2023',y:[70.00,70.70,65.10,65.40]},{ x:'10/31/2023',y:[65.80,66.20,61.00,61.00]},{ x:'11/01/2023',y:[61.50,63.50,61.20,61.20]},{ x:'11/02/2023',y:[62.90,64.50,62.60,62.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5432 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());