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:'01/22/2024',y:[27.60,27.60,27.00,27.00]},{ x:'01/23/2024',y:[27.50,27.50,27.00,27.05]},{ x:'01/24/2024',y:[27.05,27.75,27.05,27.55]},{ x:'01/25/2024',y:[27.75,27.75,27.05,27.60]},{ x:'01/26/2024',y:[27.35,27.50,27.25,27.30]},{ x:'01/29/2024',y:[27.50,30.00,27.50,30.00]},{ x:'01/30/2024',y:[31.15,32.10,31.00,31.15]},{ x:'01/31/2024',y:[31.00,32.00,30.60,32.00]},{ x:'02/01/2024',y:[32.05,34.40,31.70,34.25]},{ x:'02/02/2024',y:[34.40,34.45,32.85,33.60]},{ x:'02/05/2024',y:[33.35,34.00,33.00,33.80]},{ x:'02/15/2024',y:[34.10,34.25,33.30,33.85]},{ x:'02/16/2024',y:[32.80,34.20,32.80,33.55]},{ x:'02/19/2024',y:[33.55,34.70,33.35,34.10]},{ x:'02/20/2024',y:[34.10,35.05,33.90,34.75]},{ x:'02/21/2024',y:[34.95,35.65,34.80,35.35]},{ x:'02/22/2024',y:[35.40,35.65,34.50,34.80]},{ x:'02/23/2024',y:[34.80,35.40,33.50,34.60]},{ x:'02/26/2024',y:[34.00,34.50,31.75,32.80]},{ x:'02/27/2024',y:[33.00,34.00,32.80,33.05]},{ x:'02/29/2024',y:[33.45,36.35,33.45,36.35]},{ x:'03/01/2024',y:[36.30,37.60,35.25,36.80]},{ x:'03/04/2024',y:[36.80,36.80,36.20,36.70]},{ x:'03/05/2024',y:[36.75,37.85,36.65,36.75]},{ x:'03/06/2024',y:[38.00,38.00,36.75,37.20]},{ x:'03/07/2024',y:[37.20,37.35,36.30,36.90]},{ x:'03/08/2024',y:[36.90,37.15,35.90,37.10]},{ x:'03/11/2024',y:[36.80,40.80,36.80,40.80]},{ x:'03/12/2024',y:[40.00,40.60,39.20,40.50]},{ x:'03/13/2024',y:[40.10,41.60,39.50,41.60]},{ x:'03/14/2024',y:[42.00,42.50,40.90,42.40]},{ x:'03/15/2024',y:[42.40,43.80,42.40,43.30]},{ x:'03/18/2024',y:[44.10,44.50,43.30,44.50]},{ x:'03/19/2024',y:[44.50,47.60,44.40,45.45]},{ x:'03/20/2024',y:[45.45,46.40,44.40,45.40]},{ x:'03/21/2024',y:[45.70,47.40,45.05,45.70]},{ x:'03/22/2024',y:[45.35,46.50,45.00,45.75]},{ x:'03/25/2024',y:[46.10,46.95,45.50,46.50]},{ x:'03/26/2024',y:[46.75,47.00,45.85,46.15]},{ x:'03/27/2024',y:[46.10,47.65,44.90,47.00]},{ x:'03/28/2024',y:[47.40,47.50,46.80,47.10]},{ x:'03/29/2024',y:[47.20,47.45,46.85,46.95]},{ x:'04/01/2024',y:[46.90,47.55,46.90,47.00]},{ x:'04/02/2024',y:[47.50,49.80,47.10,49.80]},{ x:'04/03/2024',y:[49.80,51.90,48.50,49.75]},{ x:'04/08/2024',y:[49.75,54.70,49.30,54.70]},{ x:'04/09/2024',y:[55.00,60.00,55.00,59.20]},{ x:'04/10/2024',y:[59.00,62.20,58.10,61.80]},{ x:'04/11/2024',y:[65.80,65.80,55.90,59.70]},{ x:'04/12/2024',y:[59.70,65.60,59.10,65.60]},{ x:'04/15/2024',y:[65.50,70.90,65.00,68.60]},{ x:'04/16/2024',y:[70.50,70.50,62.20,65.00]},{ x:'04/17/2024',y:[65.00,69.00,65.00,67.50]},{ x:'04/18/2024',y:[67.50,69.00,66.20,68.50]},{ x:'04/19/2024',y:[67.60,69.70,64.20,66.70]},{ x:'04/22/2024',y:[65.60,67.90,64.60,64.60]},{ x:'04/23/2024',y:[64.60,66.00,63.90,64.40]},{ x:'04/24/2024',y:[65.00,65.00,63.70,63.80]},{ x:'04/25/2024',y:[63.30,63.30,60.40,61.50]},{ x:'04/26/2024',y:[62.00,63.20,60.20,60.90]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6198 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());