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/22/2024',y:[34.48,34.48,34.46,34.46]},{ x:'01/23/2024',y:[34.64,34.64,34.64,34.64]},{ x:'01/24/2024',y:[34.53,34.61,34.50,34.50]},{ x:'01/25/2024',y:[34.41,34.41,34.41,34.41]},{ x:'01/26/2024',y:[34.60,34.68,34.60,34.64]},{ x:'01/29/2024',y:[34.61,34.61,34.57,34.57]},{ x:'01/30/2024',y:[34.68,34.68,34.68,34.68]},{ x:'01/31/2024',y:[34.85,34.85,34.85,34.85]},{ x:'02/01/2024',y:[35.14,35.14,35.14,35.14]},{ x:'02/02/2024',y:[35.07,35.07,35.07,35.07]},{ x:'02/05/2024',y:[34.98,34.98,34.98,34.98]},{ x:'02/15/2024',y:[34.56,34.70,34.56,34.69]},{ x:'02/16/2024',y:[34.69,34.71,34.58,34.60]},{ x:'02/19/2024',y:[34.62,34.62,34.54,34.54]},{ x:'02/20/2024',y:[34.68,34.68,34.68,34.68]},{ x:'02/21/2024',y:[34.86,34.86,34.86,34.86]},{ x:'02/22/2024',y:[34.81,34.86,34.81,34.86]},{ x:'02/23/2024',y:[34.95,34.95,34.95,34.95]},{ x:'02/26/2024',y:[35.00,35.05,34.99,34.99]},{ x:'02/27/2024',y:[34.55,34.65,34.55,34.65]},{ x:'02/29/2024',y:[34.62,34.62,34.62,34.62]},{ x:'03/01/2024',y:[34.48,34.55,34.48,34.55]},{ x:'03/04/2024',y:[34.57,34.57,34.57,34.57]},{ x:'03/05/2024',y:[34.57,34.60,34.57,34.60]},{ x:'03/06/2024',y:[34.84,34.84,34.77,34.77]},{ x:'03/07/2024',y:[34.72,34.81,34.72,34.81]},{ x:'03/08/2024',y:[34.76,34.76,34.76,34.76]},{ x:'03/11/2024',y:[34.85,34.85,34.85,34.85]},{ x:'03/12/2024',y:[34.86,34.86,34.81,34.81]},{ x:'03/13/2024',y:[34.74,34.74,34.74,34.74]},{ x:'03/14/2024',y:[34.77,34.77,34.76,34.76]},{ x:'03/15/2024',y:[34.72,34.77,34.72,34.77]},{ x:'03/18/2024',y:[34.73,34.76,34.73,34.76]},{ x:'03/19/2024',y:[34.88,34.88,34.84,34.84]},{ x:'03/20/2024',y:[35.08,35.08,35.08,35.08]},{ x:'03/21/2024',y:[35.10,35.10,35.10,35.10]},{ x:'03/22/2024',y:[35.30,35.34,35.30,35.34]},{ x:'03/25/2024',y:[35.51,35.51,35.40,35.40]},{ x:'03/26/2024',y:[35.26,35.40,35.26,35.36]},{ x:'03/27/2024',y:[35.50,35.50,35.38,35.42]},{ x:'03/28/2024',y:[35.48,35.48,35.48,35.48]},{ x:'03/29/2024',y:[35.56,35.56,35.56,35.56]},{ x:'04/01/2024',y:[35.53,35.54,35.53,35.54]},{ x:'04/02/2024',y:[35.33,35.43,35.33,35.43]},{ x:'04/03/2024',y:[35.32,35.32,35.31,35.31]},{ x:'04/08/2024',y:[35.38,35.44,35.38,35.44]},{ x:'04/09/2024',y:[35.41,35.45,35.41,35.42]},{ x:'04/10/2024',y:[35.40,35.44,35.40,35.44]},{ x:'04/11/2024',y:[35.38,35.38,35.26,35.26]},{ x:'04/12/2024',y:[35.30,35.32,35.30,35.32]},{ x:'04/15/2024',y:[35.42,35.45,35.41,35.45]},{ x:'04/16/2024',y:[35.32,35.37,35.32,35.37]},{ x:'04/17/2024',y:[35.20,35.20,35.13,35.13]},{ x:'04/18/2024',y:[35.31,35.31,35.17,35.17]},{ x:'04/19/2024',y:[35.35,35.42,35.31,35.31]},{ x:'04/22/2024',y:[35.38,35.53,35.38,35.50]},{ x:'04/23/2024',y:[35.58,35.58,35.56,35.57]},{ x:'04/24/2024',y:[35.61,35.61,35.61,35.61]},{ x:'04/25/2024',y:[35.61,35.61,35.58,35.60]},{ x:'04/26/2024',y:[35.44,35.45,35.42,35.45]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00846b 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());