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/15/2022',y:[18.30,18.31,18.28,18.28]},{ x:'12/16/2022',y:[18.19,18.27,18.18,18.27]},{ x:'12/19/2022',y:[18.37,18.45,18.37,18.45]},{ x:'12/20/2022',y:[18.63,18.97,18.63,18.94]},{ x:'12/21/2022',y:[19.01,19.04,18.95,18.95]},{ x:'12/22/2022',y:[18.79,18.83,18.79,18.83]},{ x:'12/23/2022',y:[18.95,18.96,18.95,18.96]},{ x:'12/26/2022',y:[19.18,19.18,19.05,19.14]},{ x:'12/27/2022',y:[19.11,19.11,19.08,19.10]},{ x:'12/28/2022',y:[19.48,19.48,19.44,19.47]},{ x:'12/29/2022',y:[19.61,19.61,19.58,19.60]},{ x:'12/30/2022',y:[19.43,19.49,19.43,19.48]},{ x:'01/03/2023',y:[19.55,19.57,19.52,19.55]},{ x:'01/04/2023',y:[19.32,19.32,19.18,19.18]},{ x:'01/05/2023',y:[19.09,19.10,19.08,19.10]},{ x:'01/06/2023',y:[19.09,19.09,19.01,19.07]},{ x:'01/09/2023',y:[18.76,18.77,18.73,18.76]},{ x:'01/10/2023',y:[18.59,18.59,18.53,18.56]},{ x:'01/11/2023',y:[18.80,18.80,18.75,18.75]},{ x:'01/12/2023',y:[18.64,18.64,18.48,18.48]},{ x:'01/13/2023',y:[18.32,18.34,18.31,18.32]},{ x:'01/16/2023',y:[18.35,18.38,18.33,18.38]},{ x:'01/17/2023',y:[18.46,18.49,18.46,18.46]},{ x:'01/30/2023',y:[18.31,18.36,18.22,18.22]},{ x:'01/31/2023',y:[18.32,18.32,18.31,18.31]},{ x:'02/01/2023',y:[18.21,18.22,18.21,18.22]},{ x:'02/02/2023',y:[17.93,17.98,17.90,17.98]},{ x:'02/03/2023',y:[17.86,17.86,17.79,17.79]},{ x:'02/06/2023',y:[18.24,18.24,18.19,18.19]},{ x:'02/07/2023',y:[18.32,18.33,18.28,18.30]},{ x:'02/08/2023',y:[18.41,18.46,18.41,18.42]},{ x:'02/09/2023',y:[18.41,18.44,18.40,18.44]},{ x:'02/10/2023',y:[18.57,18.59,18.56,18.58]},{ x:'02/13/2023',y:[18.81,18.84,18.80,18.80]},{ x:'02/14/2023',y:[18.63,18.64,18.63,18.63]},{ x:'02/15/2023',y:[0.00,0.00,0.00,0.00]},{ x:'02/16/2023',y:[18.92,18.92,18.88,18.88]},{ x:'02/17/2023',y:[19.28,19.32,19.24,19.29]},{ x:'02/20/2023',y:[19.15,19.15,19.15,19.15]},{ x:'02/21/2023',y:[19.20,19.22,19.17,19.18]},{ x:'02/22/2023',y:[19.47,19.47,19.42,19.46]},{ x:'02/23/2023',y:[19.34,19.34,19.31,19.31]},{ x:'02/24/2023',y:[19.10,19.18,19.10,19.14]},{ x:'03/01/2023',y:[19.41,19.44,19.37,19.37]},{ x:'03/02/2023',y:[19.53,19.56,19.53,19.56]},{ x:'03/03/2023',y:[19.64,19.66,19.64,19.64]},{ x:'03/06/2023',y:[19.24,19.24,19.20,19.24]},{ x:'03/07/2023',y:[19.31,19.31,19.31,19.31]},{ x:'03/08/2023',y:[19.35,19.42,19.35,19.40]},{ x:'03/09/2023',y:[19.37,19.37,19.36,19.36]},{ x:'03/10/2023',y:[19.17,19.17,18.98,18.99]},{ x:'03/13/2023',y:[18.84,18.90,18.71,18.84]},{ x:'03/14/2023',y:[18.49,18.49,18.45,18.45]},{ x:'03/15/2023',y:[18.80,18.82,18.70,18.80]},{ x:'03/16/2023',y:[18.37,18.38,18.33,18.36]},{ x:'03/17/2023',y:[18.57,18.57,18.49,18.49]},{ x:'03/20/2023',y:[18.52,18.52,18.28,18.28]},{ x:'03/21/2023',y:[18.41,18.43,18.40,18.41]},{ x:'03/22/2023',y:[18.60,18.60,18.57,18.59]},{ x:'03/23/2023',y:[18.41,18.43,18.40,18.42]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00689r 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());