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/12/2024',y:[2.30,2.35,2.25,2.34]},{ x:'03/13/2024',y:[2.34,2.37,2.28,2.33]},{ x:'03/14/2024',y:[2.32,2.35,2.31,2.33]},{ x:'03/15/2024',y:[2.32,2.36,2.31,2.33]},{ x:'03/18/2024',y:[2.33,2.37,2.30,2.30]},{ x:'03/19/2024',y:[2.30,2.34,2.29,2.33]},{ x:'03/20/2024',y:[2.34,2.34,2.31,2.31]},{ x:'03/21/2024',y:[2.31,2.34,2.30,2.31]},{ x:'03/22/2024',y:[2.34,2.54,2.34,2.46]},{ x:'03/25/2024',y:[2.46,2.69,2.46,2.62]},{ x:'03/26/2024',y:[2.62,2.79,2.54,2.62]},{ x:'03/27/2024',y:[2.69,2.75,2.62,2.62]},{ x:'03/28/2024',y:[2.64,2.65,2.57,2.62]},{ x:'03/29/2024',y:[2.62,2.69,2.61,2.66]},{ x:'04/11/2024',y:[3.20,3.45,3.20,3.33]},{ x:'04/12/2024',y:[3.00,3.07,2.85,2.87]},{ x:'04/15/2024',y:[2.85,2.85,2.69,2.70]},{ x:'04/16/2024',y:[2.70,2.97,2.70,2.81]},{ x:'04/17/2024',y:[2.81,2.91,2.78,2.82]},{ x:'04/18/2024',y:[2.82,2.82,2.70,2.72]},{ x:'04/19/2024',y:[2.78,2.90,2.71,2.74]},{ x:'04/22/2024',y:[2.75,2.80,2.66,2.70]},{ x:'04/23/2024',y:[2.70,2.70,2.58,2.59]},{ x:'04/24/2024',y:[2.58,2.61,2.55,2.58]},{ x:'04/25/2024',y:[2.62,2.66,2.56,2.57]},{ x:'04/26/2024',y:[2.60,2.62,2.56,2.57]},{ x:'04/29/2024',y:[2.61,2.61,2.54,2.56]},{ x:'04/30/2024',y:[2.57,2.57,2.51,2.54]},{ x:'05/02/2024',y:[2.52,2.64,2.52,2.61]},{ x:'05/03/2024',y:[2.64,2.65,2.56,2.58]},{ x:'05/06/2024',y:[2.62,2.62,2.57,2.57]},{ x:'05/07/2024',y:[2.58,2.62,2.57,2.59]},{ x:'05/08/2024',y:[2.61,2.61,2.57,2.59]},{ x:'05/09/2024',y:[2.61,2.62,2.57,2.58]},{ x:'05/10/2024',y:[2.58,2.61,2.57,2.59]},{ x:'05/13/2024',y:[2.60,2.63,2.59,2.60]},{ x:'05/14/2024',y:[2.63,2.63,2.59,2.60]},{ x:'05/15/2024',y:[2.63,2.67,2.61,2.66]},{ x:'05/16/2024',y:[2.69,2.92,2.69,2.92]},{ x:'05/17/2024',y:[3.06,3.21,2.99,3.05]},{ x:'05/20/2024',y:[3.06,3.06,2.90,2.92]},{ x:'05/21/2024',y:[2.93,2.95,2.81,2.88]},{ x:'05/22/2024',y:[2.88,3.13,2.83,2.96]},{ x:'05/23/2024',y:[2.98,2.98,2.85,2.87]},{ x:'05/24/2024',y:[2.85,3.15,2.81,3.15]},{ x:'06/11/2024',y:[3.45,3.45,3.28,3.29]},{ x:'06/12/2024',y:[3.30,3.31,3.14,3.17]},{ x:'06/13/2024',y:[3.08,3.11,2.97,3.05]},{ x:'06/14/2024',y:[3.06,3.35,3.06,3.35]},{ x:'06/17/2024',y:[3.50,3.68,3.47,3.68]},{ x:'06/18/2024',y:[3.98,4.04,3.72,4.02]},{ x:'06/19/2024',y:[4.10,4.27,3.77,4.00]},{ x:'06/20/2024',y:[3.96,4.17,3.86,4.00]},{ x:'06/21/2024',y:[3.90,4.01,3.82,3.92]},{ x:'06/24/2024',y:[3.98,3.98,3.84,3.88]},{ x:'06/25/2024',y:[3.84,4.26,3.83,4.26]},{ x:'06/26/2024',y:[4.45,4.68,4.41,4.68]},{ x:'06/27/2024',y:[4.95,5.10,4.47,4.50]},{ x:'06/28/2024',y:[4.68,4.84,4.50,4.66]},{ x:'07/01/2024',y:[4.78,4.83,4.54,4.54]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "912000 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());