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:'10/23/2023',y:[47.20,51.50,46.95,50.00]},{ x:'10/24/2023',y:[49.20,50.00,48.05,49.25]},{ x:'10/25/2023',y:[49.00,54.10,48.90,54.10]},{ x:'10/26/2023',y:[54.10,54.90,51.10,51.80]},{ x:'10/27/2023',y:[52.70,53.60,48.70,50.50]},{ x:'10/31/2023',y:[51.70,53.00,47.50,48.30]},{ x:'11/01/2023',y:[48.95,49.25,47.60,48.00]},{ x:'11/02/2023',y:[49.15,50.30,48.10,49.00]},{ x:'11/03/2023',y:[49.50,52.50,49.05,49.25]},{ x:'11/06/2023',y:[50.00,50.10,48.30,49.55]},{ x:'11/07/2023',y:[49.55,50.50,49.05,49.20]},{ x:'11/08/2023',y:[49.20,49.30,47.50,47.50]},{ x:'11/09/2023',y:[48.00,48.05,46.00,46.00]},{ x:'11/10/2023',y:[46.40,46.60,45.30,45.55]},{ x:'11/13/2023',y:[45.95,46.95,45.85,46.60]},{ x:'11/14/2023',y:[46.70,48.30,46.70,48.05]},{ x:'11/15/2023',y:[48.50,48.75,47.45,47.90]},{ x:'11/16/2023',y:[47.25,48.70,47.15,47.15]},{ x:'11/17/2023',y:[47.50,51.80,47.50,51.80]},{ x:'11/20/2023',y:[53.70,56.90,51.50,56.90]},{ x:'11/21/2023',y:[59.50,60.20,56.20,58.10]},{ x:'11/22/2023',y:[57.80,63.90,57.30,63.90]},{ x:'11/23/2023',y:[64.00,70.10,60.30,60.60]},{ x:'11/24/2023',y:[61.40,61.70,58.30,59.20]},{ x:'11/27/2023',y:[59.80,60.00,57.00,57.10]},{ x:'11/28/2023',y:[57.70,62.00,57.40,60.40]},{ x:'11/29/2023',y:[59.80,61.00,59.10,61.00]},{ x:'11/30/2023',y:[61.00,62.30,60.30,60.70]},{ x:'12/01/2023',y:[60.90,64.30,60.50,60.90]},{ x:'12/04/2023',y:[61.30,61.60,58.50,58.50]},{ x:'12/05/2023',y:[58.10,59.80,57.70,57.70]},{ x:'12/06/2023',y:[58.40,63.40,58.00,63.40]},{ x:'12/07/2023',y:[63.40,64.00,59.20,59.70]},{ x:'12/08/2023',y:[60.00,62.30,59.90,60.80]},{ x:'12/11/2023',y:[60.80,61.60,59.10,60.50]},{ x:'12/12/2023',y:[60.50,61.50,58.80,59.50]},{ x:'12/18/2023',y:[56.30,57.60,54.80,55.90]},{ x:'12/19/2023',y:[56.00,56.70,54.50,55.90]},{ x:'01/10/2024',y:[60.10,62.90,59.60,60.90]},{ x:'01/11/2024',y:[61.00,61.30,59.20,59.50]},{ x:'01/12/2024',y:[59.30,60.50,57.00,57.10]},{ x:'01/15/2024',y:[57.70,62.30,57.70,61.10]},{ x:'01/16/2024',y:[61.30,63.90,60.10,62.90]},{ x:'01/17/2024',y:[62.10,62.40,59.50,60.20]},{ x:'01/18/2024',y:[60.30,61.10,58.30,58.30]},{ x:'01/19/2024',y:[59.30,60.10,58.30,59.00]},{ x:'01/22/2024',y:[59.30,64.90,58.70,64.90]},{ x:'01/23/2024',y:[65.60,71.30,64.40,71.30]},{ x:'01/24/2024',y:[74.40,74.40,69.10,71.60]},{ x:'01/25/2024',y:[71.70,72.50,69.50,69.50]},{ x:'01/26/2024',y:[68.90,68.90,65.20,65.70]},{ x:'01/29/2024',y:[66.30,67.80,65.50,67.00]},{ x:'01/30/2024',y:[67.50,67.90,65.70,66.30]},{ x:'01/31/2024',y:[66.90,72.50,66.80,69.90]},{ x:'02/01/2024',y:[69.80,72.30,67.00,67.90]},{ x:'02/02/2024',y:[68.50,69.40,65.90,65.90]},{ x:'02/05/2024',y:[66.60,67.40,63.60,64.10]},{ x:'02/15/2024',y:[65.00,65.80,63.10,64.00]},{ x:'02/16/2024',y:[64.20,66.80,64.10,66.00]},{ x:'02/19/2024',y:[66.60,66.90,64.70,65.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6237 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());