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:'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]},{ x:'07/05/2023',y:[42.75,43.00,41.30,41.30]},{ x:'07/06/2023',y:[39.20,40.50,39.10,39.75]},{ x:'07/07/2023',y:[39.65,40.20,38.90,39.40]},{ x:'07/10/2023',y:[38.00,38.60,37.35,37.90]},{ x:'07/11/2023',y:[37.50,38.25,36.60,36.70]},{ x:'07/12/2023',y:[39.30,39.30,36.25,36.35]},{ x:'07/13/2023',y:[36.50,36.90,35.15,35.35]},{ x:'07/14/2023',y:[35.60,36.75,35.45,36.65]},{ x:'07/17/2023',y:[36.70,39.85,36.50,39.25]},{ x:'07/18/2023',y:[39.85,39.85,37.40,37.45]},{ x:'07/19/2023',y:[38.00,38.00,35.90,36.00]},{ x:'07/20/2023',y:[35.55,37.20,35.40,36.95]},{ x:'07/21/2023',y:[36.40,36.85,36.05,36.65]},{ x:'07/24/2023',y:[36.70,36.85,35.40,35.55]},{ x:'07/25/2023',y:[35.70,38.45,35.70,37.75]},{ x:'07/26/2023',y:[38.00,38.80,37.20,38.50]},{ x:'07/27/2023',y:[38.20,39.40,38.00,38.75]},{ x:'07/28/2023',y:[38.80,39.80,38.10,39.10]},{ x:'07/31/2023',y:[39.50,39.80,37.60,37.60]},{ x:'08/01/2023',y:[37.80,38.35,37.05,37.10]},{ x:'08/02/2023',y:[36.95,37.95,36.20,36.25]},{ x:'08/04/2023',y:[37.00,37.85,36.20,37.25]},{ x:'08/07/2023',y:[37.25,37.85,36.65,37.65]},{ x:'08/08/2023',y:[37.95,39.85,37.75,38.85]},{ x:'08/09/2023',y:[38.85,38.85,36.90,36.95]},{ x:'08/10/2023',y:[37.00,37.05,33.55,34.05]},{ x:'08/11/2023',y:[34.15,35.35,34.15,34.65]},{ x:'08/14/2023',y:[34.20,34.60,33.75,34.45]},{ x:'08/15/2023',y:[34.65,35.20,34.60,35.05]},{ x:'08/16/2023',y:[34.55,34.95,33.70,34.80]},{ x:'08/17/2023',y:[34.10,35.05,34.00,35.00]},{ x:'08/18/2023',y:[35.00,35.20,33.60,33.70]},{ x:'08/21/2023',y:[34.50,34.55,34.00,34.05]},{ x:'08/22/2023',y:[34.50,34.50,33.10,33.20]},{ x:'08/23/2023',y:[33.10,33.70,33.05,33.35]},{ x:'08/24/2023',y:[34.15,34.30,33.50,34.15]},{ x:'08/25/2023',y:[33.80,33.95,33.30,33.50]},{ x:'08/28/2023',y:[33.70,33.75,32.00,32.40]},{ x:'08/29/2023',y:[32.50,33.05,32.50,32.85]},{ x:'08/30/2023',y:[33.25,33.55,33.00,33.25]},{ x:'08/31/2023',y:[33.40,33.80,33.20,33.80]},{ x:'09/01/2023',y:[33.75,34.25,33.60,33.80]},{ x:'09/04/2023',y:[33.85,33.85,33.10,33.60]},{ x:'09/05/2023',y:[33.65,33.95,33.60,33.70]},{ x:'09/06/2023',y:[33.75,34.15,33.50,33.90]},{ x:'09/07/2023',y:[33.80,34.05,33.20,33.20]},{ x:'09/08/2023',y:[33.15,33.30,33.00,33.00]},{ x:'09/11/2023',y:[33.00,33.00,31.55,31.55]},{ x:'09/12/2023',y:[31.45,31.85,31.25,31.80]},{ x:'09/13/2023',y:[31.80,32.00,31.40,31.50]},{ x:'09/14/2023',y:[31.60,32.25,31.60,32.10]},{ x:'09/15/2023',y:[32.10,32.35,31.70,32.25]},{ x:'09/18/2023',y:[31.90,32.00,31.65,31.65]},{ x:'09/19/2023',y:[31.70,31.95,30.95,30.95]},{ x:'09/20/2023',y:[31.15,31.50,30.90,31.05]} ] }], 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());