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:[52.80,53.90,50.00,50.00]},{ x:'01/23/2024',y:[50.00,52.00,50.00,50.70]},{ x:'01/24/2024',y:[50.70,52.20,50.00,50.20]},{ x:'01/25/2024',y:[49.90,50.60,47.80,48.10]},{ x:'01/26/2024',y:[48.10,48.45,47.70,47.70]},{ x:'01/29/2024',y:[48.00,50.40,47.80,49.05]},{ x:'01/30/2024',y:[49.50,50.40,48.10,48.60]},{ x:'01/31/2024',y:[48.60,49.30,48.05,49.00]},{ x:'02/01/2024',y:[49.00,50.50,49.00,49.15]},{ x:'02/02/2024',y:[49.75,49.90,48.45,48.50]},{ x:'02/05/2024',y:[48.75,49.30,47.60,48.55]},{ x:'02/15/2024',y:[49.20,50.70,49.00,50.50]},{ x:'02/16/2024',y:[50.00,53.50,49.85,52.70]},{ x:'02/19/2024',y:[53.70,55.00,51.20,52.80]},{ x:'02/20/2024',y:[52.90,54.10,51.30,51.30]},{ x:'02/21/2024',y:[51.40,56.40,50.90,56.40]},{ x:'02/22/2024',y:[58.00,58.50,55.00,55.60]},{ x:'02/23/2024',y:[55.40,55.60,52.60,53.20]},{ x:'02/26/2024',y:[53.20,58.50,53.20,58.50]},{ x:'02/27/2024',y:[59.40,62.50,57.00,59.80]},{ x:'02/29/2024',y:[61.80,65.70,59.00,59.70]},{ x:'03/01/2024',y:[60.80,60.80,57.90,58.60]},{ x:'03/04/2024',y:[59.00,61.30,57.10,60.10]},{ x:'03/05/2024',y:[61.10,62.40,58.90,59.40]},{ x:'03/06/2024',y:[58.70,59.50,57.30,57.40]},{ x:'03/07/2024',y:[57.70,57.90,55.70,56.00]},{ x:'03/08/2024',y:[56.10,56.50,53.50,54.10]},{ x:'03/11/2024',y:[53.30,54.40,52.60,52.70]},{ x:'03/12/2024',y:[52.80,53.90,52.70,52.80]},{ x:'03/13/2024',y:[53.30,54.10,51.20,53.50]},{ x:'03/14/2024',y:[53.00,54.20,52.80,52.80]},{ x:'03/15/2024',y:[52.20,55.70,52.20,53.00]},{ x:'03/18/2024',y:[53.30,58.30,52.70,57.50]},{ x:'03/19/2024',y:[57.00,61.40,56.20,60.00]},{ x:'03/20/2024',y:[60.00,61.70,58.60,60.00]},{ x:'03/21/2024',y:[61.80,62.40,59.10,60.60]},{ x:'03/22/2024',y:[60.60,61.60,59.20,59.30]},{ x:'03/25/2024',y:[60.30,65.20,60.30,65.20]},{ x:'03/26/2024',y:[66.50,67.70,61.00,63.20]},{ x:'03/27/2024',y:[62.90,64.00,59.60,60.80]},{ x:'03/28/2024',y:[61.90,66.00,60.30,63.50]},{ x:'03/29/2024',y:[63.90,65.70,61.90,63.70]},{ x:'04/01/2024',y:[63.80,66.50,63.20,66.50]},{ x:'04/02/2024',y:[66.80,71.80,65.40,70.30]},{ x:'04/03/2024',y:[68.70,77.30,68.70,77.30]},{ x:'04/08/2024',y:[77.90,79.70,74.40,75.30]},{ x:'04/09/2024',y:[75.50,75.60,72.60,73.50]},{ x:'04/10/2024',y:[74.00,76.30,71.90,72.00]},{ x:'04/11/2024',y:[71.60,72.90,71.00,71.80]},{ x:'04/12/2024',y:[72.70,75.90,70.70,72.80]},{ x:'04/15/2024',y:[72.10,74.70,70.70,70.70]},{ x:'04/16/2024',y:[70.80,70.90,67.10,67.30]},{ x:'04/17/2024',y:[67.90,72.10,67.80,69.00]},{ x:'04/18/2024',y:[69.00,70.60,68.10,68.90]},{ x:'04/19/2024',y:[68.70,71.70,66.30,70.20]},{ x:'04/22/2024',y:[70.00,72.20,67.00,67.20]},{ x:'04/23/2024',y:[67.50,73.80,67.50,73.70]},{ x:'04/24/2024',y:[76.30,78.30,72.50,73.90]},{ x:'04/25/2024',y:[73.70,73.90,70.50,73.50]},{ x:'04/26/2024',y:[73.20,76.50,73.20,74.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6668 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());