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:[15.96,16.13,15.68,16.09]},{ x:'01/04/2023',y:[16.12,16.66,16.12,16.60]},{ x:'01/05/2023',y:[16.83,17.43,16.83,17.07]},{ x:'01/06/2023',y:[17.49,17.49,17.23,17.28]},{ x:'01/09/2023',y:[17.28,17.42,17.28,17.37]},{ x:'01/10/2023',y:[17.28,17.35,17.25,17.35]},{ x:'01/11/2023',y:[17.45,17.62,17.45,17.62]},{ x:'01/12/2023',y:[17.55,17.65,17.27,17.35]},{ x:'01/13/2023',y:[17.43,17.53,17.43,17.53]},{ x:'01/16/2023',y:[17.68,18.10,17.62,17.78]},{ x:'01/17/2023',y:[17.73,17.73,17.51,17.51]},{ x:'01/30/2023',y:[17.60,18.33,17.60,18.19]},{ x:'01/31/2023',y:[18.14,18.14,17.46,17.53]},{ x:'02/01/2023',y:[17.67,17.76,17.67,17.75]},{ x:'02/02/2023',y:[17.90,17.90,17.78,17.85]},{ x:'02/03/2023',y:[17.68,17.68,17.19,17.20]},{ x:'02/06/2023',y:[17.20,17.20,16.85,16.87]},{ x:'02/07/2023',y:[17.12,17.25,17.06,17.25]},{ x:'02/08/2023',y:[17.12,17.14,16.98,17.05]},{ x:'02/09/2023',y:[17.08,17.20,17.07,17.20]},{ x:'02/10/2023',y:[17.15,17.15,16.97,16.97]},{ x:'02/13/2023',y:[16.92,17.06,16.82,17.06]},{ x:'02/14/2023',y:[17.08,17.09,17.01,17.03]},{ x:'02/15/2023',y:[17.03,17.03,16.78,16.88]},{ x:'02/16/2023',y:[17.05,17.20,17.00,17.20]},{ x:'02/17/2023',y:[16.96,16.96,16.86,16.87]},{ x:'02/20/2023',y:[16.73,16.98,16.73,16.98]},{ x:'02/21/2023',y:[16.93,16.93,16.72,16.72]},{ x:'02/22/2023',y:[16.70,16.70,16.40,16.51]},{ x:'02/23/2023',y:[16.49,16.56,16.36,16.50]},{ x:'02/24/2023',y:[16.38,16.38,16.12,16.18]},{ x:'03/01/2023',y:[15.97,16.47,15.97,16.44]},{ x:'03/02/2023',y:[16.57,16.57,16.37,16.55]},{ x:'03/03/2023',y:[16.58,16.71,16.55,16.69]},{ x:'03/06/2023',y:[16.55,16.62,16.50,16.62]},{ x:'03/07/2023',y:[16.57,16.93,16.57,16.72]},{ x:'03/08/2023',y:[16.46,16.46,16.18,16.20]},{ x:'03/09/2023',y:[16.12,16.16,16.10,16.15]},{ x:'03/10/2023',y:[15.75,15.75,15.53,15.60]},{ x:'03/13/2023',y:[15.57,15.82,15.57,15.79]},{ x:'03/14/2023',y:[15.51,15.72,15.46,15.48]},{ x:'03/15/2023',y:[15.48,15.80,15.48,15.68]},{ x:'03/16/2023',y:[15.52,15.60,15.52,15.55]},{ x:'03/17/2023',y:[15.76,15.88,15.67,15.84]},{ x:'03/20/2023',y:[15.66,15.66,15.41,15.41]},{ x:'03/21/2023',y:[15.51,15.51,15.40,15.49]},{ x:'03/22/2023',y:[15.87,15.94,15.80,15.80]},{ x:'03/23/2023',y:[15.70,15.95,15.70,15.95]},{ x:'03/24/2023',y:[15.91,16.16,15.91,16.16]},{ x:'03/27/2023',y:[16.08,16.08,15.79,15.95]},{ x:'03/28/2023',y:[15.95,15.95,15.78,15.84]},{ x:'03/29/2023',y:[15.85,16.40,15.85,16.33]},{ x:'03/30/2023',y:[16.42,16.42,16.19,16.30]},{ x:'03/31/2023',y:[16.38,16.64,16.38,16.48]},{ x:'04/06/2023',y:[16.45,16.45,15.99,16.17]},{ x:'04/07/2023',y:[16.54,16.55,16.54,16.55]},{ x:'04/10/2023',y:[16.55,16.55,16.40,16.46]},{ x:'04/11/2023',y:[16.46,16.56,16.29,16.31]},{ x:'04/12/2023',y:[16.26,16.30,16.25,16.30]},{ x:'04/13/2023',y:[16.08,16.17,15.94,16.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00703 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());