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/16/2023',y:[37.92,37.94,37.73,37.75]},{ x:'01/17/2023',y:[37.70,37.71,37.64,37.64]},{ x:'01/30/2023',y:[37.58,37.58,37.48,37.55]},{ x:'01/31/2023',y:[37.28,37.28,36.98,37.04]},{ x:'02/01/2023',y:[37.37,37.45,37.37,37.44]},{ x:'02/02/2023',y:[37.37,37.50,37.37,37.40]},{ x:'02/03/2023',y:[37.78,37.85,37.78,37.83]},{ x:'02/06/2023',y:[37.58,37.58,37.25,37.35]},{ x:'02/07/2023',y:[37.14,37.15,37.09,37.13]},{ x:'02/08/2023',y:[36.76,36.88,36.76,36.88]},{ x:'02/09/2023',y:[37.03,37.03,36.95,36.95]},{ x:'02/10/2023',y:[36.77,36.77,36.59,36.62]},{ x:'02/13/2023',y:[36.30,36.30,36.19,36.25]},{ x:'02/14/2023',y:[36.48,36.53,36.46,36.53]},{ x:'02/15/2023',y:[36.63,36.63,36.61,36.61]},{ x:'02/16/2023',y:[36.04,36.04,35.89,35.96]},{ x:'02/17/2023',y:[35.50,35.50,35.33,35.36]},{ x:'02/20/2023',y:[35.66,35.68,35.65,35.65]},{ x:'02/21/2023',y:[35.60,35.60,35.60,35.60]},{ x:'02/22/2023',y:[35.28,35.32,35.28,35.28]},{ x:'02/23/2023',y:[35.38,35.38,35.24,35.24]},{ x:'02/24/2023',y:[35.59,35.75,35.59,35.73]},{ x:'03/01/2023',y:[35.54,35.55,35.54,35.55]},{ x:'03/02/2023',y:[35.19,35.22,35.18,35.22]},{ x:'03/03/2023',y:[35.16,35.29,35.16,35.28]},{ x:'03/06/2023',y:[36.03,36.03,35.90,35.91]},{ x:'03/07/2023',y:[35.91,35.91,35.88,35.88]},{ x:'03/08/2023',y:[36.00,36.00,35.91,35.91]},{ x:'03/09/2023',y:[35.88,35.88,35.87,35.87]},{ x:'03/10/2023',y:[36.22,36.35,36.22,36.30]},{ x:'03/13/2023',y:[36.36,36.36,36.19,36.22]},{ x:'03/14/2023',y:[36.26,36.30,36.25,36.25]},{ x:'03/15/2023',y:[36.08,36.22,36.08,36.16]},{ x:'03/16/2023',y:[36.74,36.80,36.70,36.72]},{ x:'03/17/2023',y:[36.69,36.70,36.69,36.69]},{ x:'03/20/2023',y:[36.47,36.77,36.47,36.77]},{ x:'03/21/2023',y:[36.68,36.83,36.68,36.83]},{ x:'03/22/2023',y:[36.66,36.85,36.66,36.82]},{ x:'03/23/2023',y:[36.89,36.89,36.83,36.83]},{ x:'03/24/2023',y:[36.85,36.90,36.82,36.86]},{ x:'03/27/2023',y:[37.07,37.10,37.02,37.02]},{ x:'03/28/2023',y:[36.47,36.53,36.47,36.52]},{ x:'03/29/2023',y:[36.42,36.47,36.42,36.47]},{ x:'03/30/2023',y:[36.68,36.71,36.65,36.65]},{ x:'03/31/2023',y:[36.83,36.84,36.78,36.84]},{ x:'04/06/2023',y:[37.94,37.94,37.86,37.88]},{ x:'04/07/2023',y:[37.92,37.93,37.87,37.87]},{ x:'04/10/2023',y:[37.53,37.73,37.53,37.73]},{ x:'04/11/2023',y:[37.59,37.70,37.59,37.70]},{ x:'04/12/2023',y:[37.72,37.72,37.70,37.70]},{ x:'04/13/2023',y:[37.60,37.60,37.55,37.57]},{ x:'04/14/2023',y:[37.45,37.45,37.41,37.41]},{ x:'04/17/2023',y:[37.39,37.39,37.32,37.32]},{ x:'04/18/2023',y:[37.20,37.20,37.01,37.06]},{ x:'04/19/2023',y:[37.22,37.22,37.16,37.16]},{ x:'04/20/2023',y:[37.20,37.23,37.20,37.23]},{ x:'04/21/2023',y:[37.22,37.31,37.22,37.31]},{ x:'04/24/2023',y:[37.25,37.25,37.24,37.24]},{ x:'04/25/2023',y:[37.78,37.78,37.62,37.73]},{ x:'04/26/2023',y:[37.74,37.93,37.74,37.93]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00754b 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());