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:'02/01/2023',y:[26.95,27.00,26.40,26.40]},{ x:'02/02/2023',y:[26.35,26.50,25.20,26.50]},{ x:'02/03/2023',y:[25.90,26.90,25.85,26.30]},{ x:'02/06/2023',y:[26.00,26.40,25.90,26.30]},{ x:'02/07/2023',y:[26.20,26.40,25.80,26.00]},{ x:'02/08/2023',y:[25.95,26.00,25.70,25.90]},{ x:'02/09/2023',y:[28.45,28.45,27.60,28.45]},{ x:'02/10/2023',y:[28.65,29.00,27.65,28.30]},{ x:'02/13/2023',y:[28.25,29.45,27.15,29.45]},{ x:'02/14/2023',y:[30.50,32.35,30.30,32.35]},{ x:'02/15/2023',y:[33.90,35.50,33.80,35.10]},{ x:'02/16/2023',y:[34.50,35.25,34.15,34.90]},{ x:'02/17/2023',y:[35.90,36.50,34.70,36.10]},{ x:'02/20/2023',y:[36.55,36.70,34.70,34.80]},{ x:'02/21/2023',y:[35.05,35.35,34.40,35.05]},{ x:'02/22/2023',y:[34.10,34.90,34.10,34.55]},{ x:'02/23/2023',y:[34.60,38.00,34.60,38.00]},{ x:'02/24/2023',y:[37.65,37.65,35.30,36.90]},{ x:'03/01/2023',y:[36.05,36.45,35.50,35.85]},{ x:'03/02/2023',y:[35.85,36.30,34.60,35.30]},{ x:'03/03/2023',y:[35.50,36.00,34.65,34.90]},{ x:'03/06/2023',y:[34.20,35.10,33.05,34.85]},{ x:'03/07/2023',y:[33.50,34.75,33.10,34.25]},{ x:'03/08/2023',y:[34.25,34.40,33.55,33.90]},{ x:'03/09/2023',y:[33.90,33.90,33.50,33.85]},{ x:'03/10/2023',y:[32.30,33.85,32.30,33.15]},{ x:'03/13/2023',y:[33.10,36.45,33.00,36.45]},{ x:'03/14/2023',y:[35.15,36.70,34.80,36.45]},{ x:'03/15/2023',y:[36.75,38.00,34.80,35.95]},{ x:'03/16/2023',y:[35.60,35.80,34.50,34.95]},{ x:'03/17/2023',y:[34.95,35.25,34.80,35.00]},{ x:'03/20/2023',y:[35.40,36.95,35.40,36.45]},{ x:'03/21/2023',y:[36.45,37.20,35.90,36.85]},{ x:'03/22/2023',y:[36.70,38.00,36.40,38.00]},{ x:'03/23/2023',y:[38.00,38.65,36.95,37.95]},{ x:'03/24/2023',y:[38.90,40.00,37.50,39.75]},{ x:'03/27/2023',y:[39.70,40.50,38.60,39.20]},{ x:'03/28/2023',y:[39.90,43.00,38.70,42.85]},{ x:'03/29/2023',y:[42.20,46.45,42.20,46.45]},{ x:'03/30/2023',y:[46.90,46.90,45.25,45.30]},{ x:'03/31/2023',y:[45.00,46.40,44.80,45.90]},{ x:'04/06/2023',y:[46.20,46.60,44.95,45.70]},{ x:'04/07/2023',y:[46.00,49.35,45.55,49.10]},{ x:'04/10/2023',y:[49.10,50.70,49.00,49.00]},{ x:'04/11/2023',y:[49.10,49.40,48.00,48.85]},{ x:'04/12/2023',y:[48.85,49.00,47.00,48.00]},{ x:'04/13/2023',y:[48.30,49.40,47.05,48.30]},{ x:'04/14/2023',y:[48.05,51.40,47.85,50.40]},{ x:'04/17/2023',y:[50.40,51.70,49.65,50.00]},{ x:'04/18/2023',y:[50.40,52.40,49.50,51.60]},{ x:'04/19/2023',y:[52.10,52.10,50.20,50.60]},{ x:'04/20/2023',y:[50.40,50.40,45.55,45.55]},{ x:'04/21/2023',y:[45.55,46.70,42.95,45.00]},{ x:'04/24/2023',y:[45.75,46.95,45.10,46.50]},{ x:'04/25/2023',y:[46.50,48.75,45.50,48.40]},{ x:'04/26/2023',y:[48.75,49.90,47.90,49.75]},{ x:'04/27/2023',y:[48.60,49.50,47.00,47.00]},{ x:'04/28/2023',y:[47.95,49.70,47.50,48.55]},{ x:'05/02/2023',y:[48.45,48.45,46.00,46.95]},{ x:'05/03/2023',y:[47.35,47.35,45.40,45.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6101 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());