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:[33.00,33.00,31.65,31.90]},{ x:'01/23/2024',y:[32.50,35.05,32.00,35.05]},{ x:'01/24/2024',y:[37.90,38.50,36.60,37.70]},{ x:'01/25/2024',y:[38.40,38.55,35.70,35.70]},{ x:'01/26/2024',y:[35.80,37.50,35.75,36.50]},{ x:'01/29/2024',y:[37.50,39.90,36.85,39.80]},{ x:'01/30/2024',y:[40.20,42.25,40.20,40.95]},{ x:'01/31/2024',y:[42.00,45.00,41.30,45.00]},{ x:'02/01/2024',y:[46.35,49.50,42.55,44.00]},{ x:'02/02/2024',y:[45.00,48.40,44.00,48.40]},{ x:'02/05/2024',y:[51.60,52.10,46.95,49.20]},{ x:'02/15/2024',y:[48.00,51.00,45.30,49.55]},{ x:'02/16/2024',y:[49.70,54.50,49.45,54.50]},{ x:'02/19/2024',y:[57.50,59.90,56.80,56.80]},{ x:'02/20/2024',y:[61.00,62.40,54.10,62.40]},{ x:'02/21/2024',y:[64.80,68.60,64.30,68.60]},{ x:'02/22/2024',y:[68.60,74.00,67.30,68.70]},{ x:'02/23/2024',y:[69.20,69.20,62.50,64.00]},{ x:'02/26/2024',y:[64.00,64.10,62.20,64.00]},{ x:'02/27/2024',y:[66.00,66.00,63.30,63.30]},{ x:'02/29/2024',y:[64.00,64.60,62.70,64.60]},{ x:'03/01/2024',y:[65.50,67.30,64.60,67.30]},{ x:'03/04/2024',y:[67.50,71.00,67.50,70.20]},{ x:'03/05/2024',y:[69.90,70.10,68.80,69.50]},{ x:'03/06/2024',y:[68.60,72.00,68.60,71.20]},{ x:'03/07/2024',y:[72.80,73.00,69.90,70.30]},{ x:'03/08/2024',y:[71.00,71.00,63.30,63.60]},{ x:'03/11/2024',y:[65.70,69.40,57.30,57.30]},{ x:'03/12/2024',y:[57.20,63.00,53.90,63.00]},{ x:'03/13/2024',y:[62.60,66.10,56.70,57.10]},{ x:'03/14/2024',y:[56.70,57.20,51.40,51.70]},{ x:'03/15/2024',y:[51.80,56.80,50.10,52.00]},{ x:'03/18/2024',y:[51.90,57.20,51.10,57.20]},{ x:'03/19/2024',y:[62.90,62.90,57.30,61.70]},{ x:'03/20/2024',y:[62.50,65.70,58.50,59.20]},{ x:'03/21/2024',y:[59.90,61.60,59.30,59.90]},{ x:'03/22/2024',y:[61.00,61.40,58.20,60.30]},{ x:'03/25/2024',y:[60.30,66.00,59.60,64.80]},{ x:'03/26/2024',y:[64.80,71.00,64.00,68.90]},{ x:'03/27/2024',y:[71.00,71.00,67.10,67.80]},{ x:'03/28/2024',y:[71.90,74.50,69.40,71.00]},{ x:'03/29/2024',y:[70.10,72.90,68.60,72.30]},{ x:'04/01/2024',y:[73.90,79.50,70.30,77.20]},{ x:'04/02/2024',y:[76.30,81.70,76.20,79.00]},{ x:'04/03/2024',y:[78.50,81.30,77.20,78.10]},{ x:'04/08/2024',y:[78.00,83.30,74.80,78.50]},{ x:'04/09/2024',y:[81.60,86.30,77.90,86.30]},{ x:'04/10/2024',y:[87.50,88.10,82.20,82.80]},{ x:'04/11/2024',y:[82.80,85.60,79.80,82.70]},{ x:'04/12/2024',y:[82.70,85.00,81.70,82.50]},{ x:'04/15/2024',y:[81.00,82.50,79.60,80.10]},{ x:'04/16/2024',y:[78.50,79.00,73.00,77.40]},{ x:'04/17/2024',y:[80.30,85.10,79.50,82.90]},{ x:'04/18/2024',y:[82.80,85.00,80.40,83.20]},{ x:'04/19/2024',y:[80.50,81.10,75.70,78.40]},{ x:'04/22/2024',y:[79.00,80.00,72.50,72.90]},{ x:'04/23/2024',y:[74.00,80.10,71.70,80.10]},{ x:'04/24/2024',y:[85.00,88.10,84.50,88.10]},{ x:'04/25/2024',y:[96.90,96.90,91.30,96.90]},{ x:'04/26/2024',y:[100.00,101.00,92.50,92.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6425 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());