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/11/2023',y:[44.00,44.25,42.90,43.25]},{ x:'01/12/2023',y:[43.25,43.50,43.20,43.40]},{ x:'01/13/2023',y:[43.30,43.35,43.00,43.15]},{ x:'01/16/2023',y:[43.15,43.15,42.80,42.90]},{ x:'01/17/2023',y:[43.10,43.10,42.60,42.80]},{ x:'01/30/2023',y:[43.15,44.80,43.05,44.50]},{ x:'01/31/2023',y:[44.45,44.90,44.45,44.60]},{ x:'02/01/2023',y:[44.80,46.25,44.80,45.95]},{ x:'02/02/2023',y:[46.00,46.20,45.80,46.00]},{ x:'02/03/2023',y:[46.00,46.20,45.45,45.85]},{ x:'02/06/2023',y:[45.55,45.90,45.00,45.30]},{ x:'02/07/2023',y:[45.20,45.55,45.00,45.55]},{ x:'02/08/2023',y:[45.65,46.20,45.30,45.35]},{ x:'02/09/2023',y:[45.35,45.50,45.00,45.35]},{ x:'02/10/2023',y:[45.00,45.45,44.80,44.80]},{ x:'02/13/2023',y:[44.95,45.15,44.70,44.80]},{ x:'02/14/2023',y:[44.90,45.75,44.90,45.10]},{ x:'02/15/2023',y:[44.95,45.40,44.90,45.05]},{ x:'02/16/2023',y:[45.35,45.50,44.90,45.40]},{ x:'02/17/2023',y:[45.40,46.50,45.40,45.95]},{ x:'02/20/2023',y:[46.00,46.80,46.00,46.70]},{ x:'02/21/2023',y:[46.75,47.10,46.70,46.70]},{ x:'02/22/2023',y:[45.80,46.75,45.80,46.75]},{ x:'02/23/2023',y:[47.00,47.00,46.60,46.65]},{ x:'02/24/2023',y:[46.70,46.70,45.90,46.05]},{ x:'03/01/2023',y:[45.60,45.90,45.40,45.45]},{ x:'03/02/2023',y:[45.35,46.45,45.30,46.00]},{ x:'03/03/2023',y:[46.90,46.90,46.05,46.70]},{ x:'03/06/2023',y:[47.00,47.85,46.90,47.80]},{ x:'03/07/2023',y:[47.90,48.25,47.80,48.00]},{ x:'03/08/2023',y:[48.00,48.00,47.00,47.95]},{ x:'03/09/2023',y:[47.60,47.80,47.10,47.10]},{ x:'03/10/2023',y:[46.80,47.00,45.75,47.00]},{ x:'03/13/2023',y:[46.75,46.75,45.70,46.05]},{ x:'03/14/2023',y:[45.70,46.15,45.50,45.55]},{ x:'03/15/2023',y:[45.55,46.00,45.10,46.00]},{ x:'03/16/2023',y:[45.05,45.40,45.00,45.40]},{ x:'03/17/2023',y:[45.40,46.15,45.00,45.50]},{ x:'03/20/2023',y:[45.10,46.05,45.10,45.35]},{ x:'03/21/2023',y:[45.70,45.95,45.30,45.35]},{ x:'03/22/2023',y:[45.75,47.10,45.50,46.80]},{ x:'03/23/2023',y:[46.90,47.00,46.65,46.65]},{ x:'03/24/2023',y:[46.80,47.05,45.90,47.05]},{ x:'03/27/2023',y:[47.00,47.20,45.15,45.70]},{ x:'03/28/2023',y:[45.95,46.15,45.70,45.80]},{ x:'03/29/2023',y:[46.00,46.05,45.40,45.65]},{ x:'03/30/2023',y:[45.75,45.85,45.55,45.60]},{ x:'03/31/2023',y:[45.80,45.80,45.40,45.45]},{ x:'04/06/2023',y:[45.30,45.65,45.30,45.35]},{ x:'04/07/2023',y:[45.40,45.85,45.25,45.45]},{ x:'04/10/2023',y:[45.40,45.70,45.25,45.45]},{ x:'04/11/2023',y:[46.00,46.10,45.65,45.70]},{ x:'04/12/2023',y:[45.75,45.85,45.75,45.85]},{ x:'04/13/2023',y:[45.80,45.80,45.50,45.55]},{ x:'04/14/2023',y:[45.50,45.60,45.30,45.45]},{ x:'04/17/2023',y:[45.50,46.20,45.45,46.05]},{ x:'04/18/2023',y:[46.05,46.35,45.70,46.05]},{ x:'04/19/2023',y:[46.50,46.70,45.60,45.85]},{ x:'04/20/2023',y:[45.75,45.75,45.20,45.25]},{ x:'04/21/2023',y:[45.25,45.25,44.40,44.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1338 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());