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/12/2024',y:[29.60,29.60,29.35,29.35]},{ x:'01/15/2024',y:[29.50,29.70,29.35,29.45]},{ x:'01/16/2024',y:[29.55,29.55,29.30,29.30]},{ x:'01/17/2024',y:[29.30,29.45,29.20,29.20]},{ x:'01/18/2024',y:[29.20,29.20,29.20,29.20]},{ x:'01/19/2024',y:[29.15,29.15,28.80,28.90]},{ x:'01/22/2024',y:[28.90,29.25,28.90,29.00]},{ x:'01/23/2024',y:[29.00,29.25,28.90,29.25]},{ x:'01/24/2024',y:[29.25,29.30,29.15,29.30]},{ x:'01/25/2024',y:[29.50,29.60,29.40,29.50]},{ x:'01/26/2024',y:[29.50,29.50,29.20,29.20]},{ x:'01/29/2024',y:[29.40,29.60,29.40,29.50]},{ x:'01/30/2024',y:[29.50,29.50,29.40,29.50]},{ x:'01/31/2024',y:[29.50,32.45,29.50,32.20]},{ x:'02/01/2024',y:[32.50,35.35,32.50,33.70]},{ x:'02/02/2024',y:[33.70,33.70,31.65,31.65]},{ x:'02/05/2024',y:[31.65,33.60,31.60,32.65]},{ x:'02/15/2024',y:[32.70,33.60,31.55,33.20]},{ x:'02/16/2024',y:[33.00,35.30,32.75,35.10]},{ x:'02/19/2024',y:[35.15,37.75,35.15,37.50]},{ x:'02/20/2024',y:[37.50,38.05,36.20,37.90]},{ x:'02/21/2024',y:[37.90,38.50,37.35,37.70]},{ x:'02/22/2024',y:[37.70,37.90,36.50,36.70]},{ x:'02/23/2024',y:[36.70,37.30,36.20,36.75]},{ x:'02/26/2024',y:[36.80,40.00,36.80,39.90]},{ x:'02/27/2024',y:[39.80,42.50,38.90,40.15]},{ x:'02/29/2024',y:[40.15,42.60,40.15,42.15]},{ x:'03/01/2024',y:[42.15,42.50,41.10,41.40]},{ x:'03/04/2024',y:[41.40,41.80,40.65,41.10]},{ x:'03/05/2024',y:[41.10,41.10,39.60,39.85]},{ x:'03/06/2024',y:[39.80,41.80,39.65,41.35]},{ x:'03/07/2024',y:[41.40,41.45,40.00,40.15]},{ x:'03/08/2024',y:[40.10,40.40,37.50,38.30]},{ x:'03/11/2024',y:[38.00,39.40,37.95,38.45]},{ x:'03/12/2024',y:[38.45,40.95,38.45,40.10]},{ x:'03/13/2024',y:[40.10,40.15,39.10,39.80]},{ x:'03/14/2024',y:[39.80,39.80,38.60,38.65]},{ x:'03/15/2024',y:[38.35,39.30,38.05,38.50]},{ x:'03/18/2024',y:[38.55,41.30,38.55,40.65]},{ x:'03/19/2024',y:[40.25,41.20,39.95,40.50]},{ x:'03/20/2024',y:[41.00,41.30,40.20,40.40]},{ x:'03/21/2024',y:[40.65,43.30,40.30,43.25]},{ x:'03/22/2024',y:[44.35,46.80,42.05,43.10]},{ x:'03/25/2024',y:[42.70,44.30,42.10,42.55]},{ x:'03/26/2024',y:[42.55,44.00,41.10,41.85]},{ x:'03/27/2024',y:[41.65,42.45,41.05,42.15]},{ x:'03/28/2024',y:[42.15,43.00,41.45,42.25]},{ x:'03/29/2024',y:[42.60,43.30,41.80,42.95]},{ x:'04/11/2024',y:[39.80,40.30,38.40,38.50]},{ x:'04/12/2024',y:[38.90,40.00,38.45,39.30]},{ x:'04/15/2024',y:[39.75,41.45,39.30,40.60]},{ x:'04/16/2024',y:[41.15,42.30,40.10,40.65]},{ x:'04/17/2024',y:[40.50,43.50,40.50,43.45]},{ x:'04/18/2024',y:[44.50,47.75,44.30,47.75]},{ x:'04/19/2024',y:[50.00,52.50,44.80,49.55]},{ x:'04/22/2024',y:[49.85,52.20,44.60,44.60]},{ x:'04/23/2024',y:[46.10,48.60,44.20,45.80]},{ x:'04/24/2024',y:[46.15,46.75,44.20,46.50]},{ x:'04/25/2024',y:[47.15,47.45,45.10,46.75]},{ x:'04/26/2024',y:[47.00,47.00,45.05,46.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8473 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());