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/12/2023',y:[42.28,42.41,41.68,41.85]},{ x:'01/13/2023',y:[42.35,43.10,42.28,42.85]},{ x:'01/16/2023',y:[43.72,45.60,43.50,45.30]},{ x:'01/17/2023',y:[44.95,45.10,44.05,44.05]},{ x:'01/30/2023',y:[46.40,46.66,44.97,45.14]},{ x:'01/31/2023',y:[45.00,45.50,43.83,44.14]},{ x:'02/01/2023',y:[44.17,44.17,43.00,43.62]},{ x:'02/02/2023',y:[44.23,44.30,43.11,43.60]},{ x:'02/03/2023',y:[43.01,43.01,41.73,41.92]},{ x:'02/06/2023',y:[41.70,41.70,40.56,40.63]},{ x:'02/07/2023',y:[41.09,41.80,41.09,41.33]},{ x:'02/08/2023',y:[41.61,41.86,41.12,41.14]},{ x:'02/09/2023',y:[40.92,42.24,40.65,42.13]},{ x:'02/10/2023',y:[42.07,42.07,41.23,41.40]},{ x:'02/13/2023',y:[41.17,42.65,41.02,42.64]},{ x:'02/14/2023',y:[42.91,42.99,42.12,42.15]},{ x:'02/15/2023',y:[42.45,42.80,41.80,41.89]},{ x:'02/16/2023',y:[42.30,42.94,41.88,42.92]},{ x:'02/17/2023',y:[41.70,42.17,41.18,41.55]},{ x:'02/20/2023',y:[40.52,41.53,40.21,41.53]},{ x:'02/21/2023',y:[42.20,42.62,41.95,42.10]},{ x:'02/22/2023',y:[41.80,42.38,41.66,41.87]},{ x:'02/23/2023',y:[41.66,42.23,41.35,41.37]},{ x:'02/24/2023',y:[41.24,41.28,40.13,40.46]},{ x:'03/01/2023',y:[40.35,41.99,40.30,41.64]},{ x:'03/02/2023',y:[41.83,41.86,41.24,41.43]},{ x:'03/03/2023',y:[41.72,42.03,41.02,41.37]},{ x:'03/06/2023',y:[41.70,41.70,40.56,40.95]},{ x:'03/07/2023',y:[40.99,41.52,40.53,40.77]},{ x:'03/08/2023',y:[39.84,39.84,39.31,39.38]},{ x:'03/09/2023',y:[39.49,39.85,38.65,39.06]},{ x:'03/10/2023',y:[38.31,38.93,38.02,38.36]},{ x:'03/13/2023',y:[38.35,38.93,38.01,38.59]},{ x:'03/14/2023',y:[38.39,38.45,37.54,38.00]},{ x:'03/15/2023',y:[38.60,38.94,38.12,38.22]},{ x:'03/16/2023',y:[37.95,38.40,37.54,37.97]},{ x:'03/17/2023',y:[38.15,38.85,37.84,38.26]},{ x:'03/20/2023',y:[37.74,37.96,37.29,37.29]},{ x:'03/21/2023',y:[37.57,38.23,37.32,38.20]},{ x:'03/22/2023',y:[38.42,38.95,38.28,38.37]},{ x:'03/23/2023',y:[38.37,38.91,38.16,38.71]},{ x:'03/24/2023',y:[38.86,38.89,38.46,38.57]},{ x:'03/27/2023',y:[38.77,38.77,37.69,38.00]},{ x:'03/28/2023',y:[38.10,38.40,37.95,38.17]},{ x:'03/29/2023',y:[38.55,39.13,38.35,38.39]},{ x:'03/30/2023',y:[38.62,39.02,38.28,38.69]},{ x:'03/31/2023',y:[39.49,39.96,39.33,39.33]},{ x:'04/06/2023',y:[39.48,39.48,38.43,38.55]},{ x:'04/07/2023',y:[38.96,39.51,38.63,39.00]},{ x:'04/10/2023',y:[39.16,39.35,38.37,39.06]},{ x:'04/11/2023',y:[39.14,39.42,38.66,38.68]},{ x:'04/12/2023',y:[38.88,38.95,38.19,38.22]},{ x:'04/13/2023',y:[37.98,38.56,37.76,38.25]},{ x:'04/14/2023',y:[38.60,38.98,38.24,38.36]},{ x:'04/17/2023',y:[38.41,39.66,38.24,39.66]},{ x:'04/18/2023',y:[40.00,40.80,39.81,40.33]},{ x:'04/19/2023',y:[40.50,40.60,39.97,40.10]},{ x:'04/20/2023',y:[39.85,39.94,39.07,39.07]},{ x:'04/21/2023',y:[39.19,39.30,38.61,38.68]},{ x:'04/24/2023',y:[38.18,38.35,37.52,37.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00633l 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());