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/22/2023',y:[1150.00,1165.00,1135.00,1160.00]},{ x:'03/23/2023',y:[1160.00,1220.00,1150.00,1195.00]},{ x:'03/24/2023',y:[1215.00,1230.00,1165.00,1165.00]},{ x:'03/27/2023',y:[1160.00,1180.00,1140.00,1180.00]},{ x:'03/28/2023',y:[1180.00,1185.00,1105.00,1105.00]},{ x:'03/29/2023',y:[1105.00,1115.00,1000.00,1010.00]},{ x:'03/30/2023',y:[1035.00,1055.00,1030.00,1050.00]},{ x:'03/31/2023',y:[1050.00,1095.00,1025.00,1085.00]},{ x:'04/06/2023',y:[1050.00,1080.00,1025.00,1070.00]},{ x:'04/07/2023',y:[1085.00,1095.00,1050.00,1080.00]},{ x:'04/10/2023',y:[1090.00,1115.00,1090.00,1100.00]},{ x:'04/11/2023',y:[1110.00,1120.00,1065.00,1070.00]},{ x:'04/12/2023',y:[1080.00,1085.00,1040.00,1070.00]},{ x:'04/13/2023',y:[1050.00,1060.00,1030.00,1030.00]},{ x:'04/14/2023',y:[1050.00,1095.00,1040.00,1085.00]},{ x:'04/17/2023',y:[1075.00,1090.00,1060.00,1070.00]},{ x:'04/18/2023',y:[1080.00,1090.00,1025.00,1025.00]},{ x:'04/19/2023',y:[1030.00,1055.00,1025.00,1030.00]},{ x:'04/20/2023',y:[1045.00,1065.00,1030.00,1050.00]},{ x:'04/21/2023',y:[1050.00,1060.00,1005.00,1015.00]},{ x:'04/24/2023',y:[1010.00,1030.00,1000.00,1020.00]},{ x:'04/25/2023',y:[1030.00,1030.00,921.00,933.00]},{ x:'04/26/2023',y:[926.00,959.00,925.00,957.00]},{ x:'04/27/2023',y:[958.00,993.00,941.00,970.00]},{ x:'04/28/2023',y:[997.00,1010.00,982.00,996.00]},{ x:'05/02/2023',y:[1010.00,1095.00,997.00,1095.00]},{ x:'05/03/2023',y:[1085.00,1115.00,1070.00,1080.00]},{ x:'05/04/2023',y:[1100.00,1130.00,1095.00,1105.00]},{ x:'05/05/2023',y:[1135.00,1155.00,1090.00,1140.00]},{ x:'05/08/2023',y:[1155.00,1180.00,1125.00,1125.00]},{ x:'05/09/2023',y:[1140.00,1155.00,1115.00,1140.00]},{ x:'05/10/2023',y:[1145.00,1150.00,1085.00,1130.00]},{ x:'05/11/2023',y:[1135.00,1145.00,1105.00,1105.00]},{ x:'05/12/2023',y:[1125.00,1175.00,1115.00,1170.00]},{ x:'05/15/2023',y:[1155.00,1165.00,1130.00,1130.00]},{ x:'05/16/2023',y:[1160.00,1180.00,1125.00,1130.00]},{ x:'05/17/2023',y:[1135.00,1170.00,1135.00,1165.00]},{ x:'05/18/2023',y:[1200.00,1205.00,1160.00,1165.00]},{ x:'05/19/2023',y:[1190.00,1280.00,1185.00,1280.00]},{ x:'05/22/2023',y:[1310.00,1315.00,1260.00,1275.00]},{ x:'05/23/2023',y:[1280.00,1320.00,1265.00,1285.00]},{ x:'05/24/2023',y:[1275.00,1285.00,1220.00,1265.00]},{ x:'05/25/2023',y:[1345.00,1390.00,1345.00,1390.00]},{ x:'05/26/2023',y:[1425.00,1465.00,1405.00,1435.00]},{ x:'05/29/2023',y:[1455.00,1540.00,1450.00,1515.00]},{ x:'05/30/2023',y:[1525.00,1530.00,1475.00,1490.00]},{ x:'05/31/2023',y:[1520.00,1540.00,1470.00,1495.00]},{ x:'06/01/2023',y:[1475.00,1545.00,1470.00,1535.00]},{ x:'06/02/2023',y:[1570.00,1570.00,1425.00,1425.00]},{ x:'06/05/2023',y:[1440.00,1480.00,1430.00,1440.00]},{ x:'06/06/2023',y:[1450.00,1480.00,1415.00,1455.00]},{ x:'06/07/2023',y:[1460.00,1480.00,1445.00,1465.00]},{ x:'06/08/2023',y:[1460.00,1460.00,1365.00,1385.00]},{ x:'06/09/2023',y:[1420.00,1445.00,1405.00,1405.00]},{ x:'06/12/2023',y:[1430.00,1480.00,1425.00,1465.00]},{ x:'06/13/2023',y:[1505.00,1570.00,1495.00,1545.00]},{ x:'06/14/2023',y:[1510.00,1565.00,1500.00,1565.00]},{ x:'06/15/2023',y:[1615.00,1715.00,1610.00,1645.00]},{ x:'06/16/2023',y:[1650.00,1675.00,1635.00,1650.00]},{ x:'06/19/2023',y:[1645.00,1710.00,1620.00,1700.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3443 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());