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:'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]},{ x:'03/22/2023',y:[18.94,19.00,18.94,18.99]},{ x:'03/23/2023',y:[19.00,19.14,19.00,19.14]},{ x:'03/24/2023',y:[19.25,19.28,19.25,19.28]},{ x:'03/27/2023',y:[19.15,19.15,18.98,19.03]},{ x:'03/28/2023',y:[19.00,19.00,19.00,19.00]},{ x:'03/29/2023',y:[19.05,19.12,19.05,19.12]},{ x:'03/30/2023',y:[19.19,19.26,19.18,19.22]},{ x:'03/31/2023',y:[19.46,19.49,19.46,19.49]},{ x:'04/06/2023',y:[19.51,19.51,19.38,19.43]},{ x:'04/07/2023',y:[19.43,19.43,19.43,19.43]},{ x:'04/10/2023',y:[19.45,19.50,19.43,19.45]},{ x:'04/11/2023',y:[19.45,19.49,19.45,19.49]},{ x:'04/12/2023',y:[19.56,19.56,19.56,19.56]},{ x:'04/13/2023',y:[19.54,19.63,19.50,19.54]},{ x:'04/14/2023',y:[19.66,19.66,19.66,19.66]},{ x:'04/17/2023',y:[19.61,19.71,19.61,19.64]},{ x:'04/18/2023',y:[19.70,19.70,19.70,19.70]},{ x:'04/19/2023',y:[19.66,19.67,19.66,19.67]},{ x:'04/20/2023',y:[19.56,19.56,19.56,19.56]},{ x:'04/21/2023',y:[19.46,19.46,19.46,19.46]},{ x:'04/24/2023',y:[19.30,19.30,19.30,19.30]},{ x:'04/25/2023',y:[19.20,19.20,19.20,19.20]},{ x:'04/26/2023',y:[19.20,19.21,19.20,19.21]},{ x:'04/27/2023',y:[19.22,19.23,19.22,19.23]},{ x:'04/28/2023',y:[19.28,19.39,19.28,19.39]},{ x:'05/02/2023',y:[19.54,19.54,19.50,19.50]} ] }], 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());