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/12/2023',y:[51.20,51.20,51.10,51.20]},{ x:'06/13/2023',y:[51.40,52.70,51.40,52.30]},{ x:'06/14/2023',y:[52.30,52.40,52.10,52.30]},{ x:'06/15/2023',y:[52.30,52.30,51.80,52.20]},{ x:'06/16/2023',y:[52.00,52.20,51.50,51.80]},{ x:'06/19/2023',y:[51.80,52.10,51.80,51.90]},{ x:'06/20/2023',y:[52.00,52.00,51.80,52.00]},{ x:'06/21/2023',y:[52.00,52.50,52.00,52.50]},{ x:'06/26/2023',y:[52.50,52.90,52.50,52.90]},{ x:'06/27/2023',y:[52.50,52.60,52.50,52.60]},{ x:'06/28/2023',y:[52.60,52.80,52.50,52.80]},{ x:'06/29/2023',y:[52.80,53.00,52.70,52.70]},{ x:'06/30/2023',y:[52.70,53.10,52.40,52.60]},{ x:'07/03/2023',y:[52.50,52.80,52.30,52.50]},{ x:'07/04/2023',y:[52.50,52.90,52.40,52.50]},{ x:'07/05/2023',y:[52.80,53.80,52.80,53.10]},{ x:'07/06/2023',y:[52.60,52.80,52.20,52.20]},{ x:'07/07/2023',y:[52.70,54.40,52.50,54.20]},{ x:'07/10/2023',y:[54.60,57.00,54.60,56.30]},{ x:'07/11/2023',y:[57.40,57.40,55.00,55.50]},{ x:'07/12/2023',y:[55.50,56.00,55.10,55.20]},{ x:'07/13/2023',y:[55.30,55.60,53.30,53.70]},{ x:'07/14/2023',y:[54.10,54.70,54.10,54.70]},{ x:'07/17/2023',y:[55.00,56.30,55.00,56.20]},{ x:'07/18/2023',y:[56.20,56.20,55.40,55.60]},{ x:'07/19/2023',y:[54.40,54.40,53.90,54.10]},{ x:'07/20/2023',y:[54.50,57.00,54.50,56.50]},{ x:'07/21/2023',y:[56.50,61.00,56.40,59.90]},{ x:'07/24/2023',y:[61.60,65.80,61.60,63.90]},{ x:'07/25/2023',y:[67.70,69.50,65.00,65.70]},{ x:'07/26/2023',y:[66.80,66.80,62.70,62.80]},{ x:'07/27/2023',y:[63.10,63.60,62.20,62.50]},{ x:'07/28/2023',y:[62.00,65.00,62.00,63.70]},{ x:'07/31/2023',y:[63.80,64.50,62.60,63.00]},{ x:'08/01/2023',y:[63.50,65.20,63.00,64.00]},{ x:'08/02/2023',y:[64.50,64.50,62.60,63.00]},{ x:'08/04/2023',y:[63.00,64.00,62.50,63.70]},{ x:'08/07/2023',y:[66.60,70.00,64.70,69.90]},{ x:'08/08/2023',y:[70.30,70.50,66.80,69.10]},{ x:'08/09/2023',y:[69.00,70.00,67.70,68.80]},{ x:'08/10/2023',y:[68.90,71.40,64.00,66.20]},{ x:'08/11/2023',y:[66.20,67.00,64.00,64.80]},{ x:'08/14/2023',y:[64.80,64.80,63.10,63.30]},{ x:'08/15/2023',y:[64.20,65.40,63.80,64.20]},{ x:'08/16/2023',y:[63.70,65.60,63.30,65.60]},{ x:'08/17/2023',y:[66.20,67.00,64.60,67.00]},{ x:'08/18/2023',y:[67.30,67.30,64.00,64.40]},{ x:'08/21/2023',y:[66.90,69.20,65.80,67.10]},{ x:'08/22/2023',y:[69.00,69.00,66.50,66.50]},{ x:'08/23/2023',y:[66.30,66.30,65.20,65.70]},{ x:'08/24/2023',y:[66.20,66.90,65.00,65.00]},{ x:'08/25/2023',y:[64.80,67.00,64.50,66.20]},{ x:'08/28/2023',y:[66.70,66.90,63.00,63.10]},{ x:'08/29/2023',y:[63.70,63.70,62.40,62.70]},{ x:'08/30/2023',y:[62.70,64.60,62.70,63.20]},{ x:'08/31/2023',y:[62.80,65.40,62.80,64.90]},{ x:'09/01/2023',y:[64.60,69.60,64.60,69.50]},{ x:'09/04/2023',y:[70.00,73.50,67.70,70.70]},{ x:'09/05/2023',y:[72.80,75.30,71.10,72.50]},{ x:'09/06/2023',y:[71.60,72.90,71.60,71.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6449 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());