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:'11/09/2023',y:[39.35,39.70,38.55,38.75]},{ x:'11/10/2023',y:[38.80,40.20,38.75,40.00]},{ x:'11/13/2023',y:[40.00,40.30,39.25,39.45]},{ x:'11/14/2023',y:[39.45,39.75,39.10,39.65]},{ x:'11/15/2023',y:[39.85,41.00,39.60,40.30]},{ x:'11/16/2023',y:[40.35,40.50,39.90,40.35]},{ x:'11/17/2023',y:[40.45,40.90,40.35,40.75]},{ x:'11/20/2023',y:[40.75,40.90,40.15,40.55]},{ x:'11/21/2023',y:[40.50,40.70,39.95,40.50]},{ x:'11/22/2023',y:[40.10,40.60,40.05,40.50]},{ x:'11/23/2023',y:[40.30,41.00,40.30,40.85]},{ x:'11/24/2023',y:[40.80,41.15,40.45,40.95]},{ x:'11/27/2023',y:[40.80,41.20,40.25,40.95]},{ x:'11/28/2023',y:[40.80,40.95,40.45,40.85]},{ x:'11/29/2023',y:[40.70,41.55,40.50,41.45]},{ x:'11/30/2023',y:[41.30,45.15,41.30,44.00]},{ x:'12/01/2023',y:[43.70,44.40,42.40,43.15]},{ x:'12/04/2023',y:[44.95,47.45,44.15,47.45]},{ x:'12/05/2023',y:[47.60,50.80,46.00,49.80]},{ x:'12/06/2023',y:[49.85,53.60,48.10,50.20]},{ x:'12/07/2023',y:[51.70,54.00,50.30,53.30]},{ x:'12/08/2023',y:[54.00,56.80,52.80,54.50]},{ x:'12/11/2023',y:[56.50,59.90,55.20,59.90]},{ x:'12/12/2023',y:[63.90,65.80,56.60,59.40]},{ x:'12/18/2023',y:[50.60,52.70,50.10,52.70]},{ x:'12/19/2023',y:[52.50,55.90,52.50,55.00]},{ x:'01/10/2024',y:[47.15,47.50,45.60,45.60]},{ x:'01/11/2024',y:[46.40,49.10,45.90,48.10]},{ x:'01/12/2024',y:[48.20,50.70,48.20,48.60]},{ x:'01/15/2024',y:[50.20,50.20,48.75,48.95]},{ x:'01/16/2024',y:[49.00,49.00,47.45,48.05]},{ x:'01/17/2024',y:[48.05,48.20,47.10,48.00]},{ x:'01/18/2024',y:[48.05,48.50,47.35,47.90]},{ x:'01/19/2024',y:[48.25,48.60,47.55,47.55]},{ x:'01/22/2024',y:[47.60,49.45,47.60,48.80]},{ x:'01/23/2024',y:[48.90,50.00,48.90,49.60]},{ x:'01/24/2024',y:[49.60,49.60,48.15,48.30]},{ x:'01/25/2024',y:[48.30,48.55,47.85,48.15]},{ x:'01/26/2024',y:[48.15,49.50,48.00,48.15]},{ x:'01/29/2024',y:[48.35,49.50,48.35,49.50]},{ x:'01/30/2024',y:[50.00,50.60,49.35,49.95]},{ x:'01/31/2024',y:[49.90,51.00,49.70,50.20]},{ x:'02/01/2024',y:[50.60,51.10,50.20,50.70]},{ x:'02/02/2024',y:[50.80,51.70,50.80,51.50]},{ x:'02/05/2024',y:[52.20,54.00,51.80,53.10]},{ x:'02/15/2024',y:[55.00,58.20,54.50,56.30]},{ x:'02/16/2024',y:[56.30,58.60,54.60,57.80]},{ x:'02/19/2024',y:[57.80,58.20,57.00,57.40]},{ x:'02/20/2024',y:[57.40,59.20,57.40,58.00]},{ x:'02/21/2024',y:[58.00,58.80,57.40,58.30]},{ x:'02/22/2024',y:[58.80,59.30,58.00,58.10]},{ x:'02/23/2024',y:[58.10,58.80,58.10,58.20]},{ x:'02/26/2024',y:[58.60,59.90,58.40,58.70]},{ x:'02/27/2024',y:[58.70,59.70,58.30,59.10]},{ x:'02/29/2024',y:[60.60,64.50,59.60,63.60]},{ x:'03/01/2024',y:[63.60,65.80,63.20,65.50]},{ x:'03/04/2024',y:[65.80,68.40,65.80,68.20]},{ x:'03/05/2024',y:[68.00,68.00,61.40,64.10]},{ x:'03/06/2024',y:[62.90,63.90,61.40,61.50]},{ x:'03/07/2024',y:[62.00,67.20,62.00,65.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1591 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());