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/23/2024',y:[34.12,34.12,34.12,34.12]},{ x:'01/24/2024',y:[33.88,33.91,33.85,33.91]},{ x:'01/25/2024',y:[33.69,33.79,33.69,33.79]},{ x:'01/26/2024',y:[34.01,34.07,34.01,34.04]},{ x:'01/29/2024',y:[33.93,34.01,33.93,33.99]},{ x:'01/30/2024',y:[34.08,34.20,34.08,34.20]},{ x:'01/31/2024',y:[34.30,34.39,34.30,34.39]},{ x:'02/01/2024',y:[34.46,34.55,34.41,34.55]},{ x:'02/02/2024',y:[34.55,34.56,34.49,34.50]},{ x:'02/05/2024',y:[34.12,34.18,34.12,34.13]},{ x:'02/15/2024',y:[33.41,33.51,33.33,33.49]},{ x:'02/16/2024',y:[33.30,33.34,33.30,33.34]},{ x:'02/19/2024',y:[33.22,33.32,33.22,33.31]},{ x:'02/20/2024',y:[33.31,33.33,33.25,33.33]},{ x:'02/21/2024',y:[33.38,33.43,33.38,33.41]},{ x:'02/22/2024',y:[33.41,33.41,33.41,33.41]},{ x:'02/23/2024',y:[33.55,33.57,33.55,33.57]},{ x:'02/26/2024',y:[33.93,33.94,33.89,33.93]},{ x:'02/27/2024',y:[33.73,33.75,33.70,33.75]},{ x:'02/29/2024',y:[33.72,33.72,33.71,33.71]},{ x:'03/01/2024',y:[33.65,33.66,33.59,33.66]},{ x:'03/04/2024',y:[33.66,33.73,33.64,33.72]},{ x:'03/05/2024',y:[33.72,33.76,33.70,33.76]},{ x:'03/06/2024',y:[33.90,33.95,33.90,33.94]},{ x:'03/07/2024',y:[34.05,34.14,34.05,34.11]},{ x:'03/08/2024',y:[34.14,34.21,34.14,34.20]},{ x:'03/11/2024',y:[34.25,34.26,34.25,34.26]},{ x:'03/12/2024',y:[34.19,34.21,34.19,34.21]},{ x:'03/13/2024',y:[34.09,34.11,34.09,34.10]},{ x:'03/14/2024',y:[34.10,34.10,33.99,33.99]},{ x:'03/15/2024',y:[33.84,33.87,33.84,33.87]},{ x:'03/18/2024',y:[33.90,33.90,33.82,33.82]},{ x:'03/19/2024',y:[33.97,34.03,33.95,34.01]},{ x:'03/20/2024',y:[34.13,34.13,34.08,34.13]},{ x:'03/21/2024',y:[34.00,34.03,34.00,34.00]},{ x:'03/22/2024',y:[34.00,34.42,34.00,34.38]},{ x:'03/25/2024',y:[34.57,34.57,34.39,34.45]},{ x:'03/26/2024',y:[34.31,34.37,34.31,34.37]},{ x:'03/27/2024',y:[34.41,34.42,34.40,34.42]},{ x:'03/28/2024',y:[34.50,34.59,34.50,34.55]},{ x:'03/29/2024',y:[34.66,34.67,34.65,34.67]},{ x:'04/01/2024',y:[34.61,34.65,34.61,34.65]},{ x:'04/02/2024',y:[34.55,34.55,34.32,34.32]},{ x:'04/03/2024',y:[34.19,34.19,34.13,34.14]},{ x:'04/08/2024',y:[34.09,34.09,33.93,33.95]},{ x:'04/09/2024',y:[34.03,34.12,34.03,34.11]},{ x:'04/10/2024',y:[34.20,34.24,34.20,34.23]},{ x:'04/11/2024',y:[33.85,33.85,33.72,33.79]},{ x:'04/12/2024',y:[33.75,33.75,33.67,33.71]},{ x:'04/15/2024',y:[33.78,33.78,33.69,33.69]},{ x:'04/16/2024',y:[33.58,33.58,33.43,33.52]},{ x:'04/17/2024',y:[33.41,33.41,33.15,33.20]},{ x:'04/18/2024',y:[33.03,33.03,33.01,33.01]},{ x:'04/19/2024',y:[33.20,33.41,33.20,33.24]},{ x:'04/22/2024',y:[32.95,32.98,32.92,32.95]},{ x:'04/23/2024',y:[33.13,33.20,33.13,33.20]},{ x:'04/24/2024',y:[33.16,33.16,33.04,33.12]},{ x:'04/25/2024',y:[32.95,32.95,32.93,32.93]},{ x:'04/26/2024',y:[32.72,32.74,32.70,32.74]},{ x:'04/29/2024',y:[33.00,33.04,33.00,33.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00723b 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());