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/03/2023',y:[36.80,36.99,36.57,36.94]},{ x:'01/04/2023',y:[36.80,36.98,36.80,36.93]},{ x:'01/05/2023',y:[37.01,37.11,36.96,37.01]},{ x:'01/06/2023',y:[37.01,37.15,37.01,37.10]},{ x:'01/09/2023',y:[37.50,37.50,37.31,37.48]},{ x:'01/10/2023',y:[37.48,37.60,37.43,37.55]},{ x:'01/11/2023',y:[37.58,37.60,37.44,37.47]},{ x:'01/12/2023',y:[37.48,37.48,37.23,37.29]},{ x:'01/13/2023',y:[37.39,37.53,37.26,37.31]},{ x:'01/16/2023',y:[37.32,37.60,37.32,37.39]},{ x:'01/17/2023',y:[37.48,37.50,37.42,37.47]},{ x:'01/30/2023',y:[37.94,38.08,37.85,37.98]},{ x:'01/31/2023',y:[37.98,38.09,37.90,37.95]},{ x:'02/01/2023',y:[38.00,38.07,37.94,38.06]},{ x:'02/02/2023',y:[38.13,38.38,38.09,38.37]},{ x:'02/03/2023',y:[38.39,38.47,38.16,38.39]},{ x:'02/06/2023',y:[38.39,38.47,38.33,38.40]},{ x:'02/07/2023',y:[38.40,38.50,38.36,38.50]},{ x:'02/08/2023',y:[38.57,38.66,38.50,38.64]},{ x:'02/09/2023',y:[38.59,38.63,38.50,38.61]},{ x:'02/10/2023',y:[38.58,38.64,38.33,38.39]},{ x:'02/13/2023',y:[38.38,38.49,38.19,38.48]},{ x:'02/14/2023',y:[38.53,38.68,38.53,38.60]},{ x:'02/15/2023',y:[38.60,38.60,38.40,38.42]},{ x:'02/16/2023',y:[38.50,38.73,38.50,38.66]},{ x:'02/17/2023',y:[38.62,38.68,38.51,38.66]},{ x:'02/20/2023',y:[38.74,38.87,38.67,38.83]},{ x:'02/21/2023',y:[38.91,38.96,38.80,38.91]},{ x:'02/22/2023',y:[38.79,38.91,38.61,38.88]},{ x:'02/23/2023',y:[39.01,39.19,39.01,39.14]},{ x:'02/24/2023',y:[39.25,39.32,39.17,39.26]},{ x:'03/01/2023',y:[39.24,39.25,38.88,39.17]},{ x:'03/02/2023',y:[39.26,39.38,39.06,39.34]},{ x:'03/03/2023',y:[39.60,39.70,39.51,39.67]},{ x:'03/06/2023',y:[39.96,40.12,39.85,40.05]},{ x:'03/07/2023',y:[40.15,40.21,40.05,40.16]},{ x:'03/08/2023',y:[40.12,40.15,40.01,40.15]},{ x:'03/09/2023',y:[40.28,40.28,40.06,40.10]},{ x:'03/10/2023',y:[39.95,39.96,39.70,39.87]},{ x:'03/13/2023',y:[39.72,39.75,39.39,39.67]},{ x:'03/14/2023',y:[39.52,39.55,39.36,39.40]},{ x:'03/15/2023',y:[39.60,39.67,39.46,39.46]},{ x:'03/16/2023',y:[39.40,39.41,39.22,39.30]},{ x:'03/17/2023',y:[38.89,38.91,38.67,38.80]},{ x:'03/20/2023',y:[39.00,39.01,38.83,38.87]},{ x:'03/21/2023',y:[39.00,39.24,38.99,39.13]},{ x:'03/22/2023',y:[39.30,39.45,39.26,39.44]},{ x:'03/23/2023',y:[39.45,39.69,39.36,39.61]},{ x:'03/24/2023',y:[39.71,39.72,39.59,39.69]},{ x:'03/27/2023',y:[39.65,39.86,39.65,39.84]},{ x:'03/28/2023',y:[39.88,39.88,39.62,39.71]},{ x:'03/29/2023',y:[39.71,39.83,39.64,39.73]},{ x:'03/30/2023',y:[39.80,40.00,39.80,39.99]},{ x:'03/31/2023',y:[40.13,40.23,40.10,40.12]},{ x:'04/06/2023',y:[40.19,40.23,39.97,40.21]},{ x:'04/07/2023',y:[40.25,40.40,40.19,40.22]},{ x:'04/10/2023',y:[40.22,40.44,40.20,40.42]},{ x:'04/11/2023',y:[40.50,40.68,40.42,40.65]},{ x:'04/12/2023',y:[40.70,40.93,40.67,40.88]},{ x:'04/13/2023',y:[40.91,40.92,40.70,40.71]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00713 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());