PureJS Chart가 포함된 Excel파일을 불러와 SpreadJS에 표시가능여부 문의
추천0 비추천 0
페이지 정보
작성자 포레스트 작성일 2023-08-23 15:53 조회 206회 댓글 0건제품 버전 : 14.2.3
컨트롤 이름 : SpreadJS, ExcelIO
본문
관련링크
안녕하세요.
Excel로 템플릿 작성 후, spreadJS의 fromJSON()으로 바인드하려고 합니다.
엑셀안의 데이터 들은 정상적으로 표시되는데,
데이터를 기반으로 된 Chart는 표시되지 않습니다.
Excel에서 작성한 Chart를 표시할수 있는 방법이 있나요?
아니면, Chart 생성관련 Code를 직접 개발해야하나요?
혹시, spreadJS 14버전이라서 그런걸까요?
fetch('TEST01.xlsx') .then(response => response.blob()) .then(blob => { new GC.Spread.Excel.IO().open(blob, function (json) { spread.suspendPaint(); spread.fromJSON(json, { ignoreFormula: false, ignoreStyle: false, frozenColumnsAsRowHeaders: true, frozenRowsAsColumnHeaders: true, doNotRecalculateAfterLoad: false }); spread.resumePaint(); }); }) .catch(error => { console.error('Error fetching or processing the Excel file:', error); });
댓글목록
등록된 댓글이 없습니다.