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:'12/26/2022',y:[37.20,37.25,37.18,37.23]},{ x:'12/27/2022',y:[37.26,37.27,37.25,37.27]},{ x:'12/28/2022',y:[37.24,37.24,37.22,37.22]},{ x:'12/29/2022',y:[37.10,37.10,36.95,37.03]},{ x:'12/30/2022',y:[37.01,37.01,36.95,36.99]},{ x:'01/03/2023',y:[37.00,37.08,37.00,37.03]},{ x:'01/04/2023',y:[37.19,37.20,37.18,37.20]},{ x:'01/05/2023',y:[37.23,37.41,37.23,37.41]},{ x:'01/06/2023',y:[37.50,37.50,37.33,37.36]},{ x:'01/09/2023',y:[37.71,37.71,37.46,37.51]},{ x:'01/10/2023',y:[37.50,37.53,37.50,37.52]},{ x:'01/11/2023',y:[37.50,37.50,37.40,37.50]},{ x:'01/12/2023',y:[37.51,37.55,37.46,37.54]},{ x:'01/13/2023',y:[37.56,37.61,37.56,37.60]},{ x:'01/16/2023',y:[37.60,37.60,37.50,37.51]},{ x:'01/17/2023',y:[37.60,37.60,37.57,37.59]},{ x:'01/30/2023',y:[37.06,37.08,36.75,36.76]},{ x:'01/31/2023',y:[36.70,36.70,36.45,36.50]},{ x:'02/01/2023',y:[36.52,36.59,36.52,36.59]},{ x:'02/02/2023',y:[36.50,36.50,36.40,36.40]},{ x:'02/03/2023',y:[36.60,36.71,36.60,36.66]},{ x:'02/06/2023',y:[36.81,36.82,36.73,36.77]},{ x:'02/07/2023',y:[36.72,36.74,36.64,36.71]},{ x:'02/08/2023',y:[36.65,36.75,36.62,36.75]},{ x:'02/09/2023',y:[36.67,36.72,36.67,36.72]},{ x:'02/10/2023',y:[36.64,36.72,36.62,36.67]},{ x:'02/13/2023',y:[36.58,36.66,36.58,36.66]},{ x:'02/14/2023',y:[36.63,36.67,36.63,36.67]},{ x:'02/15/2023',y:[36.68,36.70,36.68,36.70]},{ x:'02/16/2023',y:[36.66,36.66,36.61,36.62]},{ x:'02/17/2023',y:[36.62,36.64,36.54,36.64]},{ x:'02/20/2023',y:[36.60,36.63,36.58,36.63]},{ x:'02/21/2023',y:[36.63,36.69,36.63,36.69]},{ x:'02/22/2023',y:[36.60,36.68,36.60,36.68]},{ x:'02/23/2023',y:[36.68,36.70,36.62,36.67]},{ x:'02/24/2023',y:[36.74,36.88,36.74,36.88]},{ x:'03/01/2023',y:[36.99,37.00,36.95,36.96]},{ x:'03/02/2023',y:[36.88,36.94,36.88,36.94]},{ x:'03/03/2023',y:[36.94,36.99,36.92,36.98]},{ x:'03/06/2023',y:[36.98,37.11,36.98,37.04]},{ x:'03/07/2023',y:[37.13,37.17,37.11,37.16]},{ x:'03/08/2023',y:[37.21,37.21,37.12,37.15]},{ x:'03/09/2023',y:[37.15,37.19,37.07,37.07]},{ x:'03/10/2023',y:[37.20,37.20,37.13,37.18]},{ x:'03/13/2023',y:[37.19,37.19,37.00,37.03]},{ x:'03/14/2023',y:[36.71,36.71,36.60,36.63]},{ x:'03/15/2023',y:[36.74,36.80,36.74,36.79]},{ x:'03/16/2023',y:[36.65,36.77,36.65,36.76]},{ x:'03/17/2023',y:[36.66,36.76,36.64,36.75]},{ x:'03/20/2023',y:[36.60,36.69,36.55,36.61]},{ x:'03/21/2023',y:[36.59,36.67,36.59,36.66]},{ x:'03/22/2023',y:[36.71,36.73,36.63,36.68]},{ x:'03/23/2023',y:[36.70,36.74,36.68,36.74]},{ x:'03/24/2023',y:[36.70,36.73,36.68,36.73]},{ x:'03/27/2023',y:[36.75,36.75,36.59,36.64]},{ x:'03/28/2023',y:[36.65,36.65,36.60,36.65]},{ x:'03/29/2023',y:[36.62,36.69,36.58,36.68]},{ x:'03/30/2023',y:[36.79,36.89,36.79,36.89]},{ x:'03/31/2023',y:[36.94,37.01,36.91,37.01]},{ x:'04/06/2023',y:[37.21,37.38,37.21,37.38]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00727b 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());