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/12/2023',y:[30.20,30.20,30.20,30.20]},{ x:'01/13/2023',y:[30.20,30.20,29.90,29.90]},{ x:'01/16/2023',y:[29.90,29.90,28.20,29.00]},{ x:'01/17/2023',y:[29.00,29.20,29.00,29.20]},{ x:'01/30/2023',y:[29.40,29.70,29.40,29.65]},{ x:'01/31/2023',y:[29.50,29.50,29.50,29.50]},{ x:'02/01/2023',y:[29.55,29.90,29.55,29.55]},{ x:'02/02/2023',y:[30.00,30.95,30.00,30.50]},{ x:'02/03/2023',y:[30.50,33.55,30.50,33.55]},{ x:'02/06/2023',y:[33.90,36.90,33.90,36.90]},{ x:'02/07/2023',y:[37.50,38.80,34.10,34.75]},{ x:'02/08/2023',y:[35.80,35.80,34.75,35.20]},{ x:'02/09/2023',y:[35.60,35.60,34.50,34.85]},{ x:'02/10/2023',y:[34.85,34.85,34.00,34.00]},{ x:'02/13/2023',y:[34.90,34.90,33.70,33.80]},{ x:'02/14/2023',y:[34.95,34.95,33.85,34.05]},{ x:'02/15/2023',y:[34.70,37.45,34.70,37.45]},{ x:'02/16/2023',y:[41.15,41.15,40.50,41.15]},{ x:'02/17/2023',y:[41.05,45.25,39.55,45.25]},{ x:'02/20/2023',y:[48.20,49.75,48.10,49.75]},{ x:'02/21/2023',y:[53.90,54.70,52.30,54.70]},{ x:'02/22/2023',y:[54.40,60.10,50.50,60.10]},{ x:'02/23/2023',y:[62.00,62.00,57.00,58.30]},{ x:'02/24/2023',y:[58.60,58.60,55.00,55.20]},{ x:'03/01/2023',y:[55.50,55.50,51.50,52.20]},{ x:'03/02/2023',y:[53.30,53.70,52.20,52.70]},{ x:'03/03/2023',y:[53.00,53.90,53.00,53.10]},{ x:'03/06/2023',y:[53.50,55.80,53.00,53.90]},{ x:'03/07/2023',y:[54.80,54.80,52.40,52.60]},{ x:'03/08/2023',y:[52.60,52.60,50.20,52.50]},{ x:'03/09/2023',y:[52.40,52.40,50.50,51.30]},{ x:'03/10/2023',y:[50.80,50.80,46.80,47.00]},{ x:'03/13/2023',y:[46.70,46.70,42.30,46.30]},{ x:'03/14/2023',y:[46.30,46.90,43.70,46.30]},{ x:'03/15/2023',y:[45.80,46.10,44.80,44.80]},{ x:'03/16/2023',y:[45.00,46.00,45.00,45.20]},{ x:'03/17/2023',y:[43.40,44.30,43.10,44.10]},{ x:'03/20/2023',y:[45.40,48.50,43.90,48.50]},{ x:'03/21/2023',y:[50.00,53.30,50.00,53.30]},{ x:'03/22/2023',y:[56.30,57.00,53.00,53.50]},{ x:'03/23/2023',y:[52.20,54.00,50.00,51.00]},{ x:'03/24/2023',y:[51.50,53.40,51.20,52.00]},{ x:'03/27/2023',y:[50.10,51.30,49.55,50.20]},{ x:'03/28/2023',y:[50.00,53.00,50.00,52.20]},{ x:'03/29/2023',y:[52.50,53.00,50.70,51.50]},{ x:'03/30/2023',y:[51.50,53.00,51.10,52.00]},{ x:'03/31/2023',y:[52.10,52.20,51.00,51.10]},{ x:'04/06/2023',y:[51.10,51.50,50.10,50.90]},{ x:'04/07/2023',y:[49.40,52.00,49.40,50.90]},{ x:'04/10/2023',y:[51.80,51.80,50.10,50.20]},{ x:'04/11/2023',y:[51.10,51.10,50.40,50.70]},{ x:'04/12/2023',y:[51.20,51.20,49.90,49.90]},{ x:'04/13/2023',y:[50.00,54.80,50.00,53.60]},{ x:'04/14/2023',y:[53.00,54.60,51.50,53.90]},{ x:'04/17/2023',y:[53.50,54.20,52.50,53.90]},{ x:'04/18/2023',y:[53.90,53.90,50.80,51.00]},{ x:'04/19/2023',y:[51.60,53.00,51.30,52.20]},{ x:'04/20/2023',y:[52.30,52.50,50.00,50.60]},{ x:'04/21/2023',y:[51.30,51.30,47.60,47.60]},{ x:'04/24/2023',y:[47.50,47.60,46.00,46.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2719 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());