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:'02/16/2023',y:[26.00,26.10,26.00,26.10]},{ x:'02/17/2023',y:[26.10,26.10,26.10,26.10]},{ x:'02/20/2023',y:[26.20,26.25,26.00,26.10]},{ x:'02/21/2023',y:[26.10,26.20,26.00,26.20]},{ x:'02/22/2023',y:[26.00,26.55,25.85,26.55]},{ x:'02/23/2023',y:[26.50,26.50,26.20,26.45]},{ x:'02/24/2023',y:[26.45,26.45,26.30,26.30]},{ x:'03/01/2023',y:[26.50,26.60,26.10,26.60]},{ x:'03/02/2023',y:[26.35,26.70,26.35,26.70]},{ x:'03/03/2023',y:[26.75,27.30,26.70,26.95]},{ x:'03/06/2023',y:[27.00,27.95,27.00,27.10]},{ x:'03/07/2023',y:[27.30,27.65,27.25,27.50]},{ x:'03/08/2023',y:[27.40,27.40,27.00,27.00]},{ x:'03/09/2023',y:[27.00,27.20,26.95,27.20]},{ x:'03/10/2023',y:[27.20,27.20,26.85,26.85]},{ x:'03/13/2023',y:[26.85,27.20,26.80,27.20]},{ x:'03/14/2023',y:[27.25,27.30,27.15,27.15]},{ x:'03/15/2023',y:[27.15,27.15,26.85,26.85]},{ x:'03/16/2023',y:[26.85,26.85,26.40,26.80]},{ x:'03/17/2023',y:[26.80,27.20,26.80,27.10]},{ x:'03/20/2023',y:[27.30,27.50,27.05,27.05]},{ x:'03/21/2023',y:[27.20,27.20,27.15,27.15]},{ x:'03/22/2023',y:[27.25,27.60,27.25,27.60]},{ x:'03/23/2023',y:[27.55,27.75,27.50,27.55]},{ x:'03/24/2023',y:[27.65,28.05,27.65,27.70]},{ x:'03/27/2023',y:[27.70,27.85,27.55,27.55]},{ x:'03/28/2023',y:[27.45,27.45,27.35,27.35]},{ x:'03/29/2023',y:[27.30,27.30,27.15,27.15]},{ x:'03/30/2023',y:[27.35,27.40,27.10,27.30]},{ x:'03/31/2023',y:[27.45,27.50,27.10,27.15]},{ x:'04/06/2023',y:[27.20,27.60,27.20,27.50]},{ x:'04/07/2023',y:[27.90,27.95,27.60,27.70]},{ x:'04/10/2023',y:[27.30,27.75,27.30,27.55]},{ x:'04/11/2023',y:[27.60,27.80,27.55,27.70]},{ x:'04/12/2023',y:[27.65,27.65,27.20,27.30]},{ x:'04/13/2023',y:[27.00,27.20,27.00,27.20]},{ x:'04/14/2023',y:[27.30,27.30,27.30,27.30]},{ x:'04/17/2023',y:[27.20,27.20,27.00,27.05]},{ x:'04/18/2023',y:[27.05,27.35,27.05,27.25]},{ x:'04/19/2023',y:[27.50,27.90,27.20,27.30]},{ x:'04/20/2023',y:[27.65,30.00,27.65,30.00]},{ x:'04/21/2023',y:[31.00,33.00,31.00,33.00]},{ x:'04/24/2023',y:[35.05,36.30,33.95,35.20]},{ x:'04/25/2023',y:[35.50,38.70,35.10,38.70]},{ x:'04/26/2023',y:[38.65,41.45,36.60,39.75]},{ x:'04/27/2023',y:[40.00,41.00,38.15,38.55]},{ x:'04/28/2023',y:[38.55,40.00,38.55,39.25]},{ x:'05/02/2023',y:[40.45,42.50,40.45,41.15]},{ x:'05/03/2023',y:[40.55,40.95,40.00,40.00]},{ x:'05/04/2023',y:[40.00,40.00,38.25,38.50]},{ x:'05/05/2023',y:[38.70,39.05,37.50,38.55]},{ x:'05/08/2023',y:[38.85,39.40,38.45,38.55]},{ x:'05/09/2023',y:[38.55,39.00,37.40,37.40]},{ x:'05/10/2023',y:[36.70,37.50,36.70,37.00]},{ x:'05/11/2023',y:[37.20,37.20,34.00,34.50]},{ x:'05/12/2023',y:[32.80,33.70,32.00,33.30]},{ x:'05/15/2023',y:[33.30,36.50,32.20,32.50]},{ x:'05/16/2023',y:[32.50,33.40,32.35,32.35]},{ x:'05/17/2023',y:[32.35,32.35,31.35,31.70]},{ x:'05/18/2023',y:[31.80,34.15,31.80,32.90]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4741 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());