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:[36.12,36.20,36.12,36.20]},{ x:'01/24/2024',y:[36.18,36.22,36.17,36.19]},{ x:'01/25/2024',y:[36.12,36.12,36.12,36.12]},{ x:'01/26/2024',y:[36.15,36.17,36.15,36.17]},{ x:'01/29/2024',y:[36.10,36.14,36.10,36.13]},{ x:'01/30/2024',y:[36.04,36.08,36.04,36.08]},{ x:'01/31/2024',y:[36.18,36.25,36.18,36.25]},{ x:'02/01/2024',y:[36.33,36.33,36.32,36.33]},{ x:'02/02/2024',y:[36.24,36.24,36.18,36.18]},{ x:'02/05/2024',y:[36.25,36.30,36.25,36.28]},{ x:'02/15/2024',y:[36.13,36.22,36.13,36.21]},{ x:'02/16/2024',y:[36.18,36.23,36.18,36.23]},{ x:'02/19/2024',y:[36.15,36.23,36.15,36.22]},{ x:'02/20/2024',y:[36.26,36.35,36.26,36.35]},{ x:'02/21/2024',y:[36.34,36.38,36.34,36.34]},{ x:'02/22/2024',y:[36.30,36.40,36.30,36.40]},{ x:'02/23/2024',y:[36.39,36.43,36.38,36.41]},{ x:'02/26/2024',y:[36.49,36.49,36.47,36.49]},{ x:'02/27/2024',y:[36.44,36.52,36.42,36.52]},{ x:'02/29/2024',y:[36.58,36.64,36.58,36.62]},{ x:'03/01/2024',y:[36.51,36.57,36.51,36.53]},{ x:'03/04/2024',y:[36.41,36.53,36.41,36.48]},{ x:'03/05/2024',y:[36.47,36.51,36.47,36.50]},{ x:'03/06/2024',y:[36.52,36.53,36.42,36.53]},{ x:'03/07/2024',y:[36.41,36.53,36.40,36.51]},{ x:'03/08/2024',y:[36.43,36.48,36.43,36.48]},{ x:'03/11/2024',y:[36.42,36.46,36.41,36.46]},{ x:'03/12/2024',y:[36.44,36.52,36.44,36.49]},{ x:'03/13/2024',y:[36.43,36.49,36.43,36.47]},{ x:'03/14/2024',y:[36.47,36.50,36.47,36.48]},{ x:'03/15/2024',y:[36.54,36.61,36.54,36.60]},{ x:'03/18/2024',y:[36.56,36.62,36.56,36.58]},{ x:'03/19/2024',y:[36.67,36.73,36.67,36.73]},{ x:'03/20/2024',y:[36.82,36.83,36.82,36.82]},{ x:'03/21/2024',y:[36.78,36.87,36.78,36.86]},{ x:'03/22/2024',y:[36.91,37.08,36.91,37.06]},{ x:'03/25/2024',y:[37.10,37.10,36.88,36.97]},{ x:'03/26/2024',y:[36.90,37.06,36.90,37.06]},{ x:'03/27/2024',y:[37.10,37.12,37.10,37.12]},{ x:'03/28/2024',y:[37.14,37.14,37.08,37.13]},{ x:'03/29/2024',y:[37.08,37.15,37.08,37.13]},{ x:'04/01/2024',y:[37.11,37.14,37.11,37.13]},{ x:'04/02/2024',y:[37.17,37.23,37.17,37.22]},{ x:'04/03/2024',y:[37.18,37.19,37.17,37.17]},{ x:'04/08/2024',y:[37.13,37.17,37.13,37.17]},{ x:'04/09/2024',y:[37.14,37.24,37.14,37.19]},{ x:'04/10/2024',y:[37.11,37.11,37.08,37.10]},{ x:'04/11/2024',y:[37.16,37.25,37.15,37.23]},{ x:'04/12/2024',y:[37.16,37.29,37.16,37.29]},{ x:'04/15/2024',y:[37.31,37.39,37.31,37.38]},{ x:'04/16/2024',y:[37.45,37.56,37.45,37.55]},{ x:'04/17/2024',y:[37.45,37.46,37.45,37.45]},{ x:'04/18/2024',y:[37.02,37.02,36.92,36.94]},{ x:'04/19/2024',y:[37.10,37.20,37.10,37.12]},{ x:'04/22/2024',y:[37.03,37.14,37.03,37.14]},{ x:'04/23/2024',y:[37.14,37.19,37.14,37.16]},{ x:'04/24/2024',y:[37.05,37.08,37.04,37.08]},{ x:'04/25/2024',y:[37.15,37.15,37.14,37.15]},{ x:'04/26/2024',y:[37.09,37.09,37.07,37.07]},{ x:'04/29/2024',y:[37.12,37.16,37.11,37.14]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00849b 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());