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/12/2024',y:[81.00,81.10,80.00,80.10]},{ x:'07/15/2024',y:[80.80,80.80,79.30,79.70]},{ x:'07/16/2024',y:[79.70,81.00,79.70,80.20]},{ x:'07/17/2024',y:[80.40,82.30,80.40,81.70]},{ x:'07/18/2024',y:[81.00,81.30,79.50,79.80]},{ x:'07/19/2024',y:[79.20,79.40,76.90,76.90]},{ x:'07/22/2024',y:[76.50,76.80,73.90,74.50]},{ x:'07/23/2024',y:[75.40,75.90,73.50,73.70]},{ x:'07/26/2024',y:[72.60,72.60,71.30,71.70]},{ x:'07/29/2024',y:[73.00,73.00,69.30,69.30]},{ x:'07/30/2024',y:[69.30,71.10,69.00,71.10]},{ x:'07/31/2024',y:[70.90,71.00,70.20,70.50]},{ x:'08/01/2024',y:[71.70,72.20,71.20,71.60]},{ x:'08/02/2024',y:[71.60,71.60,69.50,69.50]},{ x:'08/05/2024',y:[68.00,68.00,62.60,62.60]},{ x:'08/06/2024',y:[61.50,64.70,57.80,63.20]},{ x:'08/07/2024',y:[63.30,66.90,63.30,65.80]},{ x:'08/08/2024',y:[70.80,70.80,66.60,67.40]},{ x:'08/09/2024',y:[68.40,69.80,67.50,67.50]},{ x:'08/12/2024',y:[68.50,71.40,68.50,71.10]},{ x:'08/13/2024',y:[71.20,71.40,69.80,71.10]},{ x:'08/14/2024',y:[72.00,72.10,70.60,70.60]},{ x:'08/15/2024',y:[70.50,71.50,70.00,70.80]},{ x:'08/16/2024',y:[72.00,72.50,71.10,71.30]},{ x:'08/19/2024',y:[71.40,71.60,71.00,71.40]},{ x:'08/20/2024',y:[72.20,73.10,71.50,72.50]},{ x:'08/21/2024',y:[73.70,73.70,71.80,72.50]},{ x:'08/22/2024',y:[72.20,74.80,72.20,74.20]},{ x:'08/23/2024',y:[73.40,73.50,73.00,73.50]},{ x:'08/26/2024',y:[73.90,74.60,73.40,73.40]},{ x:'08/27/2024',y:[73.10,73.70,73.10,73.70]},{ x:'08/28/2024',y:[73.70,73.70,72.80,72.80]},{ x:'08/29/2024',y:[72.80,73.70,72.50,73.60]},{ x:'08/30/2024',y:[73.60,79.30,73.60,78.10]},{ x:'09/02/2024',y:[79.50,79.90,77.50,77.80]},{ x:'09/03/2024',y:[78.80,78.80,76.10,76.80]},{ x:'09/04/2024',y:[72.90,75.00,71.50,73.70]},{ x:'09/05/2024',y:[75.70,75.80,73.40,73.90]},{ x:'09/06/2024',y:[74.00,74.10,72.80,73.00]},{ x:'09/09/2024',y:[72.20,72.60,71.70,72.60]},{ x:'09/10/2024',y:[72.80,73.20,69.00,70.00]},{ x:'09/11/2024',y:[70.00,70.00,68.50,69.00]},{ x:'09/12/2024',y:[70.00,70.90,69.30,70.70]},{ x:'09/13/2024',y:[71.30,72.00,70.60,72.00]},{ x:'09/16/2024',y:[72.00,74.80,71.70,73.90]},{ x:'09/18/2024',y:[75.00,75.00,73.00,73.10]},{ x:'09/19/2024',y:[73.00,73.50,72.40,72.90]},{ x:'09/20/2024',y:[73.50,74.50,72.50,72.90]},{ x:'09/23/2024',y:[72.50,73.60,72.20,72.70]},{ x:'09/24/2024',y:[73.70,73.70,72.40,72.60]},{ x:'09/25/2024',y:[73.10,73.60,72.90,72.90]},{ x:'09/26/2024',y:[73.00,73.50,72.00,72.10]},{ x:'09/27/2024',y:[72.20,74.30,72.20,73.50]},{ x:'09/30/2024',y:[73.80,74.20,72.80,72.80]},{ x:'10/01/2024',y:[73.00,73.10,72.30,72.60]},{ x:'10/04/2024',y:[72.80,73.40,71.30,71.40]},{ x:'10/07/2024',y:[71.80,72.40,71.50,72.00]},{ x:'10/08/2024',y:[71.90,71.90,71.00,71.40]},{ x:'10/09/2024',y:[71.30,71.90,70.60,70.60]},{ x:'10/11/2024',y:[70.20,70.40,69.00,69.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4721 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());