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/26/2022',y:[10.58,10.58,10.51,10.52]},{ x:'12/27/2022',y:[10.52,10.65,10.52,10.57]},{ x:'12/28/2022',y:[10.53,10.53,10.35,10.35]},{ x:'12/29/2022',y:[10.32,10.41,10.26,10.36]},{ x:'12/30/2022',y:[10.45,10.49,10.39,10.39]},{ x:'01/03/2023',y:[10.40,10.48,10.32,10.46]},{ x:'01/04/2023',y:[10.46,10.48,10.40,10.42]},{ x:'01/05/2023',y:[10.50,10.54,10.43,10.45]},{ x:'01/06/2023',y:[10.50,10.62,10.47,10.60]},{ x:'01/09/2023',y:[10.72,10.78,10.66,10.78]},{ x:'01/10/2023',y:[10.78,10.84,10.76,10.81]},{ x:'01/11/2023',y:[10.83,10.86,10.80,10.84]},{ x:'01/12/2023',y:[10.85,10.86,10.76,10.76]},{ x:'01/13/2023',y:[10.81,10.85,10.70,10.72]},{ x:'01/16/2023',y:[10.74,10.77,10.71,10.71]},{ x:'01/17/2023',y:[10.71,10.75,10.71,10.75]},{ x:'01/30/2023',y:[10.89,11.00,10.87,11.00]},{ x:'01/31/2023',y:[11.00,11.05,10.98,11.00]},{ x:'02/01/2023',y:[11.04,11.11,11.04,11.10]},{ x:'02/02/2023',y:[11.16,11.29,11.16,11.28]},{ x:'02/03/2023',y:[11.30,11.36,11.24,11.33]},{ x:'02/06/2023',y:[11.32,11.32,11.17,11.17]},{ x:'02/07/2023',y:[11.16,11.23,11.15,11.21]},{ x:'02/08/2023',y:[11.27,11.41,11.27,11.37]},{ x:'02/09/2023',y:[11.34,11.37,11.31,11.35]},{ x:'02/10/2023',y:[11.33,11.33,11.27,11.29]},{ x:'02/13/2023',y:[11.29,11.29,11.15,11.19]},{ x:'02/14/2023',y:[11.24,11.33,11.24,11.31]},{ x:'02/15/2023',y:[11.30,11.30,11.20,11.21]},{ x:'02/16/2023',y:[11.16,11.18,11.12,11.16]},{ x:'02/17/2023',y:[11.12,11.12,11.06,11.08]},{ x:'02/20/2023',y:[11.08,11.18,11.08,11.14]},{ x:'02/21/2023',y:[11.15,11.28,11.15,11.27]},{ x:'02/22/2023',y:[11.16,11.21,11.15,11.18]},{ x:'02/23/2023',y:[11.20,11.40,11.20,11.36]},{ x:'02/24/2023',y:[11.38,11.47,11.36,11.37]},{ x:'03/01/2023',y:[11.35,11.40,11.25,11.38]},{ x:'03/02/2023',y:[11.39,11.48,11.39,11.46]},{ x:'03/03/2023',y:[11.50,11.58,11.50,11.57]},{ x:'03/06/2023',y:[11.65,11.76,11.64,11.73]},{ x:'03/07/2023',y:[11.73,11.84,11.69,11.81]},{ x:'03/08/2023',y:[11.76,11.78,11.70,11.76]},{ x:'03/09/2023',y:[11.80,11.83,11.78,11.79]},{ x:'03/10/2023',y:[11.73,11.75,11.64,11.65]},{ x:'03/13/2023',y:[11.56,11.66,11.47,11.64]},{ x:'03/14/2023',y:[11.55,11.59,11.50,11.53]},{ x:'03/15/2023',y:[11.59,11.69,11.52,11.52]},{ x:'03/16/2023',y:[11.50,11.50,11.40,11.42]},{ x:'03/17/2023',y:[11.48,11.59,11.48,11.59]},{ x:'03/20/2023',y:[11.61,11.66,11.57,11.59]},{ x:'03/21/2023',y:[11.64,11.69,11.60,11.60]},{ x:'03/22/2023',y:[11.63,11.71,11.63,11.71]},{ x:'03/23/2023',y:[11.70,11.77,11.65,11.73]},{ x:'03/24/2023',y:[11.77,11.77,11.71,11.75]},{ x:'03/27/2023',y:[11.75,11.78,11.71,11.75]},{ x:'03/28/2023',y:[11.73,11.74,11.59,11.61]},{ x:'03/29/2023',y:[11.64,11.66,11.51,11.56]},{ x:'03/30/2023',y:[11.60,11.68,11.60,11.65]},{ x:'03/31/2023',y:[11.68,11.78,11.68,11.71]},{ x:'04/06/2023',y:[11.71,11.71,11.60,11.63]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00900 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());