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:'06/16/2023',y:[62.50,62.50,61.30,61.30]},{ x:'06/19/2023',y:[61.20,62.10,60.70,61.40]},{ x:'06/20/2023',y:[61.30,61.70,61.00,61.30]},{ x:'06/21/2023',y:[61.50,61.50,60.50,60.70]},{ x:'06/26/2023',y:[60.60,62.20,59.80,61.80]},{ x:'06/27/2023',y:[62.00,64.30,62.00,63.20]},{ x:'06/28/2023',y:[64.20,66.80,63.90,65.30]},{ x:'06/29/2023',y:[65.40,70.60,65.30,70.00]},{ x:'06/30/2023',y:[70.00,72.30,69.30,70.70]},{ x:'07/03/2023',y:[70.80,71.40,68.00,69.30]},{ x:'07/04/2023',y:[69.50,70.30,68.70,69.10]},{ x:'07/05/2023',y:[69.40,71.80,69.00,69.60]},{ x:'07/06/2023',y:[70.10,71.30,69.40,69.90]},{ x:'07/07/2023',y:[70.00,70.30,68.20,68.20]},{ x:'07/10/2023',y:[68.50,69.00,67.20,68.60]},{ x:'07/11/2023',y:[70.50,70.80,67.10,67.70]},{ x:'07/12/2023',y:[65.90,66.90,63.90,64.80]},{ x:'07/13/2023',y:[65.20,65.20,63.00,63.10]},{ x:'07/14/2023',y:[63.10,65.10,62.50,64.20]},{ x:'07/17/2023',y:[64.50,65.80,63.80,64.90]},{ x:'07/18/2023',y:[65.40,65.60,62.80,62.80]},{ x:'07/19/2023',y:[64.20,64.60,62.00,62.20]},{ x:'07/20/2023',y:[62.80,63.50,62.10,63.30]},{ x:'07/21/2023',y:[63.70,63.90,61.70,62.00]},{ x:'07/24/2023',y:[62.00,62.70,60.50,62.00]},{ x:'07/25/2023',y:[61.50,63.00,61.40,62.20]},{ x:'07/26/2023',y:[63.10,64.00,62.10,62.20]},{ x:'07/27/2023',y:[62.30,64.50,61.80,62.60]},{ x:'07/28/2023',y:[63.00,63.00,61.00,61.30]},{ x:'07/31/2023',y:[62.10,63.00,61.30,61.80]},{ x:'08/01/2023',y:[62.90,62.90,61.70,61.80]},{ x:'08/02/2023',y:[61.90,62.30,59.00,59.20]},{ x:'08/04/2023',y:[59.60,59.60,57.80,58.90]},{ x:'08/07/2023',y:[59.80,59.80,58.00,58.80]},{ x:'08/08/2023',y:[59.30,59.30,56.30,57.00]},{ x:'08/09/2023',y:[57.60,57.60,56.20,56.90]},{ x:'08/10/2023',y:[57.00,57.00,55.10,55.50]},{ x:'08/11/2023',y:[55.20,56.00,54.40,55.00]},{ x:'08/14/2023',y:[56.00,56.00,52.70,54.10]},{ x:'08/15/2023',y:[54.90,54.90,53.80,54.00]},{ x:'08/16/2023',y:[53.80,54.00,53.00,53.60]},{ x:'08/17/2023',y:[53.20,55.30,52.90,55.00]},{ x:'08/18/2023',y:[54.50,54.60,52.90,53.00]},{ x:'08/21/2023',y:[53.10,53.60,52.40,53.10]},{ x:'08/22/2023',y:[53.60,54.10,52.00,52.70]},{ x:'08/23/2023',y:[52.30,53.30,52.30,53.00]},{ x:'08/24/2023',y:[53.10,54.30,52.40,52.80]},{ x:'08/25/2023',y:[52.50,54.00,52.50,53.60]},{ x:'08/28/2023',y:[53.50,53.70,52.50,53.10]},{ x:'08/29/2023',y:[53.00,54.00,52.90,53.70]},{ x:'08/30/2023',y:[53.80,54.70,53.50,54.30]},{ x:'08/31/2023',y:[54.30,54.70,53.80,54.00]},{ x:'09/01/2023',y:[54.00,55.70,54.00,55.70]},{ x:'09/04/2023',y:[55.70,56.00,54.80,55.60]},{ x:'09/05/2023',y:[55.50,57.00,55.40,56.20]},{ x:'09/06/2023',y:[56.10,56.70,55.90,56.10]},{ x:'09/07/2023',y:[55.80,56.30,55.60,56.00]},{ x:'09/08/2023',y:[56.00,57.50,56.00,57.20]},{ x:'09/11/2023',y:[57.50,58.20,56.80,57.00]},{ x:'09/12/2023',y:[57.00,58.80,55.80,58.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4164 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());