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:'04/29/2024',y:[31.39,31.39,31.39,31.39]},{ x:'04/30/2024',y:[31.47,31.47,31.47,31.47]},{ x:'05/02/2024',y:[31.39,31.39,31.39,31.39]},{ x:'05/03/2024',y:[31.45,31.45,31.45,31.45]},{ x:'05/06/2024',y:[31.68,31.68,31.68,31.68]},{ x:'05/07/2024',y:[31.79,31.87,31.79,31.87]},{ x:'05/08/2024',y:[32.00,32.01,32.00,32.01]},{ x:'05/09/2024',y:[31.81,31.81,31.81,31.81]},{ x:'05/10/2024',y:[32.03,32.03,32.03,32.03]},{ x:'05/13/2024',y:[31.85,31.85,31.85,31.85]},{ x:'05/14/2024',y:[31.85,31.85,31.85,31.85]},{ x:'05/15/2024',y:[31.87,31.87,31.84,31.84]},{ x:'05/16/2024',y:[32.22,32.22,32.15,32.15]},{ x:'05/17/2024',y:[31.80,31.81,31.80,31.81]},{ x:'05/20/2024',y:[31.67,31.69,31.67,31.69]},{ x:'05/21/2024',y:[31.66,31.66,31.64,31.64]},{ x:'05/22/2024',y:[31.72,31.75,31.72,31.75]},{ x:'05/23/2024',y:[31.77,31.77,31.70,31.70]},{ x:'05/24/2024',y:[31.57,31.57,31.57,31.57]},{ x:'06/11/2024',y:[31.77,31.77,31.77,31.77]},{ x:'06/12/2024',y:[31.91,31.91,31.86,31.87]},{ x:'06/13/2024',y:[32.15,32.15,32.15,32.15]},{ x:'06/14/2024',y:[32.38,32.38,32.34,32.34]},{ x:'06/17/2024',y:[32.33,32.38,32.33,32.38]},{ x:'06/18/2024',y:[32.29,32.29,32.24,32.24]},{ x:'06/19/2024',y:[32.43,32.46,32.43,32.46]},{ x:'06/20/2024',y:[32.35,32.35,32.35,32.35]},{ x:'06/21/2024',y:[32.18,32.21,32.18,32.21]},{ x:'06/24/2024',y:[32.25,32.25,32.25,32.25]},{ x:'06/25/2024',y:[32.40,32.45,32.40,32.45]},{ x:'06/26/2024',y:[32.34,32.34,32.34,32.34]},{ x:'06/27/2024',y:[32.10,32.10,32.10,32.10]},{ x:'06/28/2024',y:[32.12,32.12,32.12,32.12]},{ x:'07/01/2024',y:[31.72,31.72,31.72,31.72]},{ x:'07/02/2024',y:[31.71,31.71,31.71,31.71]},{ x:'07/03/2024',y:[32.00,32.00,32.00,32.00]},{ x:'07/04/2024',y:[32.10,32.10,32.10,32.10]},{ x:'07/05/2024',y:[31.98,32.01,31.98,32.01]},{ x:'07/12/2024',y:[32.61,32.61,32.61,32.61]},{ x:'07/15/2024',y:[32.62,32.62,32.62,32.62]},{ x:'07/16/2024',y:[32.68,32.68,32.68,32.68]},{ x:'07/17/2024',y:[32.95,32.95,32.91,32.91]},{ x:'07/18/2024',y:[32.91,32.91,32.91,32.91]},{ x:'07/19/2024',y:[32.87,32.87,32.87,32.87]},{ x:'07/22/2024',y:[32.90,32.90,32.90,32.90]},{ x:'07/23/2024',y:[32.79,32.79,32.79,32.79]},{ x:'07/26/2024',y:[32.56,32.56,32.55,32.55]},{ x:'07/29/2024',y:[32.78,32.86,32.78,32.81]},{ x:'07/30/2024',y:[32.87,32.87,32.87,32.87]},{ x:'07/31/2024',y:[32.99,32.99,32.94,32.94]},{ x:'08/01/2024',y:[33.18,33.18,33.09,33.09]},{ x:'08/02/2024',y:[33.38,33.38,33.32,33.32]},{ x:'08/05/2024',y:[33.75,33.75,33.66,33.68]},{ x:'08/06/2024',y:[33.38,33.42,33.38,33.42]},{ x:'08/07/2024',y:[33.25,33.25,33.25,33.25]},{ x:'08/08/2024',y:[32.94,32.94,32.94,32.94]},{ x:'08/09/2024',y:[32.68,32.68,32.68,32.68]},{ x:'08/12/2024',y:[33.02,33.02,33.02,33.02]},{ x:'08/13/2024',y:[33.04,33.04,33.04,33.04]},{ x:'08/14/2024',y:[33.22,33.22,33.22,33.22]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00840b 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());