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:'08/02/2023',y:[41.00,41.55,39.50,39.75]},{ x:'08/04/2023',y:[38.80,41.15,38.70,40.30]},{ x:'08/07/2023',y:[40.25,40.25,38.90,39.70]},{ x:'08/08/2023',y:[39.40,39.85,39.05,39.65]},{ x:'08/09/2023',y:[39.70,40.10,38.50,38.50]},{ x:'08/10/2023',y:[37.85,38.30,36.75,36.90]},{ x:'08/11/2023',y:[36.90,37.00,36.00,36.10]},{ x:'08/14/2023',y:[35.55,36.75,35.30,36.10]},{ x:'08/15/2023',y:[36.10,36.20,35.15,35.20]},{ x:'08/16/2023',y:[35.20,35.55,34.00,35.00]},{ x:'08/17/2023',y:[35.00,35.75,35.00,35.25]},{ x:'08/18/2023',y:[35.25,35.70,34.30,34.45]},{ x:'08/21/2023',y:[34.60,35.60,33.55,33.70]},{ x:'08/22/2023',y:[33.70,34.10,33.50,33.85]},{ x:'08/23/2023',y:[33.30,34.15,33.10,33.25]},{ x:'08/24/2023',y:[33.50,34.45,32.50,32.80]},{ x:'08/25/2023',y:[32.35,33.10,32.05,32.80]},{ x:'08/28/2023',y:[32.80,32.85,32.20,32.40]},{ x:'08/29/2023',y:[32.40,32.65,32.10,32.55]},{ x:'08/30/2023',y:[32.55,33.30,32.55,33.10]},{ x:'08/31/2023',y:[32.75,33.20,32.60,33.20]},{ x:'09/01/2023',y:[32.80,33.40,32.80,33.20]},{ x:'09/04/2023',y:[33.50,34.60,33.20,34.45]},{ x:'09/05/2023',y:[34.45,35.00,34.00,34.65]},{ x:'09/06/2023',y:[34.75,34.95,34.50,34.70]},{ x:'09/07/2023',y:[34.60,35.15,34.55,34.65]},{ x:'09/08/2023',y:[34.80,35.00,34.65,35.00]},{ x:'09/11/2023',y:[34.90,34.90,34.30,34.50]},{ x:'09/12/2023',y:[34.50,34.75,34.30,34.75]},{ x:'09/13/2023',y:[34.70,35.85,34.70,35.75]},{ x:'09/14/2023',y:[35.85,39.00,35.85,38.35]},{ x:'09/15/2023',y:[38.00,38.35,37.80,38.25]},{ x:'09/18/2023',y:[38.25,38.90,38.25,38.50]},{ x:'09/19/2023',y:[38.75,38.95,38.35,38.60]},{ x:'09/20/2023',y:[38.60,39.80,38.60,38.80]},{ x:'09/21/2023',y:[38.50,38.50,38.00,38.40]},{ x:'09/22/2023',y:[38.50,38.60,38.20,38.40]},{ x:'09/25/2023',y:[39.00,39.20,38.75,38.75]},{ x:'09/26/2023',y:[38.60,38.60,37.95,37.95]},{ x:'09/27/2023',y:[38.00,38.00,37.15,37.25]},{ x:'09/28/2023',y:[37.00,37.00,36.70,37.00]},{ x:'10/02/2023',y:[37.60,38.25,37.60,38.20]},{ x:'10/03/2023',y:[38.00,38.10,38.00,38.00]},{ x:'10/04/2023',y:[38.00,38.00,37.95,37.95]},{ x:'10/05/2023',y:[38.50,38.50,38.40,38.40]},{ x:'10/06/2023',y:[37.95,37.95,37.95,37.95]},{ x:'10/11/2023',y:[37.95,37.95,37.05,37.15]},{ x:'10/12/2023',y:[37.15,37.40,37.15,37.40]},{ x:'10/13/2023',y:[37.20,37.25,37.20,37.20]},{ x:'10/18/2023',y:[37.90,37.90,37.70,37.70]},{ x:'10/19/2023',y:[37.30,37.30,37.30,37.30]},{ x:'10/20/2023',y:[38.50,38.50,36.00,36.50]},{ x:'10/23/2023',y:[36.60,36.60,36.50,36.50]},{ x:'10/24/2023',y:[36.50,36.90,36.40,36.40]},{ x:'10/25/2023',y:[36.40,36.60,36.30,36.35]},{ x:'10/26/2023',y:[36.30,37.20,36.15,36.35]},{ x:'10/27/2023',y:[37.00,37.00,36.00,36.25]},{ x:'10/31/2023',y:[36.00,36.00,35.50,35.50]},{ x:'11/01/2023',y:[35.55,35.55,34.80,34.80]},{ x:'11/02/2023',y:[34.75,35.00,34.70,34.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4741 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());