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:[27.81,28.49,27.81,28.45]},{ x:'11/14/2022',y:[28.18,28.18,28.00,28.00]},{ x:'11/15/2022',y:[28.40,28.40,28.40,28.40]},{ x:'11/16/2022',y:[28.71,28.85,28.71,28.82]},{ x:'11/17/2022',y:[29.06,29.06,29.06,29.06]},{ x:'11/18/2022',y:[28.91,29.00,28.91,29.00]},{ x:'11/21/2022',y:[28.95,28.95,28.95,28.95]},{ x:'11/22/2022',y:[28.96,29.08,28.96,29.03]},{ x:'11/23/2022',y:[29.22,29.34,29.20,29.22]},{ x:'11/24/2022',y:[29.44,29.44,29.44,29.44]},{ x:'11/25/2022',y:[29.38,29.38,29.35,29.35]},{ x:'11/28/2022',y:[29.60,29.87,29.60,29.63]},{ x:'11/29/2022',y:[29.79,29.79,29.68,29.68]},{ x:'11/30/2022',y:[29.69,29.80,29.68,29.74]},{ x:'12/01/2022',y:[29.74,29.76,29.62,29.62]},{ x:'12/02/2022',y:[30.19,30.21,30.12,30.12]},{ x:'12/05/2022',y:[30.12,30.17,30.00,30.08]},{ x:'12/06/2022',y:[30.09,30.27,30.09,30.27]},{ x:'12/07/2022',y:[30.17,30.22,30.15,30.22]},{ x:'12/08/2022',y:[30.36,30.49,30.36,30.45]},{ x:'12/09/2022',y:[30.52,30.66,30.46,30.66]},{ x:'12/12/2022',y:[30.66,30.66,30.60,30.63]},{ x:'12/13/2022',y:[30.51,30.51,30.50,30.50]},{ x:'12/14/2022',y:[30.77,30.77,30.77,30.77]},{ x:'12/15/2022',y:[30.68,30.68,30.68,30.68]},{ x:'12/16/2022',y:[30.74,30.74,30.71,30.71]},{ x:'12/19/2022',y:[30.50,30.50,30.47,30.48]},{ x:'12/20/2022',y:[30.30,30.30,30.13,30.25]},{ x:'12/21/2022',y:[29.96,29.96,29.84,29.85]},{ x:'12/22/2022',y:[29.95,29.95,29.95,29.95]},{ x:'12/23/2022',y:[29.99,29.99,29.99,29.99]},{ x:'12/26/2022',y:[29.80,29.97,29.80,29.95]},{ x:'12/27/2022',y:[29.95,29.96,29.95,29.96]},{ x:'12/28/2022',y:[29.80,29.80,29.71,29.72]},{ x:'12/29/2022',y:[29.62,29.66,29.54,29.54]},{ x:'12/30/2022',y:[29.55,29.67,29.55,29.67]},{ x:'01/03/2023',y:[29.56,29.56,29.55,29.55]},{ x:'01/04/2023',y:[29.60,29.60,29.56,29.60]},{ x:'01/05/2023',y:[29.56,29.56,29.50,29.50]},{ x:'01/06/2023',y:[29.50,29.50,29.38,29.49]},{ x:'01/09/2023',y:[29.50,29.52,29.50,29.51]},{ x:'01/10/2023',y:[29.60,29.60,29.60,29.60]},{ x:'01/11/2023',y:[29.51,29.52,29.51,29.52]},{ x:'01/12/2023',y:[29.57,29.60,29.57,29.60]},{ x:'01/13/2023',y:[29.87,29.91,29.84,29.90]},{ x:'01/16/2023',y:[29.94,29.94,29.94,29.94]},{ x:'01/17/2023',y:[29.96,29.96,29.95,29.95]},{ x:'01/30/2023',y:[30.30,30.30,30.11,30.11]},{ x:'01/31/2023',y:[29.65,29.65,29.54,29.55]},{ x:'02/01/2023',y:[29.50,29.51,29.48,29.49]},{ x:'02/02/2023',y:[29.57,29.64,29.57,29.64]},{ x:'02/03/2023',y:[30.08,30.10,30.06,30.10]},{ x:'02/06/2023',y:[30.10,30.10,30.07,30.07]},{ x:'02/07/2023',y:[29.94,29.94,29.86,29.86]},{ x:'02/08/2023',y:[29.70,29.70,29.56,29.56]},{ x:'02/09/2023',y:[29.69,29.69,29.56,29.56]},{ x:'02/10/2023',y:[29.53,29.53,29.49,29.50]},{ x:'02/13/2023',y:[29.23,29.29,29.23,29.29]},{ x:'02/14/2023',y:[29.18,29.18,29.14,29.16]},{ x:'02/15/2023',y:[29.22,29.33,29.22,29.33]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00870b 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());