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:[40.20,40.27,40.15,40.27]},{ x:'01/24/2024',y:[40.07,40.07,40.01,40.06]},{ x:'01/25/2024',y:[39.86,39.95,39.82,39.95]},{ x:'01/26/2024',y:[40.06,40.21,40.06,40.20]},{ x:'01/29/2024',y:[40.18,40.20,40.01,40.07]},{ x:'01/30/2024',y:[40.18,40.28,40.15,40.27]},{ x:'01/31/2024',y:[40.30,40.55,40.28,40.55]},{ x:'02/01/2024',y:[40.59,40.71,40.55,40.67]},{ x:'02/02/2024',y:[40.76,40.80,40.61,40.68]},{ x:'02/05/2024',y:[40.35,40.41,40.29,40.37]},{ x:'02/15/2024',y:[39.98,39.98,39.58,39.72]},{ x:'02/16/2024',y:[39.66,39.66,39.54,39.58]},{ x:'02/19/2024',y:[39.54,39.60,39.50,39.59]},{ x:'02/20/2024',y:[39.57,39.61,39.50,39.60]},{ x:'02/21/2024',y:[39.61,39.75,39.61,39.75]},{ x:'02/22/2024',y:[39.67,39.79,39.67,39.77]},{ x:'02/23/2024',y:[39.83,39.85,39.81,39.84]},{ x:'02/26/2024',y:[40.11,40.14,40.07,40.13]},{ x:'02/27/2024',y:[40.02,40.02,39.84,39.91]},{ x:'02/29/2024',y:[39.95,39.96,39.85,39.86]},{ x:'03/01/2024',y:[39.80,39.85,39.78,39.81]},{ x:'03/04/2024',y:[39.92,39.96,39.84,39.88]},{ x:'03/05/2024',y:[39.90,39.95,39.86,39.94]},{ x:'03/06/2024',y:[40.02,40.15,40.02,40.13]},{ x:'03/07/2024',y:[40.25,40.30,40.20,40.29]},{ x:'03/08/2024',y:[40.32,40.36,40.23,40.35]},{ x:'03/11/2024',y:[40.35,40.46,40.35,40.45]},{ x:'03/12/2024',y:[40.41,40.44,40.39,40.39]},{ x:'03/13/2024',y:[40.34,40.35,40.25,40.28]},{ x:'03/14/2024',y:[40.23,40.31,40.21,40.24]},{ x:'03/15/2024',y:[40.04,40.11,40.00,40.10]},{ x:'03/18/2024',y:[40.14,40.18,40.05,40.09]},{ x:'03/19/2024',y:[40.10,40.25,40.10,40.24]},{ x:'03/20/2024',y:[40.31,40.41,40.31,40.40]},{ x:'03/21/2024',y:[40.33,40.36,40.27,40.34]},{ x:'03/22/2024',y:[40.55,40.82,40.54,40.81]},{ x:'03/25/2024',y:[41.01,41.02,40.67,40.78]},{ x:'03/26/2024',y:[40.70,40.74,40.57,40.72]},{ x:'03/27/2024',y:[40.68,40.75,40.67,40.74]},{ x:'03/28/2024',y:[40.89,40.96,40.89,40.90]},{ x:'03/29/2024',y:[41.08,41.10,41.02,41.06]},{ x:'04/01/2024',y:[41.09,41.14,41.03,41.14]},{ x:'04/02/2024',y:[40.78,40.88,40.77,40.79]},{ x:'04/03/2024',y:[40.65,40.68,40.54,40.56]},{ x:'04/08/2024',y:[40.36,40.38,40.32,40.36]},{ x:'04/09/2024',y:[40.35,40.60,40.35,40.54]},{ x:'04/10/2024',y:[40.67,40.67,40.59,40.62]},{ x:'04/11/2024',y:[40.15,40.24,40.01,40.24]},{ x:'04/12/2024',y:[40.14,40.17,40.07,40.13]},{ x:'04/15/2024',y:[40.18,40.25,40.15,40.16]},{ x:'04/16/2024',y:[39.86,39.97,39.86,39.91]},{ x:'04/17/2024',y:[39.79,39.80,39.62,39.65]},{ x:'04/18/2024',y:[39.36,39.45,39.34,39.35]},{ x:'04/19/2024',y:[39.41,39.88,39.35,39.62]},{ x:'04/22/2024',y:[39.33,39.43,39.32,39.41]},{ x:'04/23/2024',y:[39.66,39.71,39.63,39.69]},{ x:'04/24/2024',y:[39.70,39.70,39.55,39.65]},{ x:'04/25/2024',y:[39.56,39.56,39.46,39.47]},{ x:'04/26/2024',y:[39.32,39.34,39.28,39.32]},{ x:'04/29/2024',y:[39.61,39.72,39.60,39.64]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00740b 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());