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:'03/28/2024',y:[29.30,31.90,29.30,31.90]},{ x:'03/29/2024',y:[31.75,31.85,30.30,30.35]},{ x:'04/01/2024',y:[30.35,30.70,30.20,30.30]},{ x:'04/02/2024',y:[30.30,30.75,30.25,30.25]},{ x:'04/03/2024',y:[30.15,30.20,30.05,30.10]},{ x:'04/08/2024',y:[30.05,30.30,29.90,29.95]},{ x:'04/09/2024',y:[30.10,30.70,29.90,29.90]},{ x:'04/10/2024',y:[30.00,30.30,29.75,29.75]},{ x:'04/11/2024',y:[29.75,29.80,29.65,29.65]},{ x:'04/12/2024',y:[30.35,30.35,29.65,29.65]},{ x:'04/15/2024',y:[29.65,29.80,29.15,29.80]},{ x:'04/16/2024',y:[29.25,29.35,28.55,28.90]},{ x:'04/17/2024',y:[29.45,29.45,29.10,29.15]},{ x:'04/18/2024',y:[29.15,29.65,29.00,29.30]},{ x:'04/19/2024',y:[29.00,29.20,28.70,28.95]},{ x:'04/22/2024',y:[28.85,28.95,28.85,28.90]},{ x:'04/23/2024',y:[28.90,29.20,28.80,28.80]},{ x:'04/24/2024',y:[29.10,30.30,28.95,29.75]},{ x:'04/25/2024',y:[29.90,29.90,29.00,29.10]},{ x:'04/26/2024',y:[29.50,29.50,29.00,29.00]},{ x:'04/29/2024',y:[28.75,29.00,27.55,28.50]},{ x:'04/30/2024',y:[28.25,29.50,28.25,29.00]},{ x:'05/02/2024',y:[28.95,29.60,28.20,29.20]},{ x:'05/03/2024',y:[29.65,30.90,29.65,30.00]},{ x:'05/06/2024',y:[30.15,31.30,30.00,31.15]},{ x:'05/07/2024',y:[33.75,33.80,31.80,32.55]},{ x:'05/08/2024',y:[33.85,33.90,32.75,32.85]},{ x:'05/09/2024',y:[33.90,35.80,33.10,33.80]},{ x:'05/10/2024',y:[34.50,35.15,34.00,34.35]},{ x:'05/13/2024',y:[34.85,37.20,34.85,36.60]},{ x:'05/14/2024',y:[36.50,37.90,36.25,36.80]},{ x:'05/15/2024',y:[36.50,36.95,35.40,35.40]},{ x:'05/16/2024',y:[35.40,36.50,35.40,35.80]},{ x:'05/17/2024',y:[35.35,35.80,35.35,35.75]},{ x:'05/20/2024',y:[36.20,36.50,35.45,36.20]},{ x:'05/21/2024',y:[36.00,36.50,35.90,36.30]},{ x:'05/22/2024',y:[36.30,37.45,35.95,35.95]},{ x:'05/23/2024',y:[36.10,36.50,34.90,36.25]},{ x:'05/24/2024',y:[35.65,36.55,35.60,36.45]},{ x:'06/11/2024',y:[43.60,46.55,43.50,44.25]},{ x:'06/12/2024',y:[46.50,48.65,45.45,48.65]},{ x:'06/13/2024',y:[49.70,50.00,47.80,48.45]},{ x:'06/14/2024',y:[49.30,51.00,48.45,49.40]},{ x:'06/17/2024',y:[49.95,50.80,49.45,50.80]},{ x:'06/18/2024',y:[50.70,50.80,49.60,49.65]},{ x:'06/19/2024',y:[50.00,50.00,48.35,49.15]},{ x:'06/20/2024',y:[49.10,49.10,48.10,48.85]},{ x:'06/21/2024',y:[48.50,49.90,48.45,48.85]},{ x:'06/24/2024',y:[47.05,48.45,47.05,47.45]},{ x:'06/25/2024',y:[47.55,47.95,46.05,47.50]},{ x:'06/26/2024',y:[48.00,48.00,46.50,46.70]},{ x:'06/27/2024',y:[46.20,46.50,45.60,46.00]},{ x:'06/28/2024',y:[46.00,46.45,45.90,46.40]},{ x:'07/01/2024',y:[46.95,47.60,46.45,46.65]},{ x:'07/02/2024',y:[47.70,47.70,45.25,45.25]},{ x:'07/03/2024',y:[45.40,47.05,44.85,45.50]},{ x:'07/04/2024',y:[45.45,46.30,45.20,45.55]},{ x:'07/05/2024',y:[45.50,46.05,45.05,46.00]},{ x:'07/12/2024',y:[42.05,43.00,41.65,41.70]},{ x:'07/15/2024',y:[41.55,41.65,38.30,40.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4991 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());