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:[47.00,49.40,46.65,49.40]},{ x:'01/23/2024',y:[51.50,53.60,49.00,49.30]},{ x:'01/24/2024',y:[49.80,50.30,46.60,48.40]},{ x:'01/25/2024',y:[48.90,51.50,47.25,47.25]},{ x:'01/26/2024',y:[47.50,51.20,46.30,48.25]},{ x:'01/29/2024',y:[48.20,48.70,45.85,46.00]},{ x:'01/30/2024',y:[45.60,46.50,43.20,44.15]},{ x:'01/31/2024',y:[44.60,46.35,43.90,45.00]},{ x:'02/01/2024',y:[44.95,44.95,42.65,42.75]},{ x:'02/02/2024',y:[42.85,43.65,41.20,41.40]},{ x:'02/05/2024',y:[41.00,42.05,39.40,39.90]},{ x:'02/15/2024',y:[39.50,40.60,38.80,39.85]},{ x:'02/16/2024',y:[39.25,42.50,38.80,39.95]},{ x:'02/19/2024',y:[40.20,40.80,39.40,39.55]},{ x:'02/20/2024',y:[40.00,40.40,38.55,38.55]},{ x:'02/21/2024',y:[38.55,39.60,38.25,39.20]},{ x:'02/22/2024',y:[39.60,40.55,37.65,39.95]},{ x:'02/23/2024',y:[40.65,43.00,39.90,39.90]},{ x:'02/26/2024',y:[40.20,40.75,39.90,40.35]},{ x:'02/27/2024',y:[39.95,40.30,37.75,37.90]},{ x:'02/29/2024',y:[37.20,37.85,36.80,37.05]},{ x:'03/01/2024',y:[37.50,37.95,37.15,37.45]},{ x:'03/04/2024',y:[38.20,39.75,37.60,38.90]},{ x:'03/05/2024',y:[38.90,39.70,38.00,39.20]},{ x:'03/06/2024',y:[39.30,42.30,39.20,40.25]},{ x:'03/07/2024',y:[40.50,41.20,38.10,38.10]},{ x:'03/08/2024',y:[38.25,38.55,36.60,37.10]},{ x:'03/11/2024',y:[37.20,38.65,37.10,38.25]},{ x:'03/12/2024',y:[35.05,35.95,34.45,34.45]},{ x:'03/13/2024',y:[32.50,33.05,31.05,31.05]},{ x:'03/14/2024',y:[31.25,32.25,30.70,31.20]},{ x:'03/15/2024',y:[31.90,31.90,30.20,30.20]},{ x:'03/18/2024',y:[30.30,30.65,30.00,30.60]},{ x:'03/19/2024',y:[30.80,30.85,30.05,30.25]},{ x:'03/20/2024',y:[30.50,30.85,29.85,30.35]},{ x:'03/21/2024',y:[30.60,30.95,30.50,30.65]},{ x:'03/22/2024',y:[31.15,31.20,30.15,30.20]},{ x:'03/25/2024',y:[30.30,30.85,30.15,30.55]},{ x:'03/26/2024',y:[30.90,30.90,29.60,29.65]},{ x:'03/27/2024',y:[29.95,29.95,28.80,28.85]},{ x:'03/28/2024',y:[29.00,29.45,28.60,28.60]},{ x:'03/29/2024',y:[28.70,29.20,28.50,29.20]},{ x:'04/01/2024',y:[29.40,29.80,29.10,29.60]},{ x:'04/02/2024',y:[29.75,30.00,28.85,29.10]},{ x:'04/03/2024',y:[29.55,29.60,28.65,29.60]},{ x:'04/08/2024',y:[30.15,31.35,30.05,30.60]},{ x:'04/09/2024',y:[30.90,31.80,30.55,30.80]},{ x:'04/10/2024',y:[31.15,31.35,30.00,30.10]},{ x:'04/11/2024',y:[30.10,30.10,29.35,29.90]},{ x:'04/12/2024',y:[30.25,30.90,29.65,30.40]},{ x:'04/15/2024',y:[30.25,30.25,28.85,28.85]},{ x:'04/16/2024',y:[29.00,29.00,27.15,27.65]},{ x:'04/17/2024',y:[27.50,28.85,27.50,28.75]},{ x:'04/18/2024',y:[28.75,28.80,28.05,28.60]},{ x:'04/19/2024',y:[28.25,28.50,26.50,27.80]},{ x:'04/22/2024',y:[27.80,27.80,26.55,26.55]},{ x:'04/23/2024',y:[26.65,27.15,26.25,26.55]},{ x:'04/24/2024',y:[26.70,29.20,26.70,29.20]},{ x:'04/25/2024',y:[29.90,31.20,28.25,28.25]},{ x:'04/26/2024',y:[28.40,30.20,28.40,28.55]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6140 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());