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/16/2024',y:[11.15,11.25,11.00,11.10]},{ x:'01/17/2024',y:[11.00,11.10,10.90,10.90]},{ x:'01/18/2024',y:[10.90,10.95,10.90,10.90]},{ x:'01/19/2024',y:[10.90,11.00,10.90,11.00]},{ x:'01/22/2024',y:[11.00,11.05,10.90,11.05]},{ x:'01/23/2024',y:[11.00,11.10,10.85,10.90]},{ x:'01/24/2024',y:[11.10,11.10,10.90,10.95]},{ x:'01/25/2024',y:[11.05,11.10,11.00,11.05]},{ x:'01/26/2024',y:[11.05,11.75,11.05,11.55]},{ x:'01/29/2024',y:[11.55,11.65,11.40,11.55]},{ x:'01/30/2024',y:[11.50,11.70,11.35,11.65]},{ x:'01/31/2024',y:[11.90,12.80,11.85,12.80]},{ x:'02/01/2024',y:[13.80,14.05,13.35,14.05]},{ x:'02/02/2024',y:[15.30,15.30,14.05,14.55]},{ x:'02/05/2024',y:[14.00,14.00,13.10,13.55]},{ x:'02/15/2024',y:[13.10,13.50,12.80,13.30]},{ x:'02/16/2024',y:[13.30,14.60,13.30,14.60]},{ x:'02/19/2024',y:[15.60,16.05,15.60,16.05]},{ x:'02/20/2024',y:[17.65,17.65,17.65,17.65]},{ x:'02/21/2024',y:[19.40,19.40,17.65,18.20]},{ x:'02/22/2024',y:[18.70,18.70,17.00,18.50]},{ x:'02/23/2024',y:[18.75,20.35,18.00,20.35]},{ x:'02/26/2024',y:[21.10,22.35,21.00,22.35]},{ x:'02/27/2024',y:[22.45,22.60,20.85,21.65]},{ x:'02/29/2024',y:[21.50,23.75,21.05,23.75]},{ x:'03/01/2024',y:[24.00,24.50,23.00,23.10]},{ x:'03/04/2024',y:[23.95,23.95,22.00,23.45]},{ x:'03/05/2024',y:[23.45,25.75,23.25,25.75]},{ x:'03/06/2024',y:[25.55,28.15,25.20,28.00]},{ x:'03/07/2024',y:[28.50,28.65,25.20,25.30]},{ x:'03/08/2024',y:[25.30,25.30,22.80,22.80]},{ x:'03/11/2024',y:[20.95,23.00,20.95,22.30]},{ x:'03/12/2024',y:[21.00,21.05,20.10,20.10]},{ x:'03/13/2024',y:[19.90,20.75,18.20,18.50]},{ x:'03/14/2024',y:[18.30,20.35,18.30,20.35]},{ x:'03/15/2024',y:[20.00,20.85,19.30,19.55]},{ x:'03/18/2024',y:[18.70,20.20,18.70,19.60]},{ x:'03/19/2024',y:[19.15,19.70,18.75,18.80]},{ x:'03/20/2024',y:[18.35,19.70,18.30,19.00]},{ x:'03/21/2024',y:[19.00,19.50,18.20,18.30]},{ x:'03/22/2024',y:[18.30,19.10,18.10,18.10]},{ x:'03/25/2024',y:[18.30,18.40,17.20,18.10]},{ x:'03/26/2024',y:[18.05,18.05,16.75,16.80]},{ x:'03/27/2024',y:[17.00,18.45,17.00,18.45]},{ x:'03/28/2024',y:[20.25,20.25,20.00,20.25]},{ x:'03/29/2024',y:[20.25,21.70,19.60,20.15]},{ x:'04/01/2024',y:[20.25,20.25,19.05,19.55]},{ x:'04/02/2024',y:[19.80,20.45,19.25,19.70]},{ x:'04/03/2024',y:[19.85,20.00,19.45,19.45]},{ x:'04/08/2024',y:[19.55,19.85,19.40,19.50]},{ x:'04/09/2024',y:[19.80,21.45,19.30,21.45]},{ x:'04/10/2024',y:[21.45,21.50,19.60,20.65]},{ x:'04/11/2024',y:[20.05,20.65,18.90,19.15]},{ x:'04/12/2024',y:[19.15,19.65,18.65,18.75]},{ x:'04/15/2024',y:[18.75,18.75,17.85,18.00]},{ x:'04/16/2024',y:[17.70,17.70,17.05,17.45]},{ x:'04/17/2024',y:[17.60,18.55,17.60,17.60]},{ x:'04/18/2024',y:[17.20,17.90,16.80,17.80]},{ x:'04/19/2024',y:[17.70,18.70,17.00,17.85]},{ x:'04/22/2024',y:[17.30,19.60,17.30,19.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3313 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());