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/23/2024',y:[72.10,72.10,71.90,72.05]},{ x:'01/24/2024',y:[72.80,72.85,72.70,72.75]},{ x:'01/25/2024',y:[72.60,72.60,72.25,72.60]},{ x:'01/26/2024',y:[72.80,72.90,72.50,72.60]},{ x:'01/29/2024',y:[72.70,72.90,72.70,72.90]},{ x:'01/30/2024',y:[74.00,74.05,73.85,74.05]},{ x:'01/31/2024',y:[73.25,73.40,73.10,73.35]},{ x:'02/01/2024',y:[71.95,72.20,71.85,72.10]},{ x:'02/02/2024',y:[74.00,74.15,73.95,74.15]},{ x:'02/05/2024',y:[74.55,74.65,74.50,74.60]},{ x:'02/15/2024',y:[76.10,76.15,75.90,76.15]},{ x:'02/16/2024',y:[76.85,76.95,76.80,76.95]},{ x:'02/19/2024',y:[76.25,76.30,76.15,76.20]},{ x:'02/20/2024',y:[76.10,76.10,75.70,75.85]},{ x:'02/21/2024',y:[75.25,75.30,75.05,75.10]},{ x:'02/22/2024',y:[76.60,76.85,76.50,76.85]},{ x:'02/23/2024',y:[78.65,79.00,78.65,78.95]},{ x:'02/26/2024',y:[78.60,78.65,78.35,78.65]},{ x:'02/27/2024',y:[78.10,78.20,78.00,78.05]},{ x:'02/29/2024',y:[78.10,78.50,78.10,78.45]},{ x:'03/01/2024',y:[78.85,79.20,78.85,79.10]},{ x:'03/04/2024',y:[80.05,80.20,80.00,80.05]},{ x:'03/05/2024',y:[79.70,79.80,79.60,79.65]},{ x:'03/06/2024',y:[78.25,78.60,78.25,78.55]},{ x:'03/07/2024',y:[78.95,79.00,78.65,78.80]},{ x:'03/08/2024',y:[80.55,80.75,80.35,80.60]},{ x:'03/11/2024',y:[79.45,79.45,79.15,79.20]},{ x:'03/12/2024',y:[79.60,79.95,79.60,79.95]},{ x:'03/13/2024',y:[80.85,81.00,80.85,81.00]},{ x:'03/14/2024',y:[80.95,81.05,80.85,80.95]},{ x:'03/15/2024',y:[80.50,80.60,80.35,80.55]},{ x:'03/18/2024',y:[79.65,80.00,79.60,80.00]},{ x:'03/19/2024',y:[80.30,80.55,80.25,80.50]},{ x:'03/20/2024',y:[81.40,81.50,81.35,81.40]},{ x:'03/21/2024',y:[83.45,83.75,83.35,83.75]},{ x:'03/22/2024',y:[83.75,83.95,83.65,83.90]},{ x:'03/25/2024',y:[83.35,83.50,83.20,83.20]},{ x:'03/26/2024',y:[83.00,83.30,83.00,83.30]},{ x:'03/27/2024',y:[82.90,83.25,82.90,83.20]},{ x:'03/28/2024',y:[83.95,84.00,83.85,83.95]},{ x:'03/29/2024',y:[83.90,84.00,83.80,83.95]},{ x:'04/01/2024',y:[84.60,84.60,84.50,84.60]},{ x:'04/02/2024',y:[83.50,83.60,83.40,83.40]},{ x:'04/03/2024',y:[82.45,82.60,82.30,82.35]},{ x:'04/08/2024',y:[82.25,82.55,82.25,82.40]},{ x:'04/09/2024',y:[82.40,82.65,82.35,82.50]},{ x:'04/10/2024',y:[82.70,82.75,82.55,82.70]},{ x:'04/11/2024',y:[80.75,81.25,80.75,81.20]},{ x:'04/12/2024',y:[82.40,82.55,82.30,82.45]},{ x:'04/15/2024',y:[80.50,80.85,80.35,80.75]},{ x:'04/16/2024',y:[78.30,78.35,77.85,78.30]},{ x:'04/17/2024',y:[78.20,78.50,78.10,78.35]},{ x:'04/18/2024',y:[77.25,77.40,77.15,77.30]},{ x:'04/19/2024',y:[76.05,76.05,74.25,75.40]},{ x:'04/22/2024',y:[75.45,76.05,75.45,76.00]},{ x:'04/23/2024',y:[76.90,76.95,76.65,76.85]},{ x:'04/24/2024',y:[78.95,79.20,78.80,79.20]},{ x:'04/25/2024',y:[77.70,77.80,77.45,77.45]},{ x:'04/26/2024',y:[79.05,79.10,78.90,79.10]},{ x:'04/29/2024',y:[79.60,79.85,79.55,79.75]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00647l 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());