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:'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]},{ x:'02/16/2023',y:[64.00,64.40,62.60,63.00]},{ x:'02/17/2023',y:[62.50,63.50,62.20,63.50]},{ x:'02/20/2023',y:[64.20,64.70,63.60,63.80]},{ x:'02/21/2023',y:[64.40,67.10,63.30,63.30]},{ x:'02/22/2023',y:[62.60,64.00,61.10,63.30]},{ x:'02/23/2023',y:[64.20,65.60,63.50,63.70]},{ x:'02/24/2023',y:[64.00,64.10,62.00,62.40]},{ x:'03/01/2023',y:[62.70,65.50,62.60,63.50]},{ x:'03/02/2023',y:[63.70,67.40,63.70,65.90]},{ x:'03/03/2023',y:[66.60,67.60,65.00,66.10]},{ x:'03/06/2023',y:[65.80,66.70,65.50,66.30]},{ x:'03/07/2023',y:[67.30,67.60,65.90,66.50]},{ x:'03/08/2023',y:[65.60,66.60,65.30,66.00]},{ x:'03/09/2023',y:[66.60,66.70,63.80,64.50]},{ x:'03/10/2023',y:[63.50,64.20,60.90,60.90]},{ x:'03/13/2023',y:[60.20,61.00,58.50,59.70]},{ x:'03/14/2023',y:[59.20,60.00,58.80,59.10]},{ x:'03/15/2023',y:[60.50,63.10,60.40,62.10]},{ x:'03/16/2023',y:[61.30,61.40,57.60,59.40]},{ x:'03/17/2023',y:[60.60,62.70,60.60,62.00]},{ x:'03/20/2023',y:[62.50,64.30,62.30,63.00]} ] }], 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());