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:'01/03/2023',y:[33.25,33.25,32.50,32.80]},{ x:'01/04/2023',y:[33.00,33.35,32.25,32.40]},{ x:'01/05/2023',y:[32.45,33.00,32.20,32.25]},{ x:'01/06/2023',y:[32.25,32.45,32.00,32.10]},{ x:'01/09/2023',y:[32.35,32.35,32.05,32.15]},{ x:'01/10/2023',y:[32.50,32.50,32.20,32.40]},{ x:'01/11/2023',y:[32.60,32.70,32.50,32.50]},{ x:'01/12/2023',y:[32.50,32.70,32.40,32.50]},{ x:'01/13/2023',y:[32.50,32.80,32.50,32.60]},{ x:'01/16/2023',y:[32.60,32.60,32.35,32.55]},{ x:'01/17/2023',y:[32.50,32.80,32.50,32.65]},{ x:'01/30/2023',y:[33.00,33.00,32.40,32.55]},{ x:'01/31/2023',y:[32.70,33.20,32.60,32.95]},{ x:'02/01/2023',y:[33.00,33.55,33.00,33.00]},{ x:'02/02/2023',y:[33.40,33.40,32.75,32.75]},{ x:'02/03/2023',y:[32.85,33.20,32.75,33.00]},{ x:'02/06/2023',y:[33.25,34.00,33.00,33.55]},{ x:'02/07/2023',y:[34.10,34.10,33.10,33.15]},{ x:'02/08/2023',y:[33.15,33.30,33.05,33.20]},{ x:'02/09/2023',y:[33.55,33.60,33.05,33.10]},{ x:'02/10/2023',y:[33.25,33.40,33.00,33.00]},{ x:'02/13/2023',y:[33.20,34.15,33.15,33.30]},{ x:'02/14/2023',y:[33.75,34.00,33.50,34.00]},{ x:'02/15/2023',y:[34.05,35.95,34.05,35.10]},{ x:'02/16/2023',y:[35.70,35.80,34.85,35.35]},{ x:'02/17/2023',y:[35.30,38.20,33.80,36.55]},{ x:'02/20/2023',y:[37.15,40.00,37.15,38.20]},{ x:'02/21/2023',y:[37.95,37.95,36.50,36.80]},{ x:'02/22/2023',y:[37.10,40.45,37.05,40.45]},{ x:'02/23/2023',y:[44.45,44.45,43.80,44.45]},{ x:'02/24/2023',y:[44.90,48.85,44.70,47.40]},{ x:'03/01/2023',y:[47.50,48.00,45.00,45.15]},{ x:'03/02/2023',y:[45.75,49.65,45.50,49.65]},{ x:'03/03/2023',y:[51.50,52.30,49.85,50.30]},{ x:'03/06/2023',y:[49.50,51.50,48.65,50.40]},{ x:'03/07/2023',y:[50.60,55.40,50.60,52.50]},{ x:'03/08/2023',y:[52.20,54.10,50.70,52.00]},{ x:'03/09/2023',y:[53.10,54.30,52.10,53.30]},{ x:'03/10/2023',y:[53.90,56.50,50.00,50.30]},{ x:'03/13/2023',y:[50.30,50.30,47.40,47.40]},{ x:'03/14/2023',y:[46.90,51.60,46.90,48.25]},{ x:'03/15/2023',y:[48.50,49.80,48.05,48.05]},{ x:'03/16/2023',y:[47.55,47.95,45.55,46.95]},{ x:'03/17/2023',y:[47.70,50.80,47.30,49.75]},{ x:'03/20/2023',y:[50.20,54.00,50.20,54.00]},{ x:'03/21/2023',y:[54.10,55.50,52.10,53.90]},{ x:'03/22/2023',y:[53.60,54.40,52.80,52.80]},{ x:'03/23/2023',y:[52.80,53.00,51.20,51.30]},{ x:'03/24/2023',y:[52.00,53.00,51.10,52.50]},{ x:'03/27/2023',y:[51.80,52.40,50.70,50.70]},{ x:'03/28/2023',y:[51.60,53.00,49.85,49.85]},{ x:'03/29/2023',y:[50.50,54.30,50.50,51.50]},{ x:'03/30/2023',y:[51.80,52.40,50.60,50.60]},{ x:'03/31/2023',y:[51.20,51.80,50.30,51.20]},{ x:'04/06/2023',y:[50.70,50.70,49.30,49.60]},{ x:'04/07/2023',y:[50.50,51.00,49.30,49.50]},{ x:'04/10/2023',y:[49.00,49.20,48.10,48.55]},{ x:'04/11/2023',y:[48.25,49.35,48.00,48.05]},{ x:'04/12/2023',y:[47.75,48.50,47.70,47.70]},{ x:'04/13/2023',y:[47.80,49.85,47.10,48.45]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2722 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());