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:'02/02/2024',y:[34.76,34.88,34.70,34.78]},{ x:'02/05/2024',y:[34.88,35.02,34.81,34.98]},{ x:'02/15/2024',y:[35.45,35.50,35.33,35.49]},{ x:'02/16/2024',y:[35.95,36.16,35.80,36.06]},{ x:'02/19/2024',y:[36.06,36.12,35.92,36.11]},{ x:'02/20/2024',y:[36.16,36.22,35.94,36.03]},{ x:'02/21/2024',y:[35.99,36.04,35.86,35.94]},{ x:'02/22/2024',y:[36.28,36.45,36.28,36.38]},{ x:'02/23/2024',y:[36.44,36.61,36.42,36.61]},{ x:'02/26/2024',y:[36.69,36.80,36.68,36.69]},{ x:'02/27/2024',y:[36.73,36.86,36.61,36.65]},{ x:'02/29/2024',y:[36.55,36.71,36.37,36.70]},{ x:'03/01/2024',y:[36.96,37.15,36.96,37.12]},{ x:'03/04/2024',y:[37.23,37.33,37.15,37.16]},{ x:'03/05/2024',y:[37.08,37.42,37.06,37.40]},{ x:'03/06/2024',y:[37.38,37.54,37.38,37.53]},{ x:'03/07/2024',y:[37.66,37.73,37.32,37.41]},{ x:'03/08/2024',y:[37.28,37.63,37.25,37.39]},{ x:'03/11/2024',y:[36.67,36.72,36.37,36.38]},{ x:'03/12/2024',y:[36.11,36.38,35.98,36.37]},{ x:'03/13/2024',y:[36.42,36.46,36.16,36.42]},{ x:'03/14/2024',y:[36.26,36.49,36.26,36.44]},{ x:'03/15/2024',y:[36.46,36.75,36.41,36.60]},{ x:'03/18/2024',y:[37.29,37.35,37.10,37.32]},{ x:'03/19/2024',y:[37.36,37.66,37.26,37.65]},{ x:'03/20/2024',y:[37.93,38.30,37.93,38.29]},{ x:'03/21/2024',y:[38.40,38.55,38.27,38.48]},{ x:'03/22/2024',y:[38.71,38.78,38.55,38.77]},{ x:'03/25/2024',y:[38.70,38.70,38.27,38.27]},{ x:'03/26/2024',y:[38.20,38.28,38.11,38.18]},{ x:'03/27/2024',y:[38.30,38.57,38.30,38.57]},{ x:'03/28/2024',y:[38.32,38.38,38.17,38.17]},{ x:'03/29/2024',y:[38.21,38.41,38.21,38.35]},{ x:'04/01/2024',y:[38.22,38.22,37.60,37.83]},{ x:'04/02/2024',y:[37.84,37.85,37.51,37.56]},{ x:'04/03/2024',y:[37.54,37.66,37.37,37.59]},{ x:'04/08/2024',y:[37.78,37.96,37.71,37.79]},{ x:'04/09/2024',y:[37.88,38.15,37.88,38.13]},{ x:'04/10/2024',y:[38.11,38.18,38.05,38.10]},{ x:'04/11/2024',y:[37.93,38.07,37.84,38.05]},{ x:'04/12/2024',y:[38.23,38.34,38.16,38.21]},{ x:'04/15/2024',y:[37.90,38.09,37.86,38.08]},{ x:'04/16/2024',y:[37.64,37.66,37.28,37.45]},{ x:'04/17/2024',y:[37.00,37.25,36.95,37.15]},{ x:'04/18/2024',y:[36.97,37.25,36.92,37.14]},{ x:'04/19/2024',y:[36.51,36.51,35.96,36.43]},{ x:'04/22/2024',y:[36.71,36.85,36.60,36.64]},{ x:'04/23/2024',y:[36.94,36.96,36.75,36.85]},{ x:'04/24/2024',y:[37.31,37.52,37.30,37.52]},{ x:'04/25/2024',y:[37.19,37.19,36.95,36.96]},{ x:'04/26/2024',y:[36.96,37.29,36.85,37.26]},{ x:'04/29/2024',y:[37.82,38.07,37.65,37.76]},{ x:'04/30/2024',y:[37.83,38.00,37.80,37.81]},{ x:'05/02/2024',y:[37.78,37.89,37.71,37.89]},{ x:'05/03/2024',y:[37.49,37.52,37.30,37.38]},{ x:'05/06/2024',y:[37.87,38.04,37.87,37.94]},{ x:'05/07/2024',y:[37.87,38.01,37.80,37.93]},{ x:'05/08/2024',y:[37.74,37.74,37.50,37.62]},{ x:'05/09/2024',y:[37.62,37.83,37.62,37.65]},{ x:'05/10/2024',y:[38.06,38.06,37.63,37.63]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00645 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());