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:'04/29/2024',y:[27.50,29.35,26.75,29.00]},{ x:'04/30/2024',y:[29.70,30.00,27.55,29.70]},{ x:'05/02/2024',y:[30.70,32.65,30.05,32.65]},{ x:'05/03/2024',y:[34.20,35.00,32.05,33.40]},{ x:'05/06/2024',y:[34.00,36.30,32.50,35.80]},{ x:'05/07/2024',y:[36.00,36.65,33.10,34.00]},{ x:'05/08/2024',y:[34.00,34.60,32.75,33.95]},{ x:'05/09/2024',y:[34.35,35.50,33.50,33.50]},{ x:'05/10/2024',y:[33.90,34.40,32.50,33.00]},{ x:'05/13/2024',y:[32.60,32.65,31.05,31.80]},{ x:'05/14/2024',y:[31.80,31.90,30.10,30.15]},{ x:'05/15/2024',y:[30.60,30.75,29.90,30.20]},{ x:'05/16/2024',y:[30.25,32.65,30.25,31.25]},{ x:'05/17/2024',y:[31.10,31.85,30.60,30.85]},{ x:'05/20/2024',y:[31.10,31.45,30.45,30.75]},{ x:'05/21/2024',y:[30.95,32.70,30.95,31.65]},{ x:'05/22/2024',y:[31.20,31.90,31.05,31.15]},{ x:'05/23/2024',y:[31.05,31.05,29.45,29.45]},{ x:'05/24/2024',y:[29.00,30.50,28.55,30.10]},{ x:'06/11/2024',y:[33.80,34.05,32.80,33.00]},{ x:'06/12/2024',y:[33.20,33.35,32.00,32.40]},{ x:'06/13/2024',y:[32.45,33.00,32.15,32.45]},{ x:'06/14/2024',y:[32.45,34.40,32.45,33.95]},{ x:'06/17/2024',y:[34.50,34.65,33.10,33.25]},{ x:'06/18/2024',y:[33.25,33.65,33.10,33.20]},{ x:'06/19/2024',y:[33.25,33.70,32.65,32.65]},{ x:'06/20/2024',y:[32.75,33.30,32.40,32.55]},{ x:'06/21/2024',y:[32.55,32.75,31.80,31.80]},{ x:'06/24/2024',y:[31.80,32.35,31.50,32.10]},{ x:'06/25/2024',y:[32.45,32.55,31.50,31.80]},{ x:'06/26/2024',y:[31.85,32.20,31.15,31.20]},{ x:'06/27/2024',y:[31.20,31.45,30.60,31.45]},{ x:'06/28/2024',y:[31.50,31.70,30.85,30.95]},{ x:'07/01/2024',y:[30.80,34.00,30.80,33.55]},{ x:'07/02/2024',y:[33.30,33.35,32.30,32.35]},{ x:'07/03/2024',y:[32.30,32.80,32.10,32.55]},{ x:'07/04/2024',y:[32.55,32.95,32.15,32.75]},{ x:'07/05/2024',y:[33.05,34.00,32.75,33.80]},{ x:'07/12/2024',y:[38.50,39.40,37.90,39.20]},{ x:'07/15/2024',y:[42.55,42.55,40.10,40.60]},{ x:'07/16/2024',y:[40.90,43.25,40.75,42.40]},{ x:'07/17/2024',y:[42.70,43.95,41.50,41.70]},{ x:'07/18/2024',y:[41.70,42.20,40.60,41.85]},{ x:'07/19/2024',y:[41.95,42.55,39.25,41.40]},{ x:'07/22/2024',y:[41.90,41.90,39.70,41.55]},{ x:'07/23/2024',y:[42.50,45.70,42.45,45.70]},{ x:'07/26/2024',y:[44.00,48.80,43.50,47.65]},{ x:'07/29/2024',y:[47.70,52.40,47.20,52.40]},{ x:'07/30/2024',y:[55.10,55.50,50.00,52.00]},{ x:'07/31/2024',y:[52.30,57.20,52.00,55.30]},{ x:'08/01/2024',y:[54.80,57.80,52.70,55.40]},{ x:'08/02/2024',y:[55.00,57.60,50.00,50.30]},{ x:'08/05/2024',y:[47.00,47.00,45.30,45.30]},{ x:'08/06/2024',y:[45.30,46.00,40.80,40.80]},{ x:'08/07/2024',y:[40.00,44.80,39.45,43.00]},{ x:'08/08/2024',y:[43.20,44.30,40.80,42.30]},{ x:'08/09/2024',y:[43.85,45.40,42.80,43.10]},{ x:'08/12/2024',y:[43.30,46.90,43.30,46.00]},{ x:'08/13/2024',y:[46.00,49.50,45.40,48.35]},{ x:'08/14/2024',y:[49.00,49.70,47.50,47.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3188 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());