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:'04/29/2024',y:[62.00,62.90,62.00,62.70]},{ x:'04/30/2024',y:[62.90,63.30,62.60,63.30]},{ x:'05/02/2024',y:[63.30,64.20,62.90,63.80]},{ x:'05/03/2024',y:[64.50,69.90,64.50,67.70]},{ x:'05/06/2024',y:[69.00,69.60,67.10,67.80]},{ x:'05/07/2024',y:[68.00,72.50,68.00,71.80]},{ x:'05/08/2024',y:[71.50,71.50,69.00,70.80]},{ x:'05/09/2024',y:[70.80,70.90,67.90,67.90]},{ x:'05/10/2024',y:[68.70,68.70,66.70,67.40]},{ x:'05/13/2024',y:[67.90,68.50,67.10,67.90]},{ x:'05/14/2024',y:[68.30,69.20,68.00,68.40]},{ x:'05/15/2024',y:[68.80,68.90,66.60,66.80]},{ x:'05/16/2024',y:[67.60,67.90,66.90,67.30]},{ x:'05/17/2024',y:[67.30,67.30,66.00,67.10]},{ x:'05/20/2024',y:[67.10,67.50,66.60,66.90]},{ x:'05/21/2024',y:[66.60,67.10,66.20,66.80]},{ x:'05/22/2024',y:[66.80,68.50,66.60,67.90]},{ x:'05/23/2024',y:[68.50,68.50,67.20,67.20]},{ x:'05/24/2024',y:[66.50,67.50,66.00,67.20]},{ x:'06/11/2024',y:[67.70,69.40,67.30,69.10]},{ x:'06/12/2024',y:[69.40,69.40,67.90,68.90]},{ x:'06/13/2024',y:[68.90,69.00,68.00,69.00]},{ x:'06/14/2024',y:[69.00,69.00,67.70,68.40]},{ x:'06/17/2024',y:[68.40,68.40,67.70,68.40]},{ x:'06/18/2024',y:[68.40,69.50,68.40,69.20]},{ x:'06/19/2024',y:[69.60,69.90,69.10,69.50]},{ x:'06/20/2024',y:[69.80,70.20,69.30,69.90]},{ x:'06/21/2024',y:[70.10,70.70,69.30,70.70]},{ x:'06/24/2024',y:[71.80,72.00,70.10,70.60]},{ x:'06/25/2024',y:[71.20,71.20,70.20,71.00]},{ x:'06/26/2024',y:[71.30,72.70,71.30,71.40]},{ x:'06/27/2024',y:[71.40,71.40,69.60,69.60]},{ x:'06/28/2024',y:[69.60,69.80,68.90,68.90]},{ x:'07/01/2024',y:[70.60,70.60,69.10,69.90]},{ x:'07/02/2024',y:[70.40,70.40,69.00,69.10]},{ x:'07/03/2024',y:[69.90,70.10,69.10,69.30]},{ x:'07/04/2024',y:[64.10,64.10,61.40,61.50]},{ x:'07/05/2024',y:[61.80,61.90,59.40,60.10]},{ x:'07/12/2024',y:[60.30,60.30,59.50,60.00]},{ x:'07/15/2024',y:[60.00,60.00,59.20,59.30]},{ x:'07/16/2024',y:[59.30,59.80,59.30,59.40]},{ x:'07/17/2024',y:[59.40,60.00,59.10,59.10]},{ x:'07/18/2024',y:[59.10,59.10,58.20,58.90]},{ x:'07/19/2024',y:[59.00,59.00,57.20,57.80]},{ x:'07/22/2024',y:[57.80,57.80,55.70,56.20]},{ x:'07/23/2024',y:[56.50,58.00,56.10,57.60]},{ x:'07/26/2024',y:[56.60,56.90,56.00,56.70]},{ x:'07/29/2024',y:[57.00,57.00,55.60,55.60]},{ x:'07/30/2024',y:[55.40,56.00,54.80,55.40]},{ x:'07/31/2024',y:[55.30,56.00,55.10,55.40]},{ x:'08/01/2024',y:[55.80,57.30,55.80,56.90]},{ x:'08/02/2024',y:[55.40,56.20,55.00,55.00]},{ x:'08/05/2024',y:[54.20,54.20,49.50,49.50]},{ x:'08/06/2024',y:[49.50,50.70,46.70,49.30]},{ x:'08/07/2024',y:[50.00,53.10,50.00,52.90]},{ x:'08/08/2024',y:[51.90,52.10,50.60,50.60]},{ x:'08/09/2024',y:[51.20,52.00,51.00,51.00]},{ x:'08/12/2024',y:[51.10,52.30,51.10,52.10]},{ x:'08/13/2024',y:[51.90,52.20,51.40,51.80]},{ x:'08/14/2024',y:[52.10,52.80,52.10,52.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8163 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());