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/22/2024',y:[33.75,34.05,33.75,34.00]},{ x:'01/23/2024',y:[33.95,34.25,33.95,34.00]},{ x:'01/24/2024',y:[34.05,34.40,34.00,34.00]},{ x:'01/25/2024',y:[34.35,34.35,34.00,34.05]},{ x:'01/26/2024',y:[34.05,34.45,34.00,34.20]},{ x:'01/29/2024',y:[34.05,34.50,34.05,34.45]},{ x:'01/30/2024',y:[34.45,34.60,34.45,34.50]},{ x:'01/31/2024',y:[34.60,35.20,34.45,35.00]},{ x:'02/01/2024',y:[35.20,35.60,34.90,35.45]},{ x:'02/02/2024',y:[35.55,35.75,35.10,35.40]},{ x:'02/05/2024',y:[35.40,35.75,35.30,35.55]},{ x:'02/15/2024',y:[36.10,36.20,35.55,36.05]},{ x:'02/16/2024',y:[36.25,36.65,36.25,36.40]},{ x:'02/19/2024',y:[36.45,37.00,36.45,36.75]},{ x:'02/20/2024',y:[37.00,37.10,36.20,36.20]},{ x:'02/21/2024',y:[36.05,36.60,36.00,36.00]},{ x:'02/22/2024',y:[36.30,36.30,35.80,35.80]},{ x:'02/23/2024',y:[36.05,36.30,35.80,35.80]},{ x:'02/26/2024',y:[36.00,36.95,36.00,36.40]},{ x:'02/27/2024',y:[36.80,36.80,35.50,35.50]},{ x:'02/29/2024',y:[35.85,37.80,35.65,37.70]},{ x:'03/01/2024',y:[38.10,38.75,37.25,37.90]},{ x:'03/04/2024',y:[38.05,38.05,37.10,37.10]},{ x:'03/05/2024',y:[37.35,37.65,36.75,36.75]},{ x:'03/06/2024',y:[36.95,39.30,36.75,37.45]},{ x:'03/07/2024',y:[38.00,38.00,36.60,36.60]},{ x:'03/08/2024',y:[36.75,36.95,36.00,36.05]},{ x:'03/11/2024',y:[36.10,36.60,36.10,36.20]},{ x:'03/12/2024',y:[36.45,37.10,36.45,36.50]},{ x:'03/13/2024',y:[36.55,37.90,36.55,37.15]},{ x:'03/14/2024',y:[37.80,38.15,37.20,37.20]},{ x:'03/15/2024',y:[37.60,37.90,37.05,37.10]},{ x:'03/18/2024',y:[37.70,37.95,37.05,37.75]},{ x:'03/19/2024',y:[38.15,38.45,37.55,37.55]},{ x:'03/20/2024',y:[37.55,37.60,36.70,36.70]},{ x:'03/21/2024',y:[36.75,38.15,36.75,37.80]},{ x:'03/22/2024',y:[37.95,38.90,37.95,38.70]},{ x:'03/25/2024',y:[39.50,39.70,38.70,39.20]},{ x:'03/26/2024',y:[40.00,43.10,40.00,43.10]},{ x:'03/27/2024',y:[44.00,47.40,41.10,47.25]},{ x:'03/28/2024',y:[47.15,48.80,45.00,46.25]},{ x:'03/29/2024',y:[45.55,46.25,44.50,44.80]},{ x:'04/01/2024',y:[45.10,45.10,43.05,43.05]},{ x:'04/02/2024',y:[43.10,43.55,41.85,42.00]},{ x:'04/03/2024',y:[42.05,42.70,40.95,41.00]},{ x:'04/08/2024',y:[41.05,44.30,40.95,43.85]},{ x:'04/09/2024',y:[43.45,46.90,42.75,44.95]},{ x:'04/10/2024',y:[45.15,46.30,44.60,45.95]},{ x:'04/11/2024',y:[45.25,46.10,44.35,44.35]},{ x:'04/12/2024',y:[44.35,47.80,43.65,46.60]},{ x:'04/15/2024',y:[46.95,48.90,45.55,46.40]},{ x:'04/16/2024',y:[46.40,46.40,42.20,42.35]},{ x:'04/17/2024',y:[43.00,46.55,43.00,46.55]},{ x:'04/18/2024',y:[47.55,51.20,47.55,51.20]},{ x:'04/19/2024',y:[52.00,56.30,49.00,53.10]},{ x:'04/22/2024',y:[54.70,56.40,47.80,47.80]},{ x:'04/23/2024',y:[47.80,49.40,45.60,46.90]},{ x:'04/24/2024',y:[48.00,48.75,46.25,47.40]},{ x:'04/25/2024',y:[47.05,47.40,46.20,46.35]},{ x:'04/26/2024',y:[46.85,48.15,46.10,46.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1603 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());