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:[34.75,34.80,34.00,34.35]},{ x:'01/23/2024',y:[34.45,34.45,33.70,33.90]},{ x:'01/24/2024',y:[34.05,34.75,34.05,34.55]},{ x:'01/25/2024',y:[35.00,35.00,33.95,34.30]},{ x:'01/26/2024',y:[34.20,34.25,33.45,33.65]},{ x:'01/29/2024',y:[34.00,34.40,33.85,34.10]},{ x:'01/30/2024',y:[34.15,34.45,33.45,33.55]},{ x:'01/31/2024',y:[33.80,34.50,33.80,34.25]},{ x:'02/01/2024',y:[34.30,34.70,34.00,34.00]},{ x:'02/02/2024',y:[34.00,34.75,33.90,34.05]},{ x:'02/05/2024',y:[34.30,34.30,33.80,33.85]},{ x:'02/15/2024',y:[34.10,34.45,32.50,34.05]},{ x:'02/16/2024',y:[34.20,35.15,34.20,35.05]},{ x:'02/19/2024',y:[35.65,37.00,35.10,36.90]},{ x:'02/20/2024',y:[36.85,37.80,35.60,36.75]},{ x:'02/21/2024',y:[37.20,37.20,35.90,36.45]},{ x:'02/22/2024',y:[36.80,40.05,36.80,39.05]},{ x:'02/23/2024',y:[39.75,41.60,39.10,39.85]},{ x:'02/26/2024',y:[41.40,42.40,40.15,41.20]},{ x:'02/27/2024',y:[41.20,41.30,39.20,40.40]},{ x:'02/29/2024',y:[40.35,42.55,40.25,40.75]},{ x:'03/01/2024',y:[40.90,40.90,39.25,39.50]},{ x:'03/04/2024',y:[40.30,41.65,39.95,40.10]},{ x:'03/05/2024',y:[40.90,41.20,39.70,40.15]},{ x:'03/06/2024',y:[40.50,41.50,40.15,40.85]},{ x:'03/07/2024',y:[40.80,42.00,40.25,41.00]},{ x:'03/08/2024',y:[41.00,41.00,38.00,38.25]},{ x:'03/11/2024',y:[38.50,39.35,38.50,39.00]},{ x:'03/12/2024',y:[39.20,39.65,39.00,39.40]},{ x:'03/13/2024',y:[40.10,40.10,37.80,38.10]},{ x:'03/14/2024',y:[38.25,38.25,36.50,36.60]},{ x:'03/15/2024',y:[36.70,37.20,36.20,36.20]},{ x:'03/18/2024',y:[36.60,37.30,36.15,37.25]},{ x:'03/19/2024',y:[37.55,40.00,37.55,38.95]},{ x:'03/20/2024',y:[39.05,39.70,38.50,39.10]},{ x:'03/21/2024',y:[39.50,40.85,39.15,39.15]},{ x:'03/22/2024',y:[39.15,39.30,38.45,38.60]},{ x:'03/25/2024',y:[39.20,40.60,38.80,40.05]},{ x:'03/26/2024',y:[40.40,41.00,39.75,40.65]},{ x:'03/27/2024',y:[41.25,42.00,40.35,40.65]},{ x:'03/28/2024',y:[40.60,40.90,39.90,40.35]},{ x:'03/29/2024',y:[41.00,41.35,40.40,40.65]},{ x:'04/01/2024',y:[41.25,44.30,41.10,43.25]},{ x:'04/02/2024',y:[44.25,47.55,42.60,47.55]},{ x:'04/03/2024',y:[47.05,52.10,45.85,51.50]},{ x:'04/08/2024',y:[53.30,56.60,51.40,56.60]},{ x:'04/09/2024',y:[59.30,62.20,57.60,60.50]},{ x:'04/10/2024',y:[59.00,60.00,56.40,56.60]},{ x:'04/11/2024',y:[57.80,58.80,56.50,58.80]},{ x:'04/12/2024',y:[64.50,64.50,61.00,62.40]},{ x:'04/15/2024',y:[60.40,61.60,59.00,61.50]},{ x:'04/16/2024',y:[59.70,59.70,56.20,58.60]},{ x:'04/17/2024',y:[59.50,62.40,59.50,61.40]},{ x:'04/18/2024',y:[58.50,62.20,58.50,60.80]},{ x:'04/19/2024',y:[59.10,60.30,55.00,58.70]},{ x:'04/22/2024',y:[58.00,58.20,52.90,53.40]},{ x:'04/23/2024',y:[54.40,58.70,53.50,57.60]},{ x:'04/24/2024',y:[58.00,62.70,58.00,61.40]},{ x:'04/25/2024',y:[58.80,67.50,58.60,67.50]},{ x:'04/26/2024',y:[70.00,72.40,62.50,65.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6207 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());