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/30/2024',y:[28.25,29.50,28.25,29.00]},{ x:'05/02/2024',y:[28.95,29.60,28.20,29.20]},{ x:'05/03/2024',y:[29.65,30.90,29.65,30.00]},{ x:'05/06/2024',y:[30.15,31.30,30.00,31.15]},{ x:'05/07/2024',y:[33.75,33.80,31.80,32.55]},{ x:'05/08/2024',y:[33.85,33.90,32.75,32.85]},{ x:'05/09/2024',y:[33.90,35.80,33.10,33.80]},{ x:'05/10/2024',y:[34.50,35.15,34.00,34.35]},{ x:'05/13/2024',y:[34.85,37.20,34.85,36.60]},{ x:'05/14/2024',y:[36.50,37.90,36.25,36.80]},{ x:'05/15/2024',y:[36.50,36.95,35.40,35.40]},{ x:'05/16/2024',y:[35.40,36.50,35.40,35.80]},{ x:'05/17/2024',y:[35.35,35.80,35.35,35.75]},{ x:'05/20/2024',y:[36.20,36.50,35.45,36.20]},{ x:'05/21/2024',y:[36.00,36.50,35.90,36.30]},{ x:'05/22/2024',y:[36.30,37.45,35.95,35.95]},{ x:'05/23/2024',y:[36.10,36.50,34.90,36.25]},{ x:'05/24/2024',y:[35.65,36.55,35.60,36.45]},{ x:'06/11/2024',y:[43.60,46.55,43.50,44.25]},{ x:'06/12/2024',y:[46.50,48.65,45.45,48.65]},{ x:'06/13/2024',y:[49.70,50.00,47.80,48.45]},{ x:'06/14/2024',y:[49.30,51.00,48.45,49.40]},{ x:'06/17/2024',y:[49.95,50.80,49.45,50.80]},{ x:'06/18/2024',y:[50.70,50.80,49.60,49.65]},{ x:'06/19/2024',y:[50.00,50.00,48.35,49.15]},{ x:'06/20/2024',y:[49.10,49.10,48.10,48.85]},{ x:'06/21/2024',y:[48.50,49.90,48.45,48.85]},{ x:'06/24/2024',y:[47.05,48.45,47.05,47.45]},{ x:'06/25/2024',y:[47.55,47.95,46.05,47.50]},{ x:'06/26/2024',y:[48.00,48.00,46.50,46.70]},{ x:'06/27/2024',y:[46.20,46.50,45.60,46.00]},{ x:'06/28/2024',y:[46.00,46.45,45.90,46.40]},{ x:'07/01/2024',y:[46.95,47.60,46.45,46.65]},{ x:'07/02/2024',y:[47.70,47.70,45.25,45.25]},{ x:'07/03/2024',y:[45.40,47.05,44.85,45.50]},{ x:'07/04/2024',y:[45.45,46.30,45.20,45.55]},{ x:'07/05/2024',y:[45.50,46.05,45.05,46.00]},{ x:'07/12/2024',y:[42.05,43.00,41.65,41.70]},{ x:'07/15/2024',y:[41.55,41.65,38.30,40.60]},{ x:'07/16/2024',y:[40.25,40.60,39.65,39.80]},{ x:'07/17/2024',y:[39.95,39.95,38.50,38.80]},{ x:'07/18/2024',y:[38.00,40.95,37.00,40.05]},{ x:'07/19/2024',y:[40.20,40.80,38.55,38.65]},{ x:'07/22/2024',y:[38.65,38.65,36.65,37.10]},{ x:'07/23/2024',y:[37.20,37.25,36.50,36.80]},{ x:'07/26/2024',y:[36.50,36.50,35.20,35.70]},{ x:'07/29/2024',y:[36.80,36.80,34.80,34.95]},{ x:'07/30/2024',y:[34.95,35.45,34.45,35.10]},{ x:'07/31/2024',y:[34.05,35.80,34.05,35.80]},{ x:'08/01/2024',y:[35.90,39.35,35.90,39.35]},{ x:'08/02/2024',y:[39.35,39.35,36.50,36.90]},{ x:'08/05/2024',y:[36.20,36.20,33.25,33.25]},{ x:'08/06/2024',y:[33.10,34.90,33.05,34.75]},{ x:'08/07/2024',y:[34.60,38.15,33.60,37.90]},{ x:'08/08/2024',y:[36.05,37.65,35.55,37.00]},{ x:'08/09/2024',y:[37.35,39.10,37.35,39.10]},{ x:'08/12/2024',y:[38.85,39.00,37.85,38.35]},{ x:'08/13/2024',y:[38.35,38.35,37.60,37.65]},{ x:'08/14/2024',y:[37.75,38.40,36.60,38.40]},{ x:'08/15/2024',y:[38.00,38.00,37.00,38.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4991 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());