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/29/2024',y:[26.50,28.60,26.50,28.30]},{ x:'04/30/2024',y:[28.00,29.55,27.10,27.30]},{ x:'05/02/2024',y:[27.20,28.35,26.75,27.70]},{ x:'05/03/2024',y:[28.40,28.50,27.00,27.05]},{ x:'05/06/2024',y:[27.60,28.00,26.85,26.95]},{ x:'05/07/2024',y:[27.20,28.80,26.75,28.10]},{ x:'05/08/2024',y:[29.15,29.20,27.35,27.80]},{ x:'05/09/2024',y:[27.95,28.40,27.30,27.30]},{ x:'05/10/2024',y:[27.70,28.90,27.20,28.45]},{ x:'05/13/2024',y:[28.80,31.25,27.95,30.65]},{ x:'05/14/2024',y:[31.00,32.40,29.70,31.80]},{ x:'05/15/2024',y:[32.20,34.95,31.75,34.95]},{ x:'05/16/2024',y:[36.10,38.40,36.10,38.40]},{ x:'05/17/2024',y:[40.00,41.40,36.15,37.50]},{ x:'05/20/2024',y:[38.25,39.80,37.20,37.65]},{ x:'05/21/2024',y:[38.70,41.40,38.20,41.40]},{ x:'05/22/2024',y:[42.05,45.40,41.65,43.20]},{ x:'05/23/2024',y:[42.10,42.10,38.95,38.95]},{ x:'05/24/2024',y:[38.50,39.85,37.85,39.60]},{ x:'06/11/2024',y:[38.95,39.35,35.45,35.45]},{ x:'06/12/2024',y:[34.70,37.30,33.40,36.40]},{ x:'06/13/2024',y:[36.40,38.00,35.55,36.30]},{ x:'06/14/2024',y:[36.35,37.10,35.50,35.75]},{ x:'06/17/2024',y:[35.90,36.50,35.50,35.80]},{ x:'06/18/2024',y:[36.40,37.95,36.10,36.65]},{ x:'06/19/2024',y:[36.65,36.80,35.30,35.40]},{ x:'06/20/2024',y:[35.10,37.00,35.10,36.35]},{ x:'06/21/2024',y:[36.05,36.45,35.50,35.50]},{ x:'06/24/2024',y:[35.55,35.85,34.70,34.85]},{ x:'06/25/2024',y:[34.30,35.00,33.85,34.40]},{ x:'06/26/2024',y:[34.90,36.25,34.75,35.15]},{ x:'06/27/2024',y:[35.20,35.35,34.15,34.15]},{ x:'06/28/2024',y:[34.30,37.45,34.30,36.50]},{ x:'07/01/2024',y:[36.50,37.80,36.00,36.00]},{ x:'07/02/2024',y:[36.50,36.50,35.50,35.50]},{ x:'07/03/2024',y:[36.15,37.80,35.80,37.15]},{ x:'07/04/2024',y:[37.30,40.30,37.10,40.05]},{ x:'07/05/2024',y:[40.95,44.00,40.50,42.60]},{ x:'07/12/2024',y:[37.35,38.15,37.25,37.45]},{ x:'07/15/2024',y:[37.60,37.65,36.35,36.45]},{ x:'07/16/2024',y:[36.65,37.45,36.05,37.10]},{ x:'07/17/2024',y:[37.10,37.80,36.85,37.20]},{ x:'07/18/2024',y:[37.45,37.45,35.75,35.75]},{ x:'07/19/2024',y:[35.85,36.05,34.40,34.40]},{ x:'07/22/2024',y:[34.50,34.70,33.20,33.25]},{ x:'07/23/2024',y:[33.75,34.45,33.00,33.00]},{ x:'07/26/2024',y:[32.00,32.60,30.90,32.10]},{ x:'07/29/2024',y:[32.80,32.85,30.65,30.75]},{ x:'07/30/2024',y:[31.05,31.85,30.30,31.85]},{ x:'07/31/2024',y:[31.45,32.35,31.20,31.80]},{ x:'08/01/2024',y:[32.25,34.95,32.25,34.95]},{ x:'08/02/2024',y:[34.40,36.35,33.60,34.00]},{ x:'08/05/2024',y:[32.85,32.85,30.60,30.60]},{ x:'08/06/2024',y:[30.85,31.60,27.55,28.55]},{ x:'08/07/2024',y:[29.05,31.40,28.80,31.30]},{ x:'08/08/2024',y:[30.85,31.75,30.40,30.50]},{ x:'08/09/2024',y:[31.35,32.20,31.20,31.40]},{ x:'08/12/2024',y:[31.70,31.85,30.70,31.10]},{ x:'08/13/2024',y:[31.45,32.85,30.80,32.05]},{ x:'08/14/2024',y:[32.70,33.35,31.50,31.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5392 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());