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/17/2024',y:[42.80,43.90,42.80,43.35]},{ x:'04/18/2024',y:[43.30,44.45,42.90,44.10]},{ x:'04/19/2024',y:[44.50,44.50,42.70,43.30]},{ x:'04/22/2024',y:[43.50,43.60,41.95,41.95]},{ x:'04/23/2024',y:[42.30,42.95,41.45,41.45]},{ x:'04/24/2024',y:[42.15,42.40,41.90,42.00]},{ x:'04/25/2024',y:[42.20,42.50,41.80,42.10]},{ x:'04/26/2024',y:[42.10,42.55,41.85,42.05]},{ x:'04/29/2024',y:[42.30,42.85,42.25,42.80]},{ x:'04/30/2024',y:[43.00,43.50,42.00,43.50]},{ x:'05/02/2024',y:[43.10,43.55,42.85,42.85]},{ x:'05/03/2024',y:[42.95,43.60,42.60,43.35]},{ x:'05/06/2024',y:[43.40,44.55,42.90,44.25]},{ x:'05/07/2024',y:[44.10,44.55,43.95,44.20]},{ x:'05/08/2024',y:[44.20,45.25,44.20,45.10]},{ x:'05/09/2024',y:[45.35,45.70,44.40,44.55]},{ x:'05/10/2024',y:[45.20,45.80,44.95,45.20]},{ x:'05/13/2024',y:[45.70,45.70,44.45,45.05]},{ x:'05/14/2024',y:[45.30,45.45,45.05,45.25]},{ x:'05/15/2024',y:[45.50,46.20,45.20,45.50]},{ x:'05/16/2024',y:[46.00,46.00,45.30,45.35]},{ x:'05/17/2024',y:[45.45,45.45,44.85,45.25]},{ x:'05/20/2024',y:[45.30,45.30,44.45,44.80]},{ x:'05/21/2024',y:[44.90,45.25,44.70,45.10]},{ x:'05/22/2024',y:[44.85,45.50,44.85,45.20]},{ x:'05/23/2024',y:[45.30,45.30,44.60,44.60]},{ x:'05/24/2024',y:[44.20,45.15,44.10,44.75]},{ x:'06/11/2024',y:[49.80,50.20,48.00,50.20]},{ x:'06/12/2024',y:[50.60,52.60,50.50,51.00]},{ x:'06/13/2024',y:[51.00,54.20,51.00,53.50]},{ x:'06/14/2024',y:[53.50,57.30,53.40,56.30]},{ x:'06/17/2024',y:[57.60,59.60,55.50,58.60]},{ x:'06/18/2024',y:[59.50,60.20,57.00,57.20]},{ x:'06/19/2024',y:[57.10,57.60,54.80,55.90]},{ x:'06/20/2024',y:[57.00,61.40,56.50,58.00]},{ x:'06/21/2024',y:[58.00,59.60,57.60,59.50]},{ x:'06/24/2024',y:[59.50,60.90,58.70,58.90]},{ x:'06/25/2024',y:[58.90,59.90,56.90,59.00]},{ x:'06/26/2024',y:[59.00,61.50,59.00,60.50]},{ x:'06/27/2024',y:[60.30,60.30,58.50,60.20]},{ x:'06/28/2024',y:[61.00,63.40,60.10,60.30]},{ x:'07/01/2024',y:[60.30,61.90,59.30,61.10]},{ x:'07/02/2024',y:[61.10,63.30,61.00,62.90]},{ x:'07/03/2024',y:[63.60,63.70,61.60,62.10]},{ x:'07/04/2024',y:[62.40,62.70,61.50,61.90]},{ x:'07/05/2024',y:[62.40,62.60,61.30,61.30]},{ x:'07/12/2024',y:[71.50,78.30,71.50,78.30]},{ x:'07/15/2024',y:[82.00,83.40,72.40,74.00]},{ x:'07/16/2024',y:[73.40,74.80,70.80,72.10]},{ x:'07/17/2024',y:[74.30,76.50,72.50,73.80]},{ x:'07/18/2024',y:[72.60,74.00,71.70,73.00]},{ x:'07/19/2024',y:[74.90,74.90,71.30,71.50]},{ x:'07/22/2024',y:[71.70,72.10,66.90,68.50]},{ x:'07/23/2024',y:[69.70,70.00,68.00,68.70]},{ x:'07/26/2024',y:[63.20,68.00,63.00,67.00]},{ x:'07/29/2024',y:[69.40,69.40,65.30,66.00]},{ x:'07/30/2024',y:[64.50,66.30,63.90,65.70]},{ x:'07/31/2024',y:[65.40,69.50,64.80,68.30]},{ x:'08/01/2024',y:[69.20,72.70,69.10,70.50]},{ x:'08/02/2024',y:[67.60,68.30,66.00,66.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8103 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());