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:[38.61,38.66,38.61,38.66]},{ x:'01/24/2024',y:[38.66,38.67,38.59,38.60]},{ x:'01/25/2024',y:[38.60,38.60,38.55,38.58]},{ x:'01/26/2024',y:[38.70,38.70,38.63,38.64]},{ x:'01/29/2024',y:[38.62,38.68,38.62,38.64]},{ x:'01/30/2024',y:[38.54,38.59,38.54,38.57]},{ x:'01/31/2024',y:[38.55,38.71,38.55,38.70]},{ x:'02/01/2024',y:[38.71,38.75,38.71,38.75]},{ x:'02/02/2024',y:[38.71,38.71,38.64,38.64]},{ x:'02/05/2024',y:[38.70,38.71,38.67,38.71]},{ x:'02/15/2024',y:[38.66,38.78,38.65,38.73]},{ x:'02/16/2024',y:[38.79,38.79,38.70,38.77]},{ x:'02/19/2024',y:[38.66,38.76,38.66,38.76]},{ x:'02/20/2024',y:[38.79,38.85,38.79,38.85]},{ x:'02/21/2024',y:[38.91,38.92,38.88,38.90]},{ x:'02/22/2024',y:[38.85,38.94,38.85,38.90]},{ x:'02/23/2024',y:[38.90,39.10,38.89,39.08]},{ x:'02/26/2024',y:[39.05,39.12,39.05,39.10]},{ x:'02/27/2024',y:[39.05,39.16,39.05,39.14]},{ x:'02/29/2024',y:[39.25,39.25,39.19,39.20]},{ x:'03/01/2024',y:[39.20,39.20,39.13,39.15]},{ x:'03/04/2024',y:[39.02,39.14,39.02,39.09]},{ x:'03/05/2024',y:[39.09,39.16,39.09,39.14]},{ x:'03/06/2024',y:[39.22,39.26,39.22,39.26]},{ x:'03/07/2024',y:[39.16,39.22,39.10,39.19]},{ x:'03/08/2024',y:[39.13,39.14,39.06,39.10]},{ x:'03/11/2024',y:[39.08,39.17,39.04,39.15]},{ x:'03/12/2024',y:[39.20,39.22,39.14,39.16]},{ x:'03/13/2024',y:[39.18,39.23,39.18,39.21]},{ x:'03/14/2024',y:[39.21,39.30,39.21,39.25]},{ x:'03/15/2024',y:[39.29,39.30,39.28,39.29]},{ x:'03/18/2024',y:[39.30,39.34,39.29,39.34]},{ x:'03/19/2024',y:[39.40,39.42,39.38,39.38]},{ x:'03/20/2024',y:[39.53,39.53,39.42,39.51]},{ x:'03/21/2024',y:[39.53,39.62,39.52,39.57]},{ x:'03/22/2024',y:[39.61,39.86,39.61,39.82]},{ x:'03/25/2024',y:[39.87,39.87,39.59,39.79]},{ x:'03/26/2024',y:[39.72,39.82,39.67,39.80]},{ x:'03/27/2024',y:[39.78,39.83,39.75,39.81]},{ x:'03/28/2024',y:[39.82,39.87,39.82,39.84]},{ x:'03/29/2024',y:[39.84,39.90,39.83,39.89]},{ x:'04/01/2024',y:[39.85,39.88,39.85,39.88]},{ x:'04/02/2024',y:[39.91,39.96,39.91,39.93]},{ x:'04/03/2024',y:[39.85,39.88,39.82,39.82]},{ x:'04/08/2024',y:[39.85,39.90,39.84,39.90]},{ x:'04/09/2024',y:[39.89,40.00,39.89,39.98]},{ x:'04/10/2024',y:[39.94,39.94,39.83,39.83]},{ x:'04/11/2024',y:[39.81,39.92,39.81,39.92]},{ x:'04/12/2024',y:[39.90,39.95,39.85,39.93]},{ x:'04/15/2024',y:[39.95,40.02,39.95,39.96]},{ x:'04/16/2024',y:[39.90,40.11,39.90,40.08]},{ x:'04/17/2024',y:[39.99,39.99,39.89,39.89]},{ x:'04/18/2024',y:[39.41,39.42,39.36,39.38]},{ x:'04/19/2024',y:[39.46,39.60,39.46,39.50]},{ x:'04/22/2024',y:[39.50,39.59,39.48,39.59]},{ x:'04/23/2024',y:[39.77,39.85,39.77,39.79]},{ x:'04/24/2024',y:[39.80,39.81,39.75,39.79]},{ x:'04/25/2024',y:[39.81,39.92,39.81,39.87]},{ x:'04/26/2024',y:[39.76,39.77,39.73,39.75]},{ x:'04/29/2024',y:[39.92,39.94,39.88,39.94]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00727b 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());