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/13/2022',y:[19.52,19.55,19.49,19.55]},{ x:'12/14/2022',y:[19.60,19.62,19.60,19.62]},{ x:'12/15/2022',y:[19.48,19.48,19.47,19.47]},{ x:'12/16/2022',y:[19.40,19.46,19.39,19.39]},{ x:'12/19/2022',y:[19.37,19.39,19.37,19.39]},{ x:'12/20/2022',y:[19.30,19.30,19.18,19.21]},{ x:'12/21/2022',y:[19.19,19.19,19.16,19.18]},{ x:'12/22/2022',y:[19.27,19.41,19.27,19.38]},{ x:'12/23/2022',y:[19.21,19.30,19.21,19.30]},{ x:'12/26/2022',y:[19.31,19.31,19.24,19.27]},{ x:'12/27/2022',y:[19.31,19.34,19.31,19.33]},{ x:'12/28/2022',y:[19.28,19.39,19.28,19.39]},{ x:'12/29/2022',y:[19.25,19.30,19.25,19.30]},{ x:'12/30/2022',y:[19.31,19.39,19.31,19.39]},{ x:'01/03/2023',y:[19.41,19.44,19.41,19.44]},{ x:'01/04/2023',y:[19.42,19.56,19.42,19.47]},{ x:'01/05/2023',y:[19.70,19.81,19.70,19.75]},{ x:'01/06/2023',y:[19.87,19.94,19.86,19.86]},{ x:'01/09/2023',y:[20.00,20.06,20.00,20.05]},{ x:'01/10/2023',y:[20.08,20.14,20.05,20.14]},{ x:'01/11/2023',y:[20.25,20.28,20.25,20.28]},{ x:'01/12/2023',y:[20.26,20.27,20.26,20.27]},{ x:'01/13/2023',y:[20.35,20.35,20.28,20.35]},{ x:'01/16/2023',y:[20.43,20.52,20.41,20.41]},{ x:'01/17/2023',y:[20.29,20.37,20.29,20.37]},{ x:'01/30/2023',y:[20.39,20.39,20.31,20.33]},{ x:'01/31/2023',y:[20.20,20.20,20.11,20.11]},{ x:'02/01/2023',y:[20.16,20.20,20.16,20.20]},{ x:'02/02/2023',y:[20.17,20.17,20.17,20.17]},{ x:'02/03/2023',y:[19.99,19.99,19.85,19.85]},{ x:'02/06/2023',y:[19.80,19.80,19.78,19.78]},{ x:'02/07/2023',y:[19.78,19.78,19.78,19.78]},{ x:'02/08/2023',y:[19.77,19.84,19.77,19.83]},{ x:'02/09/2023',y:[19.82,19.82,19.70,19.81]},{ x:'02/10/2023',y:[19.76,19.76,19.65,19.65]},{ x:'02/13/2023',y:[19.58,19.64,19.58,19.64]},{ x:'02/14/2023',y:[19.66,19.70,19.66,19.70]},{ x:'02/15/2023',y:[19.51,19.56,19.51,19.56]},{ x:'02/16/2023',y:[19.79,19.79,19.75,19.78]},{ x:'02/17/2023',y:[19.62,19.62,19.60,19.62]},{ x:'02/20/2023',y:[19.72,19.72,19.70,19.70]},{ x:'02/21/2023',y:[19.70,19.70,19.61,19.62]},{ x:'02/22/2023',y:[19.51,19.51,19.40,19.40]},{ x:'02/23/2023',y:[19.42,19.50,19.42,19.49]},{ x:'02/24/2023',y:[19.43,19.43,19.43,19.43]},{ x:'03/01/2023',y:[19.50,19.69,19.50,19.69]},{ x:'03/02/2023',y:[19.50,19.52,19.50,19.52]},{ x:'03/03/2023',y:[19.48,19.50,19.42,19.50]},{ x:'03/06/2023',y:[19.50,19.67,19.50,19.58]},{ x:'03/07/2023',y:[19.78,19.78,19.69,19.69]},{ x:'03/08/2023',y:[19.50,19.50,19.48,19.48]},{ x:'03/09/2023',y:[19.48,19.54,19.48,19.54]},{ x:'03/10/2023',y:[19.20,19.20,19.19,19.19]},{ x:'03/13/2023',y:[19.18,19.19,19.18,19.19]},{ x:'03/14/2023',y:[19.04,19.04,19.04,19.04]},{ x:'03/15/2023',y:[19.04,19.05,18.96,18.96]},{ x:'03/16/2023',y:[18.84,18.92,18.84,18.85]},{ x:'03/17/2023',y:[18.87,19.09,18.87,19.09]},{ x:'03/20/2023',y:[18.87,18.87,18.83,18.83]},{ x:'03/21/2023',y:[18.79,18.84,18.79,18.84]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00736 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());