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/06/2023',y:[40.20,40.29,40.19,40.28]},{ x:'01/09/2023',y:[40.08,40.08,40.07,40.08]},{ x:'01/10/2023',y:[40.00,40.00,39.95,39.96]},{ x:'01/11/2023',y:[39.95,39.95,39.94,39.95]},{ x:'01/12/2023',y:[39.86,39.89,39.86,39.89]},{ x:'01/13/2023',y:[39.84,39.90,39.84,39.90]},{ x:'01/16/2023',y:[39.77,39.77,39.71,39.71]},{ x:'01/17/2023',y:[39.76,39.82,39.76,39.82]},{ x:'01/30/2023',y:[39.63,39.65,39.60,39.64]},{ x:'01/31/2023',y:[39.55,39.55,39.45,39.48]},{ x:'02/01/2023',y:[39.55,39.55,39.44,39.48]},{ x:'02/02/2023',y:[39.11,39.11,39.03,39.03]},{ x:'02/03/2023',y:[39.07,39.10,39.05,39.07]},{ x:'02/06/2023',y:[39.35,39.38,39.34,39.35]},{ x:'02/07/2023',y:[39.50,39.51,39.43,39.51]},{ x:'02/08/2023',y:[39.45,39.52,39.45,39.52]},{ x:'02/09/2023',y:[39.53,39.56,39.53,39.56]},{ x:'02/10/2023',y:[39.56,39.62,39.56,39.61]},{ x:'02/13/2023',y:[39.70,39.79,39.70,39.79]},{ x:'02/14/2023',y:[39.77,39.77,39.68,39.68]},{ x:'02/15/2023',y:[39.76,39.91,39.76,39.91]},{ x:'02/16/2023',y:[39.90,39.92,39.77,39.83]},{ x:'02/17/2023',y:[39.91,39.98,39.91,39.98]},{ x:'02/20/2023',y:[40.00,40.00,39.96,39.97]},{ x:'02/21/2023',y:[39.97,40.01,39.96,39.96]},{ x:'02/22/2023',y:[40.15,40.16,40.15,40.15]},{ x:'02/23/2023',y:[40.16,40.16,39.95,39.95]},{ x:'02/24/2023',y:[40.05,40.12,40.04,40.12]},{ x:'03/01/2023',y:[40.20,40.34,40.20,40.29]},{ x:'03/02/2023',y:[40.20,40.34,40.20,40.33]},{ x:'03/03/2023',y:[40.28,40.33,40.28,40.32]},{ x:'03/06/2023',y:[40.29,40.29,40.22,40.24]},{ x:'03/07/2023',y:[40.33,40.33,40.30,40.30]},{ x:'03/08/2023',y:[40.31,40.53,40.31,40.48]},{ x:'03/09/2023',y:[40.51,40.57,40.51,40.56]},{ x:'03/10/2023',y:[40.65,40.70,40.65,40.68]},{ x:'03/13/2023',y:[40.55,40.55,40.42,40.47]},{ x:'03/14/2023',y:[40.40,40.41,40.37,40.37]},{ x:'03/15/2023',y:[40.38,40.43,40.38,40.43]},{ x:'03/16/2023',y:[40.50,40.61,40.50,40.61]},{ x:'03/17/2023',y:[40.49,40.49,40.48,40.48]},{ x:'03/20/2023',y:[40.46,40.50,40.46,40.47]},{ x:'03/21/2023',y:[40.42,40.51,40.42,40.51]},{ x:'03/22/2023',y:[40.40,40.41,40.40,40.41]},{ x:'03/23/2023',y:[40.22,40.22,40.14,40.19]},{ x:'03/24/2023',y:[40.25,40.25,40.21,40.23]},{ x:'03/27/2023',y:[40.28,40.28,40.24,40.25]},{ x:'03/28/2023',y:[40.15,40.21,40.15,40.21]},{ x:'03/29/2023',y:[40.30,40.30,40.30,40.30]},{ x:'03/30/2023',y:[40.36,40.38,40.35,40.35]},{ x:'03/31/2023',y:[40.25,40.31,40.24,40.30]},{ x:'04/06/2023',y:[40.47,40.48,40.47,40.48]},{ x:'04/07/2023',y:[40.42,40.42,40.41,40.42]},{ x:'04/10/2023',y:[40.38,40.39,40.38,40.38]},{ x:'04/11/2023',y:[40.39,40.42,40.39,40.42]},{ x:'04/12/2023',y:[40.43,40.46,40.43,40.44]},{ x:'04/13/2023',y:[40.45,40.46,40.45,40.45]},{ x:'04/14/2023',y:[40.45,40.45,40.35,40.36]},{ x:'04/17/2023',y:[40.48,40.49,40.43,40.44]},{ x:'04/18/2023',y:[40.42,40.46,40.42,40.44]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00865b 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());