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/27/2022',y:[44.50,44.70,44.00,44.20]},{ x:'12/28/2022',y:[44.10,44.40,43.50,43.50]},{ x:'12/29/2022',y:[43.55,43.90,43.20,43.60]},{ x:'12/30/2022',y:[43.65,44.00,43.45,43.55]},{ x:'01/03/2023',y:[43.60,43.80,43.10,43.65]},{ x:'01/04/2023',y:[43.85,44.00,43.50,43.85]},{ x:'01/05/2023',y:[44.00,44.50,43.85,43.85]},{ x:'01/06/2023',y:[44.20,44.20,43.95,44.10]},{ x:'01/09/2023',y:[44.60,44.75,44.15,44.55]},{ x:'01/10/2023',y:[44.80,45.75,44.60,45.65]},{ x:'01/11/2023',y:[45.70,45.75,45.20,45.55]},{ x:'01/12/2023',y:[45.50,45.65,44.80,44.85]},{ x:'01/13/2023',y:[45.00,45.90,44.40,45.75]},{ x:'01/16/2023',y:[45.80,47.10,45.60,46.10]},{ x:'01/17/2023',y:[46.10,46.30,45.85,45.90]},{ x:'01/30/2023',y:[46.15,46.70,46.05,46.60]},{ x:'01/31/2023',y:[46.60,49.45,46.60,48.95]},{ x:'02/01/2023',y:[50.30,53.70,49.50,53.20]},{ x:'02/02/2023',y:[54.50,55.20,53.10,53.60]},{ x:'02/03/2023',y:[52.80,54.60,52.30,53.10]},{ x:'02/06/2023',y:[53.80,56.00,53.00,53.70]},{ x:'02/07/2023',y:[53.80,55.50,53.60,55.50]},{ x:'02/08/2023',y:[55.50,55.70,54.70,55.40]},{ x:'02/09/2023',y:[55.30,56.40,53.30,54.00]},{ x:'02/10/2023',y:[54.00,54.30,52.90,53.20]},{ x:'02/13/2023',y:[52.80,55.60,52.80,55.60]},{ x:'02/14/2023',y:[56.80,57.30,54.20,55.00]},{ x:'02/15/2023',y:[54.50,56.50,54.30,54.80]},{ x:'02/16/2023',y:[55.30,55.90,54.50,55.50]},{ x:'02/17/2023',y:[55.30,61.00,55.10,61.00]},{ x:'02/20/2023',y:[62.30,63.50,59.10,60.10]},{ x:'02/21/2023',y:[59.80,60.60,58.70,59.10]},{ x:'02/22/2023',y:[58.70,60.60,56.10,58.40]},{ x:'02/23/2023',y:[58.40,61.40,57.70,60.70]},{ x:'02/24/2023',y:[60.70,61.00,59.40,60.00]},{ x:'03/01/2023',y:[59.70,61.60,58.90,61.20]},{ x:'03/02/2023',y:[62.00,63.50,60.30,62.50]},{ x:'03/03/2023',y:[63.20,66.90,62.80,66.70]},{ x:'03/06/2023',y:[67.20,68.50,63.50,68.20]},{ x:'03/07/2023',y:[68.50,70.00,67.60,70.00]},{ x:'03/08/2023',y:[69.60,74.80,69.30,73.30]},{ x:'03/09/2023',y:[73.00,74.30,70.10,70.30]},{ x:'03/10/2023',y:[68.90,70.10,64.60,66.40]},{ x:'03/13/2023',y:[66.90,68.40,63.50,67.10]},{ x:'03/14/2023',y:[66.50,68.90,66.00,66.60]},{ x:'03/15/2023',y:[67.50,70.50,67.30,70.00]},{ x:'03/16/2023',y:[69.80,73.20,67.40,68.30]},{ x:'03/17/2023',y:[71.00,71.60,66.90,69.00]},{ x:'03/20/2023',y:[68.20,69.30,67.80,69.00]},{ x:'03/21/2023',y:[69.00,70.70,68.60,70.00]},{ x:'03/22/2023',y:[70.30,72.00,70.00,70.70]},{ x:'03/23/2023',y:[70.80,71.00,67.50,69.20]},{ x:'03/24/2023',y:[69.20,69.20,66.20,66.20]},{ x:'03/27/2023',y:[66.20,67.00,64.40,65.10]},{ x:'03/28/2023',y:[65.00,65.10,62.60,63.50]},{ x:'03/29/2023',y:[63.40,64.50,63.10,64.30]},{ x:'03/30/2023',y:[64.70,68.00,64.20,66.90]},{ x:'03/31/2023',y:[67.20,69.70,66.40,69.00]},{ x:'04/06/2023',y:[69.50,71.50,69.20,70.60]},{ x:'04/07/2023',y:[71.40,71.90,69.80,70.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4164 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());