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/07/2023',y:[29.40,29.65,29.20,29.40]},{ x:'02/08/2023',y:[30.00,30.20,29.80,29.90]},{ x:'02/09/2023',y:[29.80,30.25,29.75,29.90]},{ x:'02/10/2023',y:[30.00,30.80,29.80,30.05]},{ x:'02/13/2023',y:[30.55,30.65,29.80,30.00]},{ x:'02/14/2023',y:[30.00,30.10,29.80,29.85]},{ x:'02/15/2023',y:[29.90,30.90,29.90,30.70]},{ x:'02/16/2023',y:[30.80,31.20,30.35,30.40]},{ x:'02/17/2023',y:[30.40,30.75,30.20,30.70]},{ x:'02/20/2023',y:[31.00,31.30,30.70,30.75]},{ x:'02/21/2023',y:[30.75,31.00,30.35,30.40]},{ x:'02/22/2023',y:[30.25,30.30,29.95,30.15]},{ x:'02/23/2023',y:[30.30,30.80,30.05,30.65]},{ x:'02/24/2023',y:[30.80,30.95,30.40,30.80]},{ x:'03/01/2023',y:[30.70,31.50,30.55,30.80]},{ x:'03/02/2023',y:[30.90,31.10,30.60,30.70]},{ x:'03/03/2023',y:[30.70,30.95,30.65,30.75]},{ x:'03/06/2023',y:[31.20,31.50,30.80,31.25]},{ x:'03/07/2023',y:[31.45,32.50,31.35,31.85]},{ x:'03/08/2023',y:[31.60,35.00,31.40,35.00]},{ x:'03/09/2023',y:[38.05,38.50,37.00,38.50]},{ x:'03/10/2023',y:[37.85,39.15,37.40,38.45]},{ x:'03/13/2023',y:[38.45,38.80,35.40,37.20]},{ x:'03/14/2023',y:[36.65,38.40,36.65,37.20]},{ x:'03/15/2023',y:[37.85,37.90,35.85,36.45]},{ x:'03/16/2023',y:[35.95,36.10,35.00,35.45]},{ x:'03/17/2023',y:[35.90,36.30,35.25,35.75]},{ x:'03/20/2023',y:[35.65,37.55,35.30,37.35]},{ x:'03/21/2023',y:[37.10,37.45,36.90,37.25]},{ x:'03/22/2023',y:[38.50,38.50,37.00,37.25]},{ x:'03/23/2023',y:[36.85,37.95,36.85,37.35]},{ x:'03/24/2023',y:[37.35,37.70,37.15,37.20]},{ x:'03/27/2023',y:[37.50,37.80,37.00,37.10]},{ x:'03/28/2023',y:[37.80,37.80,35.60,35.75]},{ x:'03/29/2023',y:[36.00,36.45,35.80,35.85]},{ x:'03/30/2023',y:[36.05,37.30,35.90,37.05]},{ x:'03/31/2023',y:[37.40,37.40,36.30,37.05]},{ x:'04/06/2023',y:[37.20,37.45,36.60,37.45]},{ x:'04/07/2023',y:[37.70,37.90,37.40,37.45]},{ x:'04/10/2023',y:[37.70,38.15,37.45,37.90]},{ x:'04/11/2023',y:[36.00,36.40,35.00,36.10]},{ x:'04/12/2023',y:[36.10,37.65,36.05,37.40]},{ x:'04/13/2023',y:[37.55,37.60,36.70,37.15]},{ x:'04/14/2023',y:[37.50,38.15,37.15,37.70]},{ x:'04/17/2023',y:[38.40,40.30,37.90,39.90]},{ x:'04/18/2023',y:[39.65,40.35,38.80,40.00]},{ x:'04/19/2023',y:[40.90,40.90,38.90,39.00]},{ x:'04/20/2023',y:[38.80,39.55,37.25,37.30]},{ x:'04/21/2023',y:[37.40,37.80,35.70,36.10]},{ x:'04/24/2023',y:[36.80,38.10,36.55,37.40]},{ x:'04/25/2023',y:[38.15,39.30,37.40,37.75]},{ x:'04/26/2023',y:[37.50,38.00,36.65,37.40]},{ x:'04/27/2023',y:[37.85,37.85,36.70,37.15]},{ x:'04/28/2023',y:[37.45,38.50,37.30,38.25]},{ x:'05/02/2023',y:[38.75,41.30,38.50,40.70]},{ x:'05/03/2023',y:[40.50,41.25,39.05,40.95]},{ x:'05/04/2023',y:[41.00,41.80,40.10,40.75]},{ x:'05/05/2023',y:[40.40,40.75,39.10,39.30]},{ x:'05/08/2023',y:[39.85,40.30,39.50,39.60]},{ x:'05/09/2023',y:[40.00,40.00,38.35,38.35]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3712 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());