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:'05/24/2023',y:[30.90,31.55,30.65,31.25]},{ x:'05/25/2023',y:[31.50,31.95,30.65,30.85]},{ x:'05/26/2023',y:[30.85,31.15,30.70,30.80]},{ x:'05/29/2023',y:[31.10,31.75,30.80,31.00]},{ x:'05/30/2023',y:[31.80,34.10,31.75,32.15]},{ x:'05/31/2023',y:[31.95,31.95,30.85,31.00]},{ x:'06/01/2023',y:[30.80,30.95,30.05,30.30]},{ x:'06/02/2023',y:[30.30,31.20,30.30,30.90]},{ x:'06/05/2023',y:[31.05,33.90,31.05,32.60]},{ x:'06/06/2023',y:[32.60,33.00,31.75,32.15]},{ x:'06/07/2023',y:[32.50,33.45,32.35,32.80]},{ x:'06/08/2023',y:[33.00,33.05,31.45,31.45]},{ x:'06/09/2023',y:[31.55,32.00,30.95,31.00]},{ x:'06/12/2023',y:[31.15,31.40,29.40,29.90]},{ x:'06/13/2023',y:[31.30,31.30,29.30,29.40]},{ x:'06/14/2023',y:[29.80,30.30,29.60,30.10]},{ x:'06/15/2023',y:[30.15,30.40,29.70,29.70]},{ x:'06/16/2023',y:[29.85,30.25,29.50,29.55]},{ x:'06/19/2023',y:[29.65,30.80,29.30,30.60]},{ x:'06/20/2023',y:[30.55,31.25,30.10,30.85]},{ x:'06/21/2023',y:[31.80,33.90,31.45,33.30]},{ x:'06/26/2023',y:[33.40,36.30,33.40,34.00]},{ x:'06/27/2023',y:[34.00,35.50,32.70,32.70]},{ x:'06/28/2023',y:[33.55,34.80,33.10,33.85]},{ x:'06/29/2023',y:[34.50,35.00,33.60,34.85]},{ x:'06/30/2023',y:[34.85,37.00,34.75,36.65]},{ x:'07/03/2023',y:[37.00,37.30,35.80,36.00]},{ x:'07/04/2023',y:[36.00,36.00,34.55,35.15]},{ x:'07/05/2023',y:[35.60,35.95,34.50,34.50]},{ x:'07/06/2023',y:[34.50,35.55,34.30,34.70]},{ x:'07/07/2023',y:[34.70,35.10,33.70,34.85]},{ x:'07/10/2023',y:[34.60,35.35,34.35,35.00]},{ x:'07/11/2023',y:[35.45,35.45,34.15,34.15]},{ x:'07/12/2023',y:[34.15,35.60,34.15,34.50]},{ x:'07/13/2023',y:[36.30,37.95,36.20,37.95]},{ x:'07/14/2023',y:[41.70,41.70,41.70,41.70]},{ x:'07/17/2023',y:[45.85,45.85,42.20,43.50]},{ x:'07/18/2023',y:[45.45,47.85,39.15,39.15]},{ x:'07/19/2023',y:[39.20,39.35,36.20,37.60]},{ x:'07/20/2023',y:[37.25,38.45,37.25,37.40]},{ x:'07/21/2023',y:[37.20,37.50,36.55,37.50]},{ x:'07/24/2023',y:[37.55,38.15,37.10,37.75]},{ x:'07/25/2023',y:[37.75,41.05,37.70,40.50]},{ x:'07/26/2023',y:[40.50,41.20,39.60,39.75]},{ x:'07/27/2023',y:[40.00,40.80,39.75,39.80]},{ x:'07/28/2023',y:[39.75,41.95,38.60,41.10]},{ x:'07/31/2023',y:[41.90,42.50,40.70,41.35]},{ x:'08/01/2023',y:[41.45,42.30,41.15,41.40]},{ x:'08/02/2023',y:[41.35,41.95,39.70,39.90]},{ x:'08/04/2023',y:[39.85,41.10,39.60,40.50]},{ x:'08/07/2023',y:[40.45,41.00,39.90,40.75]},{ x:'08/08/2023',y:[40.85,41.10,40.00,40.70]},{ x:'08/09/2023',y:[40.70,41.50,40.10,40.10]},{ x:'08/10/2023',y:[39.75,39.90,36.80,38.40]},{ x:'08/11/2023',y:[38.40,39.45,38.10,38.20]},{ x:'08/14/2023',y:[37.80,38.00,36.90,37.30]},{ x:'08/15/2023',y:[37.40,38.95,37.40,37.70]},{ x:'08/16/2023',y:[37.60,38.00,36.90,37.80]},{ x:'08/17/2023',y:[37.60,39.30,37.10,38.85]},{ x:'08/18/2023',y:[38.20,39.35,37.70,37.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3518 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());