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:[41.80,42.40,41.25,41.90]},{ x:'01/23/2024',y:[41.80,43.40,41.75,43.30]},{ x:'01/24/2024',y:[42.65,44.10,42.60,44.00]},{ x:'01/25/2024',y:[43.85,44.30,43.20,43.55]},{ x:'01/26/2024',y:[43.25,43.90,42.70,43.25]},{ x:'01/29/2024',y:[43.05,43.90,43.05,43.70]},{ x:'01/30/2024',y:[43.70,44.20,43.30,43.55]},{ x:'01/31/2024',y:[43.60,44.30,43.60,43.85]},{ x:'02/01/2024',y:[44.30,45.20,44.15,45.15]},{ x:'02/02/2024',y:[45.20,45.45,44.85,45.30]},{ x:'02/05/2024',y:[45.10,45.25,44.25,45.00]},{ x:'02/15/2024',y:[45.35,46.40,45.10,46.30]},{ x:'02/16/2024',y:[45.80,46.45,43.85,44.10]},{ x:'02/19/2024',y:[44.30,45.50,44.15,45.35]},{ x:'02/20/2024',y:[45.45,45.45,43.60,44.00]},{ x:'02/21/2024',y:[43.80,44.90,43.80,44.40]},{ x:'02/22/2024',y:[45.45,48.10,44.65,45.40]},{ x:'02/23/2024',y:[45.60,47.45,44.70,46.75]},{ x:'02/26/2024',y:[47.00,48.65,46.40,48.15]},{ x:'02/27/2024',y:[48.30,48.80,47.15,48.40]},{ x:'02/29/2024',y:[48.55,52.10,48.05,51.90]},{ x:'03/01/2024',y:[52.20,53.80,51.40,53.40]},{ x:'03/04/2024',y:[54.00,55.00,52.60,53.00]},{ x:'03/05/2024',y:[53.30,54.00,51.80,52.20]},{ x:'03/06/2024',y:[52.50,54.70,51.80,53.00]},{ x:'03/07/2024',y:[53.50,53.70,51.80,52.50]},{ x:'03/08/2024',y:[52.40,52.50,49.85,50.00]},{ x:'03/11/2024',y:[51.90,52.10,50.00,51.10]},{ x:'03/12/2024',y:[50.20,51.10,49.25,49.40]},{ x:'03/13/2024',y:[49.50,50.30,48.40,48.65]},{ x:'03/14/2024',y:[48.55,49.25,48.20,48.35]},{ x:'03/15/2024',y:[48.00,48.70,46.80,47.10]},{ x:'03/18/2024',y:[47.45,48.45,47.20,48.20]},{ x:'03/19/2024',y:[48.35,49.45,47.65,47.65]},{ x:'03/20/2024',y:[48.45,48.80,47.00,47.15]},{ x:'03/21/2024',y:[47.65,49.70,47.50,49.25]},{ x:'03/22/2024',y:[49.70,49.80,48.25,49.10]},{ x:'03/25/2024',y:[49.55,52.30,49.10,52.10]},{ x:'03/26/2024',y:[53.90,57.30,53.60,57.30]},{ x:'03/27/2024',y:[57.20,58.50,55.00,55.00]},{ x:'03/28/2024',y:[55.90,60.00,55.80,57.70]},{ x:'03/29/2024',y:[58.50,59.20,56.50,56.50]},{ x:'04/01/2024',y:[57.00,57.30,55.30,56.30]},{ x:'04/02/2024',y:[57.40,58.40,56.50,56.90]},{ x:'04/03/2024',y:[56.30,57.00,55.60,55.80]},{ x:'04/08/2024',y:[55.90,57.20,55.50,55.50]},{ x:'04/09/2024',y:[55.60,56.80,54.20,56.50]},{ x:'04/10/2024',y:[56.80,56.90,55.40,55.60]},{ x:'04/11/2024',y:[55.10,57.70,55.10,56.10]},{ x:'04/12/2024',y:[56.10,61.70,55.30,60.50]},{ x:'04/15/2024',y:[61.00,64.80,59.00,61.40]},{ x:'04/16/2024',y:[60.10,60.80,57.80,58.50]},{ x:'04/17/2024',y:[59.50,64.30,59.30,64.30]},{ x:'04/18/2024',y:[65.00,67.70,63.50,64.40]},{ x:'04/19/2024',y:[67.00,70.70,62.80,69.10]},{ x:'04/22/2024',y:[71.00,72.50,65.40,65.40]},{ x:'04/23/2024',y:[66.40,67.90,63.10,64.10]},{ x:'04/24/2024',y:[66.50,70.00,66.40,68.40]},{ x:'04/25/2024',y:[68.60,69.50,67.40,69.00]},{ x:'04/26/2024',y:[70.00,70.20,67.20,67.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2371 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());