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/11/2022',y:[42.35,42.60,40.70,41.35]},{ x:'11/14/2022',y:[41.80,42.50,40.60,41.00]},{ x:'11/15/2022',y:[41.35,42.15,41.30,41.60]},{ x:'11/16/2022',y:[41.95,42.00,41.05,41.20]},{ x:'11/17/2022',y:[41.45,44.75,41.45,43.80]},{ x:'11/18/2022',y:[43.95,44.35,43.00,44.10]},{ x:'11/21/2022',y:[44.20,44.30,43.10,44.10]},{ x:'11/22/2022',y:[44.35,45.65,43.55,45.65]},{ x:'11/23/2022',y:[45.65,45.65,43.00,43.00]},{ x:'11/24/2022',y:[43.00,43.50,41.85,43.05]},{ x:'11/25/2022',y:[43.05,43.45,41.80,41.80]},{ x:'11/28/2022',y:[41.20,42.55,41.20,41.85]},{ x:'11/29/2022',y:[41.85,42.95,41.50,42.30]},{ x:'11/30/2022',y:[42.50,43.40,42.35,42.60]},{ x:'12/01/2022',y:[43.40,44.50,43.10,43.40]},{ x:'12/02/2022',y:[44.00,47.70,43.60,46.90]},{ x:'12/05/2022',y:[47.50,51.00,47.20,50.20]},{ x:'12/06/2022',y:[49.70,51.10,49.25,50.00]},{ x:'12/07/2022',y:[50.50,51.50,47.30,48.90]},{ x:'12/08/2022',y:[47.80,48.50,47.35,47.65]},{ x:'12/09/2022',y:[48.10,48.70,46.20,46.80]},{ x:'12/12/2022',y:[47.20,48.50,46.30,47.85]},{ x:'12/13/2022',y:[48.20,49.30,47.35,47.45]},{ x:'12/14/2022',y:[48.25,52.00,47.60,49.35]},{ x:'12/15/2022',y:[49.70,51.90,49.55,51.70]},{ x:'12/16/2022',y:[50.70,51.90,50.20,50.70]},{ x:'12/19/2022',y:[50.30,50.80,49.55,49.55]},{ x:'12/20/2022',y:[49.60,51.10,47.25,47.50]},{ x:'12/21/2022',y:[48.50,49.90,47.70,48.60]},{ x:'12/22/2022',y:[49.35,49.75,47.90,47.90]},{ x:'12/23/2022',y:[47.20,48.95,47.20,48.70]},{ x:'12/26/2022',y:[49.00,49.40,48.50,49.15]},{ x:'12/27/2022',y:[49.80,50.50,49.10,49.10]},{ x:'12/28/2022',y:[49.65,51.10,49.15,49.70]},{ x:'12/29/2022',y:[49.00,50.50,48.65,48.85]},{ x:'12/30/2022',y:[49.55,49.85,48.65,48.65]},{ x:'01/03/2023',y:[49.05,53.50,48.80,53.30]},{ x:'01/04/2023',y:[53.00,56.00,51.50,51.80]},{ x:'01/05/2023',y:[53.60,56.50,52.80,55.10]},{ x:'01/06/2023',y:[57.30,57.70,54.00,57.00]},{ x:'01/09/2023',y:[56.40,57.00,54.70,56.60]},{ x:'01/10/2023',y:[56.20,56.50,55.20,55.80]},{ x:'01/11/2023',y:[55.70,57.20,54.50,54.70]},{ x:'01/12/2023',y:[54.60,55.10,53.30,53.30]},{ x:'01/13/2023',y:[53.80,54.70,53.30,53.40]},{ x:'01/16/2023',y:[53.80,54.40,52.10,54.20]},{ x:'01/17/2023',y:[54.40,55.90,54.00,54.00]},{ x:'01/30/2023',y:[55.00,57.70,53.20,57.00]},{ x:'01/31/2023',y:[56.80,58.90,56.40,58.50]},{ x:'02/01/2023',y:[58.90,61.00,57.50,58.70]},{ x:'02/02/2023',y:[58.90,60.30,58.30,58.30]},{ x:'02/03/2023',y:[58.80,59.50,56.90,57.60]},{ x:'02/06/2023',y:[58.00,60.00,57.90,59.90]},{ x:'02/07/2023',y:[59.90,61.60,59.40,61.60]},{ x:'02/08/2023',y:[62.40,65.90,60.70,60.70]},{ x:'02/09/2023',y:[60.00,61.70,59.10,61.00]},{ x:'02/10/2023',y:[60.80,61.90,59.60,60.00]},{ x:'02/13/2023',y:[60.00,60.80,59.60,60.20]},{ x:'02/14/2023',y:[61.10,62.50,60.20,61.70]},{ x:'02/15/2023',y:[61.40,64.00,61.30,63.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8171 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());