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/07/2023',y:[26.25,26.30,25.50,25.70]},{ x:'04/10/2023',y:[25.80,26.30,25.65,26.05]},{ x:'04/11/2023',y:[27.00,27.90,26.75,26.75]},{ x:'04/12/2023',y:[27.10,27.85,26.80,27.45]},{ x:'04/13/2023',y:[27.60,27.80,27.00,27.40]},{ x:'04/14/2023',y:[27.60,28.10,27.55,27.60]},{ x:'04/17/2023',y:[27.65,28.35,27.55,28.30]},{ x:'04/18/2023',y:[28.80,29.40,28.35,28.65]},{ x:'04/19/2023',y:[28.70,29.90,28.70,29.80]},{ x:'04/20/2023',y:[29.85,30.50,29.00,29.45]},{ x:'04/21/2023',y:[29.00,29.25,27.45,27.80]},{ x:'04/24/2023',y:[27.80,29.15,27.70,28.45]},{ x:'04/25/2023',y:[28.90,29.40,28.25,28.30]},{ x:'04/26/2023',y:[28.30,28.60,27.80,28.40]},{ x:'04/27/2023',y:[28.50,29.25,28.40,29.00]},{ x:'04/28/2023',y:[29.15,30.10,29.05,29.80]},{ x:'05/02/2023',y:[30.05,30.85,29.95,30.20]},{ x:'05/03/2023',y:[30.20,30.20,28.95,29.15]},{ x:'05/04/2023',y:[29.30,29.30,28.45,29.15]},{ x:'05/05/2023',y:[29.25,30.45,29.25,30.15]},{ x:'05/08/2023',y:[30.15,31.20,29.85,31.05]},{ x:'05/09/2023',y:[30.75,30.90,29.45,29.65]},{ x:'05/10/2023',y:[29.60,30.30,29.20,30.05]},{ x:'05/11/2023',y:[29.80,29.90,28.35,28.50]},{ x:'05/12/2023',y:[28.65,29.30,28.45,29.15]},{ x:'05/15/2023',y:[28.90,29.05,28.40,28.50]},{ x:'05/16/2023',y:[28.65,29.10,28.65,28.85]},{ x:'05/17/2023',y:[29.00,30.10,28.70,29.80]},{ x:'05/18/2023',y:[31.10,31.20,30.20,30.55]},{ x:'05/19/2023',y:[31.40,33.30,31.35,32.55]},{ x:'05/22/2023',y:[32.80,33.45,32.00,32.20]},{ x:'05/23/2023',y:[32.40,32.70,31.55,31.70]},{ x:'05/24/2023',y:[32.05,33.85,32.00,33.35]},{ x:'05/25/2023',y:[33.30,34.30,32.65,33.40]},{ x:'05/26/2023',y:[33.35,33.40,32.70,32.90]},{ x:'05/29/2023',y:[33.10,34.20,33.10,33.85]},{ x:'05/30/2023',y:[34.40,35.30,33.40,33.50]},{ x:'05/31/2023',y:[33.95,34.70,33.80,34.70]},{ x:'06/01/2023',y:[34.85,35.85,34.30,35.50]},{ x:'06/02/2023',y:[35.60,36.10,34.90,35.55]},{ x:'06/05/2023',y:[35.95,36.55,35.45,36.20]},{ x:'06/06/2023',y:[36.70,38.30,36.20,37.40]},{ x:'06/07/2023',y:[37.80,39.30,37.40,39.30]},{ x:'06/08/2023',y:[38.65,39.10,37.00,37.00]},{ x:'06/09/2023',y:[37.25,37.65,36.05,36.60]},{ x:'06/12/2023',y:[35.85,35.85,34.65,35.50]},{ x:'06/13/2023',y:[36.00,36.35,35.70,36.05]},{ x:'06/14/2023',y:[36.30,38.15,36.30,38.00]},{ x:'06/15/2023',y:[38.10,38.80,37.40,38.30]},{ x:'06/16/2023',y:[38.45,38.90,36.20,36.20]},{ x:'06/19/2023',y:[36.50,38.30,35.65,37.35]},{ x:'06/20/2023',y:[37.50,38.20,36.75,36.80]},{ x:'06/21/2023',y:[37.05,38.35,36.90,37.60]},{ x:'06/26/2023',y:[38.95,41.35,38.90,41.35]},{ x:'06/27/2023',y:[42.75,44.80,39.25,39.75]},{ x:'06/28/2023',y:[40.45,43.25,39.85,40.10]},{ x:'06/29/2023',y:[40.00,40.60,39.30,40.50]},{ x:'06/30/2023',y:[40.60,42.25,39.95,41.90]},{ x:'07/03/2023',y:[42.90,43.00,41.75,42.10]},{ x:'07/04/2023',y:[43.00,43.05,41.60,42.45]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3038 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());