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:[10.82,10.83,10.60,10.62]},{ x:'01/23/2024',y:[10.58,10.63,10.36,10.60]},{ x:'01/24/2024',y:[10.62,10.77,10.36,10.53]},{ x:'01/25/2024',y:[10.80,10.84,10.60,10.76]},{ x:'01/26/2024',y:[10.75,10.81,10.65,10.65]},{ x:'01/29/2024',y:[10.66,10.71,10.42,10.44]},{ x:'01/30/2024',y:[10.44,10.44,10.20,10.22]},{ x:'01/31/2024',y:[10.19,10.19,9.89,10.04]},{ x:'02/01/2024',y:[10.05,10.16,9.85,10.08]},{ x:'02/02/2024',y:[10.01,10.03,9.78,9.81]},{ x:'02/05/2024',y:[9.68,9.80,9.42,9.75]},{ x:'02/15/2024',y:[10.11,10.47,10.11,10.36]},{ x:'02/16/2024',y:[10.45,10.55,10.43,10.53]},{ x:'02/19/2024',y:[10.60,10.71,10.45,10.45]},{ x:'02/20/2024',y:[10.50,10.59,10.47,10.51]},{ x:'02/21/2024',y:[10.54,10.96,10.52,10.87]},{ x:'02/22/2024',y:[10.78,10.85,10.73,10.84]},{ x:'02/23/2024',y:[10.85,10.94,10.81,10.85]},{ x:'02/26/2024',y:[10.87,10.98,10.87,10.95]},{ x:'02/27/2024',y:[10.88,11.10,10.86,11.05]},{ x:'02/29/2024',y:[10.95,11.29,10.90,11.18]},{ x:'03/01/2024',y:[11.22,11.37,11.21,11.32]},{ x:'03/04/2024',y:[11.39,11.40,11.26,11.32]},{ x:'03/05/2024',y:[11.32,11.37,11.22,11.33]},{ x:'03/06/2024',y:[11.29,11.40,11.18,11.33]},{ x:'03/07/2024',y:[11.29,11.35,11.13,11.16]},{ x:'03/08/2024',y:[11.13,11.17,11.07,11.14]},{ x:'03/11/2024',y:[11.23,11.40,11.21,11.36]},{ x:'03/12/2024',y:[11.46,11.59,11.46,11.56]},{ x:'03/13/2024',y:[11.57,11.58,11.48,11.56]},{ x:'03/14/2024',y:[11.52,11.60,11.50,11.50]},{ x:'03/15/2024',y:[11.45,11.46,11.39,11.40]},{ x:'03/18/2024',y:[11.55,11.67,11.54,11.66]},{ x:'03/19/2024',y:[11.73,11.82,11.72,11.79]},{ x:'03/20/2024',y:[11.72,11.83,11.72,11.78]},{ x:'03/21/2024',y:[11.83,11.88,11.76,11.81]},{ x:'03/22/2024',y:[11.80,11.81,11.59,11.69]},{ x:'03/25/2024',y:[11.67,11.73,11.59,11.66]},{ x:'03/26/2024',y:[11.54,11.58,11.48,11.49]},{ x:'03/27/2024',y:[11.54,11.56,11.40,11.41]},{ x:'03/28/2024',y:[11.30,11.54,11.29,11.52]},{ x:'03/29/2024',y:[11.49,11.50,11.37,11.42]},{ x:'04/01/2024',y:[11.51,11.75,11.51,11.72]},{ x:'04/02/2024',y:[11.71,11.76,11.61,11.66]},{ x:'04/03/2024',y:[11.67,11.67,11.57,11.61]},{ x:'04/08/2024',y:[11.63,11.63,11.53,11.56]},{ x:'04/09/2024',y:[11.51,11.58,11.46,11.57]},{ x:'04/10/2024',y:[11.59,11.59,11.38,11.39]},{ x:'04/11/2024',y:[11.36,11.49,11.33,11.49]},{ x:'04/12/2024',y:[11.40,11.47,11.38,11.47]},{ x:'04/15/2024',y:[11.32,11.60,11.32,11.56]},{ x:'04/16/2024',y:[11.50,11.56,11.38,11.44]},{ x:'04/17/2024',y:[11.27,11.45,11.26,11.39]},{ x:'04/18/2024',y:[11.50,11.62,11.39,11.59]},{ x:'04/19/2024',y:[11.48,11.51,11.29,11.36]},{ x:'04/22/2024',y:[11.34,11.47,11.30,11.39]},{ x:'04/23/2024',y:[11.42,11.42,11.30,11.32]},{ x:'04/24/2024',y:[11.36,11.39,11.25,11.32]},{ x:'04/25/2024',y:[11.33,11.45,11.33,11.38]},{ x:'04/26/2024',y:[11.37,11.56,11.36,11.56]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00643 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());