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/11/2023',y:[29.80,30.05,29.80,29.95]},{ x:'01/12/2023',y:[30.00,30.05,29.95,29.95]},{ x:'01/13/2023',y:[29.95,30.00,29.80,29.80]},{ x:'01/16/2023',y:[29.85,30.00,29.80,29.80]},{ x:'01/17/2023',y:[30.00,30.45,30.00,30.10]},{ x:'01/30/2023',y:[30.10,30.30,30.05,30.10]},{ x:'01/31/2023',y:[30.30,30.30,30.10,30.25]},{ x:'02/01/2023',y:[30.25,30.40,30.25,30.35]},{ x:'02/02/2023',y:[30.20,31.00,30.20,30.85]},{ x:'02/03/2023',y:[30.85,30.95,30.70,30.85]},{ x:'02/06/2023',y:[30.85,30.85,30.45,30.65]},{ x:'02/07/2023',y:[30.70,30.75,30.60,30.70]},{ x:'02/08/2023',y:[30.80,30.80,30.50,30.60]},{ x:'02/09/2023',y:[30.40,30.40,30.10,30.15]},{ x:'02/10/2023',y:[30.60,31.30,30.35,31.05]},{ x:'02/13/2023',y:[32.00,32.65,31.50,32.40]},{ x:'02/14/2023',y:[32.75,32.90,32.20,32.35]},{ x:'02/15/2023',y:[32.45,32.50,32.05,32.20]},{ x:'02/16/2023',y:[32.50,33.45,32.50,33.15]},{ x:'02/17/2023',y:[33.20,34.00,33.10,33.65]},{ x:'02/20/2023',y:[33.65,34.00,33.60,33.75]},{ x:'02/21/2023',y:[33.40,33.50,33.20,33.35]},{ x:'02/22/2023',y:[33.35,33.35,33.00,33.25]},{ x:'02/23/2023',y:[33.10,33.60,33.10,33.45]},{ x:'02/24/2023',y:[33.60,33.60,33.35,33.55]},{ x:'03/01/2023',y:[33.55,34.15,33.50,34.00]},{ x:'03/02/2023',y:[34.10,34.20,33.40,33.50]},{ x:'03/03/2023',y:[33.50,33.85,33.50,33.75]},{ x:'03/06/2023',y:[33.85,33.95,33.80,33.85]},{ x:'03/07/2023',y:[33.85,34.00,33.75,33.95]},{ x:'03/08/2023',y:[33.75,34.25,33.75,34.00]},{ x:'03/09/2023',y:[34.00,34.00,33.80,34.00]},{ x:'03/10/2023',y:[34.00,34.00,33.15,33.60]},{ x:'03/13/2023',y:[33.80,34.10,33.55,34.10]},{ x:'03/14/2023',y:[33.80,34.35,33.80,34.30]},{ x:'03/15/2023',y:[34.35,36.90,34.35,35.60]},{ x:'03/16/2023',y:[35.75,35.75,34.85,34.90]},{ x:'03/17/2023',y:[35.15,36.40,35.10,36.40]},{ x:'03/20/2023',y:[36.30,36.95,36.25,36.70]},{ x:'03/21/2023',y:[36.95,38.50,36.95,37.75]},{ x:'03/22/2023',y:[37.95,38.60,37.95,38.40]},{ x:'03/23/2023',y:[38.40,38.55,37.75,38.25]},{ x:'03/24/2023',y:[38.25,38.40,36.85,37.50]},{ x:'03/27/2023',y:[38.00,39.60,37.65,38.30]},{ x:'03/28/2023',y:[38.45,39.30,38.35,39.00]},{ x:'03/29/2023',y:[39.30,40.00,39.10,39.55]},{ x:'03/30/2023',y:[40.00,42.00,40.00,41.70]},{ x:'03/31/2023',y:[44.80,45.85,44.60,45.85]},{ x:'04/06/2023',y:[46.05,46.45,45.00,45.95]},{ x:'04/07/2023',y:[46.00,46.15,43.55,44.85]},{ x:'04/10/2023',y:[45.50,46.20,44.50,45.75]},{ x:'04/11/2023',y:[46.50,50.30,45.70,49.90]},{ x:'04/12/2023',y:[51.00,52.40,49.20,51.10]},{ x:'04/13/2023',y:[50.30,51.70,48.60,48.85]},{ x:'04/14/2023',y:[53.00,53.70,51.60,53.70]},{ x:'04/17/2023',y:[52.70,55.70,52.40,54.30]},{ x:'04/18/2023',y:[55.20,56.30,51.40,54.70]},{ x:'04/19/2023',y:[54.50,57.80,53.50,55.90]},{ x:'04/20/2023',y:[55.30,56.30,52.60,52.80]},{ x:'04/21/2023',y:[52.90,53.50,47.80,50.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3032 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());