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/26/2024',y:[20.15,20.70,19.40,20.70]},{ x:'04/29/2024',y:[20.30,21.60,20.30,21.00]},{ x:'04/30/2024',y:[20.40,20.90,20.40,20.40]},{ x:'05/02/2024',y:[20.00,21.50,20.00,21.45]},{ x:'05/03/2024',y:[21.85,21.85,20.85,21.30]},{ x:'05/06/2024',y:[21.30,21.50,20.70,21.30]},{ x:'05/07/2024',y:[20.60,21.60,20.60,21.55]},{ x:'05/08/2024',y:[21.60,21.60,21.05,21.55]},{ x:'05/09/2024',y:[21.60,21.60,21.05,21.05]},{ x:'05/10/2024',y:[20.70,21.70,20.70,21.45]},{ x:'05/13/2024',y:[21.65,22.35,21.65,21.75]},{ x:'05/14/2024',y:[21.65,22.00,20.50,21.45]},{ x:'05/15/2024',y:[21.10,21.65,20.80,21.65]},{ x:'05/16/2024',y:[19.70,22.00,19.70,22.00]},{ x:'05/17/2024',y:[21.95,21.95,21.35,21.80]},{ x:'05/20/2024',y:[21.90,22.15,21.60,21.90]},{ x:'05/21/2024',y:[22.00,22.00,21.50,21.90]},{ x:'05/22/2024',y:[22.00,22.70,22.00,22.35]},{ x:'05/23/2024',y:[22.45,22.70,22.25,22.25]},{ x:'05/24/2024',y:[22.10,22.30,22.10,22.20]},{ x:'06/11/2024',y:[32.90,32.95,30.30,31.10]},{ x:'06/12/2024',y:[31.10,31.15,28.25,29.60]},{ x:'06/13/2024',y:[29.25,32.55,29.25,32.55]},{ x:'06/14/2024',y:[34.00,35.80,32.80,35.80]},{ x:'06/17/2024',y:[38.50,39.35,36.75,39.35]},{ x:'06/18/2024',y:[41.20,41.65,38.65,38.65]},{ x:'06/19/2024',y:[38.80,42.50,38.70,42.50]},{ x:'06/20/2024',y:[45.00,46.75,43.00,46.75]},{ x:'06/21/2024',y:[47.65,51.40,46.75,51.40]},{ x:'06/24/2024',y:[51.40,56.40,48.20,56.40]},{ x:'06/25/2024',y:[55.40,60.50,55.00,57.80]},{ x:'06/26/2024',y:[58.20,59.00,57.00,57.10]},{ x:'06/27/2024',y:[53.50,56.00,53.50,55.00]},{ x:'06/28/2024',y:[55.00,57.00,55.00,57.00]},{ x:'07/01/2024',y:[57.30,60.80,57.30,60.00]},{ x:'07/02/2024',y:[59.80,65.10,59.80,64.00]},{ x:'07/03/2024',y:[65.00,70.40,65.00,70.30]},{ x:'07/04/2024',y:[70.40,76.30,65.00,68.00]},{ x:'07/05/2024',y:[68.30,68.30,63.70,65.00]},{ x:'07/12/2024',y:[82.80,85.00,80.00,83.30]},{ x:'07/15/2024',y:[84.80,86.10,75.00,75.00]},{ x:'07/16/2024',y:[74.20,74.20,67.50,67.50]},{ x:'07/17/2024',y:[65.50,74.00,65.50,71.70]},{ x:'07/18/2024',y:[71.00,75.00,65.60,73.20]},{ x:'07/19/2024',y:[73.20,73.20,70.50,70.80]},{ x:'07/22/2024',y:[71.60,74.00,71.60,72.70]},{ x:'07/23/2024',y:[74.00,75.00,71.20,71.30]},{ x:'07/26/2024',y:[68.20,77.20,68.20,74.00]},{ x:'07/29/2024',y:[76.60,76.70,66.60,68.00]},{ x:'07/30/2024',y:[66.00,66.00,61.50,61.80]},{ x:'07/31/2024',y:[61.80,67.20,60.80,65.50]},{ x:'08/01/2024',y:[65.80,67.40,64.30,65.00]},{ x:'08/02/2024',y:[63.00,64.50,61.30,62.60]},{ x:'08/05/2024',y:[59.00,61.60,56.50,58.00]},{ x:'08/06/2024',y:[60.00,60.90,54.10,58.30]},{ x:'08/07/2024',y:[57.70,61.40,57.70,58.50]},{ x:'08/08/2024',y:[59.00,59.00,55.00,58.80]},{ x:'08/09/2024',y:[60.90,61.10,59.00,60.50]},{ x:'08/12/2024',y:[59.20,62.00,58.40,59.60]},{ x:'08/13/2024',y:[59.00,65.00,58.10,62.90]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2438 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());