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:'03/07/2024',y:[26.05,26.05,25.95,26.00]},{ x:'03/08/2024',y:[28.60,28.60,28.60,28.60]},{ x:'03/11/2024',y:[31.45,31.45,31.45,31.45]},{ x:'03/12/2024',y:[29.00,29.95,28.35,29.45]},{ x:'03/13/2024',y:[28.65,32.35,28.45,32.30]},{ x:'03/14/2024',y:[32.30,32.35,29.10,31.20]},{ x:'03/15/2024',y:[30.00,31.20,28.80,30.60]},{ x:'03/18/2024',y:[30.60,30.60,29.35,30.00]},{ x:'03/19/2024',y:[29.80,30.70,28.90,28.95]},{ x:'03/20/2024',y:[28.90,29.90,28.50,29.10]},{ x:'03/21/2024',y:[29.35,30.40,28.95,29.30]},{ x:'03/22/2024',y:[29.80,29.80,28.40,28.75]},{ x:'03/25/2024',y:[29.00,29.00,28.40,28.95]},{ x:'03/26/2024',y:[29.45,29.45,28.30,29.00]},{ x:'03/27/2024',y:[28.95,31.90,28.95,31.90]},{ x:'03/28/2024',y:[33.00,35.05,32.50,35.05]},{ x:'03/29/2024',y:[37.10,38.55,36.50,38.55]},{ x:'04/01/2024',y:[42.40,42.40,42.40,42.40]},{ x:'04/02/2024',y:[46.60,46.60,46.60,46.60]},{ x:'04/03/2024',y:[51.20,51.20,49.20,51.20]},{ x:'04/08/2024',y:[56.00,56.30,56.00,56.30]},{ x:'04/09/2024',y:[61.90,61.90,52.50,59.50]},{ x:'04/10/2024',y:[57.00,57.00,53.60,53.60]},{ x:'04/11/2024',y:[52.70,54.40,50.30,53.90]},{ x:'04/12/2024',y:[53.90,54.50,52.40,52.70]},{ x:'04/15/2024',y:[52.90,52.90,51.30,51.60]},{ x:'04/16/2024',y:[51.60,51.60,46.55,47.50]},{ 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]} ] }], 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());