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:'03/16/2023',y:[35.56,35.61,35.52,35.55]},{ x:'03/17/2023',y:[35.65,35.65,35.56,35.62]},{ x:'03/20/2023',y:[35.47,35.54,35.47,35.48]},{ x:'03/21/2023',y:[35.48,35.48,35.44,35.48]},{ x:'03/22/2023',y:[35.55,35.59,35.55,35.55]},{ x:'03/23/2023',y:[35.48,35.57,35.43,35.49]},{ x:'03/24/2023',y:[35.45,35.49,35.45,35.46]},{ x:'03/27/2023',y:[35.46,35.50,35.40,35.45]},{ x:'03/28/2023',y:[35.38,35.50,35.36,35.50]},{ x:'03/29/2023',y:[35.49,35.50,35.49,35.50]},{ x:'03/30/2023',y:[35.54,35.68,35.54,35.68]},{ x:'03/31/2023',y:[35.67,35.83,35.67,35.80]},{ x:'04/06/2023',y:[36.25,36.25,36.15,36.22]},{ x:'04/07/2023',y:[36.13,36.13,36.04,36.04]},{ x:'04/10/2023',y:[35.80,36.02,35.80,36.00]},{ x:'04/11/2023',y:[36.05,36.12,36.05,36.12]},{ x:'04/12/2023',y:[36.25,36.25,36.08,36.15]},{ x:'04/13/2023',y:[36.18,36.18,36.16,36.16]},{ x:'04/14/2023',y:[36.12,36.16,36.12,36.12]},{ x:'04/17/2023',y:[36.14,36.20,36.14,36.15]},{ x:'04/18/2023',y:[36.02,36.12,36.02,36.05]},{ x:'04/19/2023',y:[36.04,36.13,36.04,36.13]},{ x:'04/20/2023',y:[36.15,36.25,36.15,36.25]},{ x:'04/21/2023',y:[35.57,35.63,35.53,35.63]},{ x:'04/24/2023',y:[35.75,35.75,35.72,35.74]},{ x:'04/25/2023',y:[35.90,35.90,35.77,35.81]},{ x:'04/26/2023',y:[35.82,35.88,35.82,35.88]},{ x:'04/27/2023',y:[35.80,35.81,35.80,35.81]},{ x:'04/28/2023',y:[35.89,35.89,35.85,35.86]},{ x:'05/02/2023',y:[35.93,35.96,35.93,35.96]},{ x:'05/03/2023',y:[35.76,35.82,35.76,35.82]},{ x:'05/04/2023',y:[35.82,35.82,35.76,35.76]},{ x:'05/05/2023',y:[35.69,35.69,35.62,35.64]},{ x:'05/08/2023',y:[35.68,35.70,35.61,35.65]},{ x:'05/09/2023',y:[35.63,35.69,35.61,35.61]},{ x:'05/10/2023',y:[35.65,35.65,35.65,35.65]},{ x:'05/11/2023',y:[35.70,35.70,35.69,35.69]},{ x:'05/12/2023',y:[35.70,35.77,35.70,35.75]},{ x:'05/15/2023',y:[35.75,35.75,35.71,35.75]},{ x:'05/16/2023',y:[35.80,35.82,35.75,35.82]},{ x:'05/17/2023',y:[35.79,35.79,35.77,35.78]},{ x:'05/18/2023',y:[35.78,35.78,35.73,35.76]},{ x:'05/19/2023',y:[35.62,35.68,35.59,35.59]},{ x:'05/22/2023',y:[35.59,35.60,35.58,35.58]},{ x:'05/23/2023',y:[35.73,35.78,35.71,35.71]},{ x:'05/24/2023',y:[35.78,35.88,35.70,35.88]},{ x:'05/25/2023',y:[35.88,35.88,35.70,35.70]},{ x:'05/26/2023',y:[35.71,35.80,35.71,35.75]},{ x:'05/29/2023',y:[35.61,35.61,35.54,35.60]},{ x:'05/30/2023',y:[35.55,35.66,35.47,35.48]},{ x:'05/31/2023',y:[35.68,35.80,35.68,35.80]},{ x:'06/01/2023',y:[35.68,35.72,35.68,35.72]},{ x:'06/02/2023',y:[35.72,35.75,35.72,35.74]},{ x:'06/05/2023',y:[35.81,35.94,35.81,35.85]},{ x:'06/06/2023',y:[35.93,35.93,35.89,35.89]},{ x:'06/07/2023',y:[35.91,35.94,35.90,35.94]},{ x:'06/08/2023',y:[35.96,35.96,35.89,35.92]},{ x:'06/09/2023',y:[35.93,35.95,35.93,35.95]},{ x:'06/12/2023',y:[35.98,36.00,35.98,36.00]},{ x:'06/13/2023',y:[36.03,36.03,36.00,36.01]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00741b 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());