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/30/2024',y:[43.70,45.20,43.25,44.00]},{ x:'05/02/2024',y:[44.00,44.00,43.25,43.70]},{ x:'05/03/2024',y:[44.30,44.35,43.80,44.00]},{ x:'05/06/2024',y:[45.00,45.00,44.00,44.00]},{ x:'05/07/2024',y:[44.45,44.45,43.25,43.40]},{ x:'05/08/2024',y:[43.50,43.90,43.40,43.90]},{ x:'05/09/2024',y:[44.25,44.25,43.30,43.30]},{ x:'05/10/2024',y:[43.50,43.50,42.55,42.75]},{ x:'05/13/2024',y:[42.70,42.70,42.40,42.45]},{ x:'05/14/2024',y:[42.90,42.90,42.65,42.75]},{ x:'05/15/2024',y:[42.90,43.00,42.55,42.55]},{ x:'05/16/2024',y:[42.65,42.75,42.00,42.05]},{ x:'05/17/2024',y:[42.00,42.50,41.85,42.30]},{ x:'05/20/2024',y:[42.20,42.55,41.95,42.20]},{ x:'05/21/2024',y:[42.20,42.50,42.20,42.25]},{ x:'05/22/2024',y:[42.55,43.10,42.30,43.00]},{ x:'05/23/2024',y:[43.00,43.00,42.30,42.30]},{ x:'05/24/2024',y:[42.10,42.45,42.10,42.35]},{ x:'06/11/2024',y:[43.00,43.50,42.40,42.50]},{ x:'06/12/2024',y:[42.75,43.20,42.50,42.75]},{ x:'06/13/2024',y:[43.20,43.50,42.70,43.20]},{ x:'06/14/2024',y:[43.45,44.00,43.40,43.65]},{ x:'06/17/2024',y:[43.30,43.75,43.15,43.30]},{ x:'06/18/2024',y:[43.35,43.35,42.85,43.00]},{ x:'06/19/2024',y:[43.40,43.50,42.85,42.90]},{ x:'06/20/2024',y:[43.25,43.25,42.85,42.95]},{ x:'06/21/2024',y:[42.80,43.25,42.75,43.05]},{ x:'06/24/2024',y:[43.40,43.40,43.00,43.05]},{ x:'06/25/2024',y:[43.00,43.00,42.70,42.90]},{ x:'06/26/2024',y:[43.00,43.10,42.80,42.85]},{ x:'06/27/2024',y:[42.85,43.35,42.85,43.20]},{ x:'06/28/2024',y:[43.20,44.20,43.20,43.75]},{ x:'07/01/2024',y:[43.50,43.70,43.25,43.35]},{ x:'07/02/2024',y:[43.35,43.35,43.00,43.10]},{ x:'07/03/2024',y:[43.20,43.65,43.20,43.60]},{ x:'07/04/2024',y:[43.80,43.95,43.65,43.65]},{ x:'07/05/2024',y:[43.65,44.10,43.65,44.10]},{ x:'07/12/2024',y:[42.20,42.50,42.10,42.35]},{ x:'07/15/2024',y:[42.30,42.30,41.80,41.95]},{ x:'07/16/2024',y:[42.00,42.35,42.00,42.25]},{ x:'07/17/2024',y:[42.20,43.20,42.20,42.45]},{ x:'07/18/2024',y:[42.15,42.15,41.95,42.00]},{ x:'07/19/2024',y:[42.00,42.00,40.90,40.90]},{ x:'07/22/2024',y:[40.65,40.90,38.95,39.00]},{ x:'07/23/2024',y:[39.40,39.80,39.15,39.15]},{ x:'07/26/2024',y:[38.50,39.15,37.70,38.60]},{ x:'07/29/2024',y:[38.90,38.95,37.65,37.65]},{ x:'07/30/2024',y:[37.65,38.20,36.95,38.10]},{ x:'07/31/2024',y:[38.05,39.25,38.05,39.15]},{ x:'08/01/2024',y:[39.00,39.30,38.95,39.05]},{ x:'08/02/2024',y:[39.00,39.00,38.05,38.15]},{ x:'08/05/2024',y:[37.55,37.55,34.35,34.35]},{ x:'08/06/2024',y:[33.50,34.65,32.05,33.70]},{ x:'08/07/2024',y:[33.70,36.00,33.70,36.00]},{ x:'08/08/2024',y:[36.00,36.00,35.05,35.10]},{ x:'08/09/2024',y:[35.60,35.85,35.05,35.05]},{ x:'08/12/2024',y:[35.20,35.70,35.20,35.35]},{ x:'08/13/2024',y:[35.35,35.70,35.05,35.65]},{ x:'08/14/2024',y:[35.70,36.15,35.70,35.85]},{ x:'08/15/2024',y:[35.90,36.40,35.85,36.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8183 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());