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/22/2024',y:[23.55,23.75,23.00,23.65]},{ x:'01/23/2024',y:[23.65,23.75,23.40,23.65]},{ x:'01/24/2024',y:[23.85,24.15,23.60,23.60]},{ x:'01/25/2024',y:[23.80,24.75,23.75,24.70]},{ x:'01/26/2024',y:[24.70,25.20,23.60,23.90]},{ x:'01/29/2024',y:[23.90,24.25,23.40,24.00]},{ x:'01/30/2024',y:[24.00,24.80,23.90,24.55]},{ x:'01/31/2024',y:[24.80,25.35,24.60,24.90]},{ x:'02/01/2024',y:[25.45,27.10,25.40,25.50]},{ x:'02/02/2024',y:[26.10,26.60,25.60,26.10]},{ x:'02/05/2024',y:[26.15,26.50,24.75,25.80]},{ x:'02/15/2024',y:[27.00,28.30,26.40,28.15]},{ x:'02/16/2024',y:[28.75,29.95,28.20,29.45]},{ x:'02/19/2024',y:[30.50,32.35,29.75,32.35]},{ x:'02/20/2024',y:[33.30,34.75,32.25,33.40]},{ x:'02/21/2024',y:[33.50,34.20,32.70,34.15]},{ x:'02/22/2024',y:[35.00,35.50,32.90,35.15]},{ x:'02/23/2024',y:[36.00,38.65,35.90,38.65]},{ x:'02/26/2024',y:[40.00,40.20,37.00,39.30]},{ x:'02/27/2024',y:[39.80,43.00,38.15,40.30]},{ x:'02/29/2024',y:[39.90,43.40,39.55,41.80]},{ x:'03/01/2024',y:[42.30,44.20,40.50,42.15]},{ x:'03/04/2024',y:[42.35,44.95,42.15,43.95]},{ x:'03/05/2024',y:[44.80,47.20,42.75,46.80]},{ x:'03/06/2024',y:[46.50,48.50,45.80,47.00]},{ x:'03/07/2024',y:[47.00,48.30,45.75,46.15]},{ x:'03/08/2024',y:[46.70,47.95,41.55,41.55]},{ x:'03/11/2024',y:[39.15,41.35,38.20,38.20]},{ x:'03/12/2024',y:[38.60,39.80,37.60,38.10]},{ x:'03/13/2024',y:[38.40,39.00,35.60,36.15]},{ x:'03/14/2024',y:[36.60,37.10,34.30,34.30]},{ x:'03/15/2024',y:[34.30,36.60,33.80,36.15]},{ x:'03/18/2024',y:[37.00,39.75,36.70,39.75]},{ x:'03/19/2024',y:[40.25,42.40,39.70,40.70]},{ x:'03/20/2024',y:[40.05,40.15,38.00,38.25]},{ x:'03/21/2024',y:[38.25,38.75,37.30,38.60]},{ x:'03/22/2024',y:[38.35,39.35,37.70,38.50]},{ x:'03/25/2024',y:[38.50,42.35,38.40,42.35]},{ x:'03/26/2024',y:[43.30,43.85,39.55,40.60]},{ x:'03/27/2024',y:[40.60,41.65,40.10,40.75]},{ x:'03/28/2024',y:[41.15,42.80,40.80,42.45]},{ x:'03/29/2024',y:[42.40,44.00,42.20,43.75]},{ x:'04/01/2024',y:[44.90,44.95,42.20,43.00]},{ x:'04/02/2024',y:[43.00,43.30,42.10,42.35]},{ x:'04/03/2024',y:[42.20,42.80,41.05,41.35]},{ x:'04/08/2024',y:[41.25,41.60,40.45,40.80]},{ x:'04/09/2024',y:[41.25,43.20,41.20,41.55]},{ x:'04/10/2024',y:[41.55,43.30,41.20,42.65]},{ x:'04/11/2024',y:[43.45,46.90,43.00,46.90]},{ x:'04/12/2024',y:[47.85,51.50,47.80,51.50]},{ x:'04/15/2024',y:[53.10,53.20,47.40,49.30]},{ x:'04/16/2024',y:[48.50,49.00,44.40,44.75]},{ x:'04/17/2024',y:[45.95,49.20,45.10,49.20]},{ x:'04/18/2024',y:[49.00,54.00,47.25,48.95]},{ x:'04/19/2024',y:[47.00,47.80,44.50,46.20]},{ x:'04/22/2024',y:[46.35,47.00,43.00,43.15]},{ x:'04/23/2024',y:[44.05,45.90,42.00,42.00]},{ x:'04/24/2024',y:[42.80,44.00,41.65,41.65]},{ x:'04/25/2024',y:[42.00,44.85,41.35,43.50]},{ x:'04/26/2024',y:[43.75,47.30,43.75,45.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3312 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());