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/01/2022',y:[12.38,12.48,12.36,12.37]},{ x:'12/02/2022',y:[12.26,12.39,12.24,12.36]},{ x:'12/05/2022',y:[12.39,12.49,12.39,12.39]},{ x:'12/06/2022',y:[12.36,12.36,12.18,12.18]},{ x:'12/07/2022',y:[12.11,12.18,12.02,12.02]},{ x:'12/08/2022',y:[12.01,12.01,11.85,11.91]},{ x:'12/09/2022',y:[12.00,12.11,11.98,12.07]},{ x:'12/12/2022',y:[12.01,12.01,11.88,11.97]},{ x:'12/13/2022',y:[12.04,12.04,11.89,11.89]},{ x:'12/14/2022',y:[11.92,12.07,11.92,12.07]},{ x:'12/15/2022',y:[12.05,12.07,11.99,12.06]},{ x:'12/16/2022',y:[11.83,11.87,11.77,11.83]},{ x:'12/19/2022',y:[11.76,11.82,11.74,11.77]},{ x:'12/20/2022',y:[11.77,11.78,11.51,11.51]},{ x:'12/21/2022',y:[11.53,11.59,11.50,11.51]},{ x:'12/22/2022',y:[11.64,11.69,11.63,11.66]},{ x:'12/23/2022',y:[11.55,11.55,11.47,11.50]},{ x:'12/26/2022',y:[11.50,11.52,11.48,11.52]},{ x:'12/27/2022',y:[11.55,11.64,11.54,11.56]},{ x:'12/28/2022',y:[11.46,11.46,11.30,11.38]},{ x:'12/29/2022',y:[11.27,11.35,11.23,11.34]},{ x:'12/30/2022',y:[11.48,11.50,11.40,11.40]},{ x:'01/03/2023',y:[11.36,11.50,11.28,11.50]},{ x:'01/04/2023',y:[11.47,11.51,11.46,11.46]},{ x:'01/05/2023',y:[11.53,11.58,11.47,11.48]},{ x:'01/06/2023',y:[11.48,11.62,11.48,11.61]},{ x:'01/09/2023',y:[11.78,11.94,11.76,11.94]},{ x:'01/10/2023',y:[11.96,12.03,11.95,12.00]},{ x:'01/11/2023',y:[12.05,12.07,11.98,12.02]},{ x:'01/12/2023',y:[12.09,12.09,11.96,11.96]},{ x:'01/13/2023',y:[12.14,12.19,11.99,12.00]},{ x:'01/16/2023',y:[12.09,12.16,12.07,12.09]},{ x:'01/17/2023',y:[12.10,12.10,12.05,12.09]},{ x:'01/30/2023',y:[12.57,12.60,12.50,12.58]},{ x:'01/31/2023',y:[12.58,12.60,12.45,12.45]},{ x:'02/01/2023',y:[12.54,12.58,12.49,12.57]},{ x:'02/02/2023',y:[12.71,12.83,12.71,12.80]},{ x:'02/03/2023',y:[12.83,12.85,12.74,12.82]},{ x:'02/06/2023',y:[12.78,12.78,12.68,12.68]},{ x:'02/07/2023',y:[12.68,12.68,12.60,12.65]},{ x:'02/08/2023',y:[12.75,12.87,12.75,12.85]},{ x:'02/09/2023',y:[12.83,12.87,12.79,12.86]},{ x:'02/10/2023',y:[12.83,12.85,12.80,12.85]},{ x:'02/13/2023',y:[12.84,12.84,12.73,12.77]},{ x:'02/14/2023',y:[12.86,12.91,12.85,12.86]},{ x:'02/15/2023',y:[12.77,12.78,12.65,12.67]},{ x:'02/16/2023',y:[12.74,12.85,12.74,12.81]},{ x:'02/17/2023',y:[12.76,12.76,12.65,12.71]},{ x:'02/20/2023',y:[12.71,12.80,12.70,12.75]},{ x:'02/21/2023',y:[12.76,12.81,12.76,12.78]},{ x:'02/22/2023',y:[12.69,12.69,12.58,12.62]},{ x:'02/23/2023',y:[12.69,12.87,12.69,12.84]},{ x:'02/24/2023',y:[12.89,12.92,12.75,12.75]},{ x:'03/01/2023',y:[12.62,12.86,12.54,12.85]},{ x:'03/02/2023',y:[12.86,12.86,12.71,12.82]},{ x:'03/03/2023',y:[12.87,12.96,12.83,12.85]},{ x:'03/06/2023',y:[12.90,13.06,12.90,13.03]},{ x:'03/07/2023',y:[13.03,13.14,13.02,13.12]},{ x:'03/08/2023',y:[13.04,13.04,12.98,13.04]},{ x:'03/09/2023',y:[13.07,13.14,13.01,13.01]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00901 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());