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/25/2024',y:[41.50,41.50,41.15,41.15]},{ x:'04/26/2024',y:[41.25,41.50,41.20,41.20]},{ x:'04/29/2024',y:[41.20,41.60,41.20,41.35]},{ x:'04/30/2024',y:[41.40,41.80,41.40,41.80]},{ x:'05/02/2024',y:[41.80,42.20,41.80,42.00]},{ x:'05/03/2024',y:[42.55,43.95,42.55,43.45]},{ x:'05/06/2024',y:[47.00,47.30,45.10,45.95]},{ x:'05/07/2024',y:[46.45,48.30,46.00,46.50]},{ x:'05/08/2024',y:[46.40,47.20,45.70,46.10]},{ x:'05/09/2024',y:[45.50,46.45,45.15,46.00]},{ x:'05/10/2024',y:[46.10,47.00,45.25,46.40]},{ x:'05/13/2024',y:[46.10,46.45,45.50,45.50]},{ x:'05/14/2024',y:[45.60,45.80,45.25,45.25]},{ x:'05/15/2024',y:[45.20,45.90,45.20,45.40]},{ x:'05/16/2024',y:[45.75,46.30,45.50,45.50]},{ x:'05/17/2024',y:[45.45,45.45,45.10,45.20]},{ x:'05/20/2024',y:[45.05,45.75,44.85,45.15]},{ x:'05/21/2024',y:[45.15,47.05,45.05,47.00]},{ x:'05/22/2024',y:[48.30,49.50,47.80,49.35]},{ x:'05/23/2024',y:[49.35,53.70,48.00,50.60]},{ x:'05/24/2024',y:[51.10,55.60,51.00,55.60]},{ x:'06/11/2024',y:[61.00,61.50,59.00,59.00]},{ x:'06/12/2024',y:[59.30,61.00,58.20,61.00]},{ x:'06/13/2024',y:[61.50,62.50,60.20,61.10]},{ x:'06/14/2024',y:[59.90,62.80,58.90,60.10]},{ x:'06/17/2024',y:[60.30,63.80,59.30,62.30]},{ x:'06/18/2024',y:[62.70,63.50,61.30,61.80]},{ x:'06/19/2024',y:[61.60,62.90,59.10,59.10]},{ x:'06/20/2024',y:[58.40,58.90,56.30,57.20]},{ x:'06/21/2024',y:[57.30,58.00,56.60,57.50]},{ x:'06/24/2024',y:[57.50,57.50,56.50,56.50]},{ x:'06/25/2024',y:[56.20,57.20,55.90,56.80]},{ x:'06/26/2024',y:[57.30,57.50,56.10,56.40]},{ x:'06/27/2024',y:[56.00,56.50,55.90,56.10]},{ x:'06/28/2024',y:[56.60,59.60,56.60,58.20]},{ x:'07/01/2024',y:[58.30,58.40,57.10,57.10]},{ x:'07/02/2024',y:[56.80,62.80,56.80,62.80]},{ x:'07/03/2024',y:[65.00,65.70,63.10,64.00]},{ x:'07/04/2024',y:[64.00,65.30,63.30,64.00]},{ x:'07/05/2024',y:[65.00,70.40,64.90,70.40]},{ x:'07/12/2024',y:[70.20,73.00,70.00,70.10]},{ x:'07/15/2024',y:[70.30,70.30,67.10,68.50]},{ x:'07/16/2024',y:[69.00,70.50,68.50,68.70]},{ x:'07/17/2024',y:[69.20,71.40,68.70,69.00]},{ x:'07/18/2024',y:[67.80,68.90,67.10,68.60]},{ x:'07/19/2024',y:[68.00,68.50,66.00,66.00]},{ x:'07/22/2024',y:[66.00,68.80,64.60,67.50]},{ x:'07/23/2024',y:[69.50,70.50,67.60,69.30]},{ x:'07/26/2024',y:[67.20,68.90,66.30,68.50]},{ x:'07/29/2024',y:[69.50,69.90,65.50,65.50]},{ x:'07/30/2024',y:[64.40,66.80,64.20,66.80]},{ x:'07/31/2024',y:[66.60,68.40,65.80,67.20]},{ x:'08/01/2024',y:[68.30,71.30,68.30,70.40]},{ x:'08/02/2024',y:[68.20,69.70,67.50,68.30]},{ x:'08/05/2024',y:[65.90,66.70,61.50,61.50]},{ x:'08/06/2024',y:[57.80,58.20,51.10,51.80]},{ x:'08/07/2024',y:[52.10,55.90,51.90,54.90]},{ x:'08/08/2024',y:[52.80,53.80,51.70,52.90]},{ x:'08/09/2024',y:[54.60,55.20,53.60,53.80]},{ x:'08/12/2024',y:[54.20,55.00,53.90,54.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3537 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());