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:[32.40,32.95,32.10,32.45]},{ x:'01/23/2024',y:[32.70,33.00,32.55,32.75]},{ x:'01/24/2024',y:[33.50,34.20,33.05,33.65]},{ x:'01/25/2024',y:[34.20,34.30,33.00,33.00]},{ x:'01/26/2024',y:[33.10,35.45,33.10,34.25]},{ x:'01/29/2024',y:[34.50,34.55,33.55,34.20]},{ x:'01/30/2024',y:[33.80,34.15,33.70,34.00]},{ x:'01/31/2024',y:[34.20,34.25,33.40,33.65]},{ x:'02/01/2024',y:[33.70,33.95,33.00,33.30]},{ x:'02/02/2024',y:[33.65,33.75,33.25,33.70]},{ x:'02/05/2024',y:[33.70,33.70,32.60,33.00]},{ x:'02/15/2024',y:[33.60,33.70,33.00,33.25]},{ x:'02/16/2024',y:[33.50,34.85,33.50,34.70]},{ x:'02/19/2024',y:[35.10,35.60,34.70,35.30]},{ x:'02/20/2024',y:[35.50,35.50,34.60,35.10]},{ x:'02/21/2024',y:[35.00,35.45,34.80,35.05]},{ x:'02/22/2024',y:[36.00,38.55,35.80,38.55]},{ x:'02/23/2024',y:[38.50,38.50,36.70,36.95]},{ x:'02/26/2024',y:[36.65,37.85,36.45,36.75]},{ x:'02/27/2024',y:[36.25,37.65,36.15,36.30]},{ x:'02/29/2024',y:[36.50,39.35,36.35,39.00]},{ x:'03/01/2024',y:[39.10,39.70,38.30,39.30]},{ x:'03/04/2024',y:[39.60,43.20,39.25,43.20]},{ x:'03/05/2024',y:[46.00,47.50,45.30,47.50]},{ x:'03/06/2024',y:[48.70,52.20,47.80,52.20]},{ x:'03/07/2024',y:[55.00,55.60,51.70,52.80]},{ x:'03/08/2024',y:[53.90,54.00,50.40,50.90]},{ x:'03/11/2024',y:[52.40,54.60,51.30,51.50]},{ x:'03/12/2024',y:[51.10,51.10,48.70,49.70]},{ x:'03/13/2024',y:[50.00,50.00,46.10,49.00]},{ x:'03/14/2024',y:[48.20,50.50,48.00,49.35]},{ x:'03/15/2024',y:[48.50,49.10,46.55,46.55]},{ x:'03/18/2024',y:[46.30,48.00,46.30,47.90]},{ x:'03/19/2024',y:[48.20,48.40,47.05,47.05]},{ x:'03/20/2024',y:[47.20,47.20,44.10,45.05]},{ x:'03/21/2024',y:[45.55,48.20,45.55,47.80]},{ x:'03/22/2024',y:[48.50,50.70,48.50,50.70]},{ x:'03/25/2024',y:[51.30,51.80,51.00,51.10]},{ x:'03/26/2024',y:[54.30,54.40,46.00,46.20]},{ x:'03/27/2024',y:[45.95,46.00,43.80,45.45]},{ x:'03/28/2024',y:[45.20,45.40,43.35,44.65]},{ x:'03/29/2024',y:[44.20,45.80,43.40,43.40]},{ x:'04/01/2024',y:[43.65,46.15,43.20,44.60]},{ x:'04/02/2024',y:[44.85,47.45,44.40,45.00]},{ x:'04/03/2024',y:[44.05,45.60,44.05,44.60]},{ x:'04/08/2024',y:[44.65,45.50,44.25,44.30]},{ x:'04/09/2024',y:[44.80,44.80,43.70,43.70]},{ x:'04/10/2024',y:[43.90,45.15,43.85,43.90]},{ x:'04/11/2024',y:[44.00,44.00,41.55,42.00]},{ x:'04/12/2024',y:[42.70,43.65,42.00,42.80]},{ x:'04/15/2024',y:[42.65,42.65,40.50,40.50]},{ x:'04/16/2024',y:[40.00,40.00,38.55,38.60]},{ x:'04/17/2024',y:[39.50,39.60,38.75,38.75]},{ x:'04/18/2024',y:[38.80,38.90,37.70,37.75]},{ x:'04/19/2024',y:[37.15,38.50,36.40,36.75]},{ x:'04/22/2024',y:[37.20,37.25,35.45,35.45]},{ x:'04/23/2024',y:[36.25,37.00,35.45,35.90]},{ x:'04/24/2024',y:[36.70,37.25,36.40,36.80]},{ x:'04/25/2024',y:[36.80,36.90,35.80,36.00]},{ x:'04/26/2024',y:[36.50,37.30,36.30,36.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2417 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());