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/17/2024',y:[47.50,48.40,47.50,48.00]},{ x:'04/18/2024',y:[48.00,48.75,48.00,48.50]},{ x:'04/19/2024',y:[48.60,48.60,46.60,47.00]},{ x:'04/22/2024',y:[42.70,45.00,42.70,44.80]},{ x:'04/23/2024',y:[44.80,46.45,44.50,46.45]},{ x:'04/24/2024',y:[46.45,51.00,46.45,51.00]},{ x:'04/25/2024',y:[56.10,56.10,46.65,50.40]},{ x:'04/26/2024',y:[49.00,49.45,47.20,48.50]},{ x:'04/29/2024',y:[47.65,48.50,46.50,46.50]},{ x:'04/30/2024',y:[46.45,46.50,45.05,45.70]},{ x:'05/02/2024',y:[46.60,50.20,46.55,50.20]},{ x:'05/03/2024',y:[50.00,50.70,48.25,49.10]},{ x:'05/06/2024',y:[48.00,49.40,47.00,47.05]},{ x:'05/07/2024',y:[46.00,47.00,45.70,46.50]},{ x:'05/08/2024',y:[46.80,48.80,46.40,48.75]},{ x:'05/09/2024',y:[49.00,53.60,48.70,52.10]},{ x:'05/10/2024',y:[48.80,49.95,47.15,47.15]},{ x:'05/13/2024',y:[47.25,47.95,46.50,47.45]},{ x:'05/14/2024',y:[47.70,47.70,46.30,46.90]},{ x:'05/15/2024',y:[47.00,47.00,46.30,46.50]},{ x:'05/16/2024',y:[47.95,47.95,46.35,47.60]},{ x:'05/17/2024',y:[47.60,47.60,46.40,46.95]},{ x:'05/20/2024',y:[46.50,47.10,46.35,46.40]},{ x:'05/21/2024',y:[47.90,47.90,46.45,46.50]},{ x:'05/22/2024',y:[46.60,47.60,45.80,46.90]},{ x:'05/23/2024',y:[46.70,46.70,45.15,45.30]},{ x:'05/24/2024',y:[46.30,46.30,44.85,45.20]},{ x:'06/11/2024',y:[38.10,39.50,37.80,37.80]},{ x:'06/12/2024',y:[37.80,37.80,37.05,37.15]},{ x:'06/13/2024',y:[36.60,37.00,36.60,36.80]},{ x:'06/14/2024',y:[37.00,39.15,37.00,39.15]},{ x:'06/17/2024',y:[40.00,40.00,37.50,38.10]},{ x:'06/18/2024',y:[38.00,38.85,37.95,38.05]},{ x:'06/19/2024',y:[37.85,38.70,37.85,37.90]},{ x:'06/20/2024',y:[37.95,38.80,37.95,38.15]},{ x:'06/21/2024',y:[38.15,38.20,38.00,38.20]},{ x:'06/24/2024',y:[38.70,42.00,38.50,42.00]},{ x:'06/25/2024',y:[43.80,46.20,42.00,46.20]},{ x:'06/26/2024',y:[48.95,49.95,45.00,46.55]},{ x:'06/27/2024',y:[46.30,46.30,44.70,44.80]},{ x:'06/28/2024',y:[44.80,47.90,44.80,47.60]},{ x:'07/01/2024',y:[47.70,48.50,46.10,46.40]},{ x:'07/02/2024',y:[46.40,46.40,45.10,46.10]},{ x:'07/03/2024',y:[45.70,45.75,44.95,45.00]},{ x:'07/04/2024',y:[45.00,45.05,43.05,43.10]},{ x:'07/05/2024',y:[43.35,43.35,41.05,42.50]},{ x:'07/12/2024',y:[44.00,44.25,43.50,44.25]},{ x:'07/15/2024',y:[44.40,44.40,43.30,43.35]},{ x:'07/16/2024',y:[43.40,44.50,43.40,43.60]},{ x:'07/17/2024',y:[43.60,43.70,43.60,43.70]},{ x:'07/18/2024',y:[43.60,44.05,43.15,44.05]},{ x:'07/19/2024',y:[43.20,43.75,42.60,43.75]},{ x:'07/22/2024',y:[44.80,45.55,42.60,42.60]},{ x:'07/23/2024',y:[42.55,42.90,42.10,42.90]},{ x:'07/26/2024',y:[42.50,42.90,41.50,42.90]},{ x:'07/29/2024',y:[42.80,42.80,40.10,40.90]},{ x:'07/30/2024',y:[39.50,40.10,39.00,40.10]},{ x:'07/31/2024',y:[41.45,41.45,40.10,40.45]},{ x:'08/01/2024',y:[39.00,40.30,39.00,40.15]},{ x:'08/02/2024',y:[0.00,0.00,0.00,0.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4198 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());