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/15/2022',y:[19.47,19.47,19.42,19.43]},{ x:'11/16/2022',y:[19.15,19.26,19.07,19.26]},{ x:'11/17/2022',y:[18.87,18.90,18.83,18.87]},{ x:'11/18/2022',y:[18.92,18.97,18.90,18.90]},{ x:'11/21/2022',y:[19.03,19.05,18.98,18.98]},{ x:'11/22/2022',y:[19.00,19.02,18.95,18.98]},{ x:'11/23/2022',y:[18.78,18.78,18.73,18.75]},{ x:'11/24/2022',y:[18.41,18.46,18.39,18.44]},{ x:'11/25/2022',y:[18.39,18.39,18.29,18.29]},{ x:'11/28/2022',y:[18.49,18.49,18.32,18.32]},{ x:'11/29/2022',y:[18.32,18.46,18.32,18.45]},{ x:'11/30/2022',y:[18.57,18.64,18.57,18.61]},{ x:'12/01/2022',y:[18.43,18.45,18.38,18.38]},{ x:'12/02/2022',y:[18.00,18.02,17.94,18.02]},{ x:'12/05/2022',y:[17.91,17.91,17.81,17.84]},{ x:'12/06/2022',y:[17.86,17.89,17.84,17.89]},{ x:'12/07/2022',y:[17.76,17.83,17.75,17.83]},{ x:'12/08/2022',y:[17.39,17.45,17.39,17.43]},{ x:'12/09/2022',y:[17.40,17.40,17.28,17.32]},{ x:'12/12/2022',y:[17.79,17.79,17.67,17.71]},{ x:'12/13/2022',y:[17.73,17.79,17.73,17.79]},{ x:'12/14/2022',y:[17.56,17.58,17.52,17.57]},{ x:'12/15/2022',y:[17.61,17.62,17.57,17.58]},{ x:'12/16/2022',y:[17.50,17.60,17.46,17.58]},{ x:'12/19/2022',y:[17.68,17.75,17.67,17.75]},{ x:'12/20/2022',y:[17.95,18.26,17.91,18.23]},{ x:'12/21/2022',y:[18.30,18.33,18.23,18.24]},{ x:'12/22/2022',y:[18.11,18.11,18.05,18.10]},{ x:'12/23/2022',y:[18.23,18.25,18.21,18.25]},{ x:'12/26/2022',y:[18.36,18.40,18.30,18.39]},{ x:'12/27/2022',y:[18.37,18.39,18.33,18.39]},{ x:'12/28/2022',y:[18.74,18.75,18.70,18.75]},{ x:'12/29/2022',y:[18.85,18.89,18.84,18.86]},{ x:'12/30/2022',y:[18.70,18.75,18.69,18.75]},{ x:'01/03/2023',y:[18.77,18.82,18.77,18.80]},{ x:'01/04/2023',y:[18.55,18.55,18.44,18.45]},{ x:'01/05/2023',y:[18.36,18.40,18.34,18.40]},{ x:'01/06/2023',y:[18.36,18.36,18.30,18.32]},{ x:'01/09/2023',y:[18.08,18.08,18.00,18.05]},{ x:'01/10/2023',y:[17.89,17.92,17.87,17.90]},{ x:'01/11/2023',y:[18.08,18.12,18.02,18.07]},{ x:'01/12/2023',y:[17.95,17.95,17.78,17.82]},{ x:'01/13/2023',y:[17.67,17.71,17.64,17.67]},{ x:'01/16/2023',y:[17.67,17.76,17.66,17.76]},{ x:'01/17/2023',y:[17.83,17.87,17.82,17.83]},{ x:'01/30/2023',y:[17.68,17.71,17.58,17.58]},{ x:'01/31/2023',y:[17.65,17.70,17.65,17.69]},{ x:'02/01/2023',y:[17.59,17.62,17.56,17.60]},{ x:'02/02/2023',y:[17.34,17.34,17.27,17.34]},{ x:'02/03/2023',y:[17.27,17.27,17.18,17.20]},{ x:'02/06/2023',y:[17.60,17.64,17.57,17.57]},{ x:'02/07/2023',y:[17.67,17.71,17.66,17.69]},{ x:'02/08/2023',y:[17.78,17.81,17.77,17.80]},{ x:'02/09/2023',y:[17.80,17.83,17.80,17.82]},{ x:'02/10/2023',y:[17.97,17.97,17.93,17.95]},{ x:'02/13/2023',y:[18.19,18.21,18.15,18.18]},{ x:'02/14/2023',y:[18.04,18.04,18.00,18.01]},{ x:'02/15/2023',y:[18.01,18.06,18.01,18.04]},{ x:'02/16/2023',y:[18.30,18.30,18.23,18.26]},{ x:'02/17/2023',y:[18.59,18.67,18.57,18.65]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00681r 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());