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:[29.80,30.30,29.60,29.85]},{ x:'01/23/2024',y:[30.00,30.50,30.00,30.25]},{ x:'01/24/2024',y:[30.55,30.85,30.25,30.40]},{ x:'01/25/2024',y:[30.80,30.80,29.80,29.80]},{ x:'01/26/2024',y:[30.30,30.30,29.50,29.65]},{ x:'01/29/2024',y:[29.75,30.55,29.65,30.40]},{ x:'01/30/2024',y:[30.65,30.70,30.05,30.10]},{ x:'01/31/2024',y:[30.05,30.45,29.75,30.05]},{ x:'02/01/2024',y:[30.10,32.25,30.10,31.80]},{ x:'02/02/2024',y:[31.90,32.20,31.10,31.35]},{ x:'02/05/2024',y:[31.20,31.25,30.15,30.40]},{ x:'02/15/2024',y:[30.50,30.85,29.80,30.60]},{ x:'02/16/2024',y:[30.90,32.20,30.85,32.10]},{ x:'02/19/2024',y:[32.30,33.25,32.30,32.45]},{ x:'02/20/2024',y:[32.40,32.50,31.40,31.50]},{ x:'02/21/2024',y:[31.50,32.20,31.50,31.85]},{ x:'02/22/2024',y:[31.95,33.60,31.55,33.00]},{ x:'02/23/2024',y:[33.30,33.50,32.40,32.45]},{ x:'02/26/2024',y:[33.40,34.65,32.70,32.70]},{ x:'02/27/2024',y:[33.05,34.50,32.20,33.60]},{ x:'02/29/2024',y:[34.15,35.80,33.80,34.90]},{ x:'03/01/2024',y:[35.60,37.15,34.45,35.75]},{ x:'03/04/2024',y:[35.85,35.95,34.80,34.85]},{ x:'03/05/2024',y:[34.95,35.65,34.55,35.30]},{ x:'03/06/2024',y:[35.30,36.40,35.05,35.40]},{ x:'03/07/2024',y:[35.15,35.45,33.50,33.65]},{ x:'03/08/2024',y:[33.35,33.50,31.30,31.40]},{ x:'03/11/2024',y:[31.10,32.95,30.95,32.80]},{ x:'03/12/2024',y:[32.55,35.20,32.45,34.55]},{ x:'03/13/2024',y:[35.15,36.30,34.25,34.55]},{ x:'03/14/2024',y:[35.60,35.60,33.85,34.75]},{ x:'03/15/2024',y:[35.30,35.30,33.90,33.90]},{ x:'03/18/2024',y:[34.15,35.25,33.65,34.90]},{ x:'03/19/2024',y:[35.30,36.60,35.15,35.70]},{ x:'03/20/2024',y:[35.90,35.90,34.20,34.55]},{ x:'03/21/2024',y:[34.65,35.95,34.55,35.45]},{ x:'03/22/2024',y:[36.00,37.50,35.70,36.65]},{ x:'03/25/2024',y:[37.15,38.80,36.25,37.20]},{ x:'03/26/2024',y:[37.65,40.80,36.40,38.55]},{ x:'03/27/2024',y:[38.55,39.65,37.25,39.25]},{ x:'03/28/2024',y:[38.95,39.45,37.70,38.45]},{ x:'03/29/2024',y:[38.20,38.35,36.65,37.30]},{ x:'04/01/2024',y:[37.30,38.00,37.10,37.45]},{ x:'04/02/2024',y:[37.65,37.75,36.80,37.20]},{ x:'04/03/2024',y:[37.20,37.65,36.30,36.30]},{ x:'04/08/2024',y:[36.30,39.30,36.30,38.95]},{ x:'04/09/2024',y:[38.85,40.65,38.30,39.45]},{ x:'04/10/2024',y:[40.00,40.95,38.65,39.70]},{ x:'04/11/2024',y:[39.50,40.20,38.70,39.15]},{ x:'04/12/2024',y:[39.10,43.05,38.60,43.05]},{ x:'04/15/2024',y:[45.20,47.35,43.30,47.35]},{ x:'04/16/2024',y:[48.25,51.00,48.10,48.30]},{ x:'04/17/2024',y:[49.55,53.10,49.50,53.10]},{ x:'04/18/2024',y:[58.00,58.40,57.10,58.40]},{ x:'04/19/2024',y:[63.50,64.20,59.00,64.20]},{ x:'04/22/2024',y:[68.00,69.80,57.80,57.80]},{ x:'04/23/2024',y:[56.00,61.50,54.30,55.60]},{ x:'04/24/2024',y:[58.00,61.10,57.00,57.70]},{ x:'04/25/2024',y:[58.20,58.20,55.50,55.60]},{ x:'04/26/2024',y:[56.00,59.40,55.90,57.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1618 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());