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/02/2023',y:[28.30,28.50,28.00,28.05]},{ x:'11/03/2023',y:[28.50,28.50,28.00,28.40]},{ x:'11/06/2023',y:[28.35,28.70,28.20,28.45]},{ x:'11/07/2023',y:[28.55,28.55,28.20,28.35]},{ x:'11/08/2023',y:[28.45,28.45,25.75,27.30]},{ x:'11/09/2023',y:[27.35,27.35,25.75,26.30]},{ x:'11/10/2023',y:[26.50,28.90,26.50,28.40]},{ x:'11/13/2023',y:[28.40,28.40,27.70,28.20]},{ x:'11/14/2023',y:[28.00,28.85,28.00,28.20]},{ x:'11/15/2023',y:[28.20,28.45,28.00,28.10]},{ x:'11/16/2023',y:[28.10,28.65,28.00,28.45]},{ x:'11/17/2023',y:[28.35,28.75,28.25,28.40]},{ x:'11/20/2023',y:[28.55,29.85,28.55,29.50]},{ x:'11/21/2023',y:[29.75,32.00,29.55,32.00]},{ x:'11/22/2023',y:[32.30,35.20,32.30,35.20]},{ x:'11/23/2023',y:[35.20,36.35,33.50,36.35]},{ x:'11/24/2023',y:[37.00,39.30,36.70,38.00]},{ x:'11/27/2023',y:[38.30,39.10,37.15,37.20]},{ x:'11/28/2023',y:[37.60,38.00,35.65,37.60]},{ x:'11/29/2023',y:[38.00,41.05,37.60,41.00]},{ x:'11/30/2023',y:[40.50,40.95,38.50,40.00]},{ x:'12/01/2023',y:[39.95,44.00,39.90,44.00]},{ x:'12/04/2023',y:[46.00,48.40,46.00,48.40]},{ x:'12/05/2023',y:[49.60,52.10,47.10,51.40]},{ x:'12/06/2023',y:[50.80,53.40,49.10,53.20]},{ x:'12/07/2023',y:[53.20,56.80,53.00,56.00]},{ x:'12/08/2023',y:[55.50,55.50,50.40,52.00]},{ x:'12/11/2023',y:[50.80,52.00,49.70,51.40]},{ x:'12/12/2023',y:[51.40,52.80,51.40,52.70]},{ x:'12/18/2023',y:[65.00,68.50,65.00,68.50]},{ x:'12/19/2023',y:[72.70,74.00,64.80,71.50]},{ x:'01/10/2024',y:[39.65,40.30,37.85,38.25]},{ x:'01/11/2024',y:[38.80,42.05,38.55,42.05]},{ x:'01/12/2024',y:[43.05,46.25,42.05,46.25]},{ x:'01/15/2024',y:[50.60,50.80,49.70,50.80]},{ x:'01/16/2024',y:[54.00,55.00,50.00,53.90]},{ x:'01/17/2024',y:[53.80,54.40,48.60,51.60]},{ x:'01/18/2024',y:[51.00,51.20,49.50,49.75]},{ x:'01/19/2024',y:[51.00,53.00,50.50,51.90]},{ x:'01/22/2024',y:[53.00,53.00,50.50,50.70]},{ x:'01/23/2024',y:[50.80,51.70,50.00,51.00]},{ x:'01/24/2024',y:[51.00,52.00,50.50,51.30]},{ x:'01/25/2024',y:[51.50,52.00,49.50,49.90]},{ x:'01/26/2024',y:[51.50,51.50,50.00,50.70]},{ x:'01/29/2024',y:[50.40,52.50,50.40,52.10]},{ x:'01/30/2024',y:[52.40,57.30,51.50,57.30]},{ x:'01/31/2024',y:[58.00,62.50,58.00,62.40]},{ x:'02/01/2024',y:[61.50,61.70,57.70,58.70]},{ x:'02/02/2024',y:[57.50,57.50,53.20,54.20]},{ x:'02/05/2024',y:[51.90,52.00,49.70,50.50]},{ x:'02/15/2024',y:[45.50,48.85,45.45,45.85]},{ x:'02/16/2024',y:[45.50,48.15,45.45,47.40]},{ x:'02/19/2024',y:[50.00,51.60,48.00,51.30]},{ x:'02/20/2024',y:[51.20,51.30,48.20,48.60]},{ x:'02/21/2024',y:[48.00,48.60,47.20,47.70]},{ x:'02/22/2024',y:[47.70,48.50,47.50,47.60]},{ x:'02/23/2024',y:[47.85,49.25,47.70,48.10]},{ x:'02/26/2024',y:[48.90,49.90,48.10,49.35]},{ x:'02/27/2024',y:[49.40,49.50,47.75,47.85]},{ x:'02/29/2024',y:[48.00,48.00,46.00,46.75]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5210 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());