with an excel with charts. the output ui is not able to render the chart but I just see chart data.
My particular requirement is to create a read only excel viewer on my react web page that should render excel files as is (i.e. along with charts graphs images and all) .
Please let me know if this is possible via Ignite UI libraries.
Michael DiFilippo
answered on Jan 25, 2022 4:16 PM
Hello and thank you for contacting Infragistics. Our Excel API lets you add charts to the Spreadsheet using our chart adapter module. It can also import/export charts to and from the spreadsheet and Excel.
You may use the CodeSandbox buttons to see the code. If you want to debug the applications I would use the down arrow in the editor in the left pane to download the projects locally and run them that way then rely on the editor.
Let me know if you have any questions.
0
Kaveri InfraM
answered on Feb 3, 2022 8:26 AM
Hi ,
Thanks for this Information.
We tried to implement the same but when we try to open large spreadsheets ~5mb in size the app fails to render the same on UI . Pls check following code in Exceluitlity
Workbook.load(data, new WorkbookLoadOptions(), (w) => {
resolve(w);
}, (e) => {
reject(e);
});
We are getting this error :
Index was out of range. It must be non-negative and less than the size of the collection.
0
Michael DiFilippo
answered on Feb 3, 2022 3:08 PM
Hello,
It appears the codesandbox samples are missing our layouts package. It will prompt you to add it and after a refresh it will eventually load the sample. eg. https://codesandbox.io/s/lucid-curie-qz04z
Is it like this utility only supports .xlsx files?
0
Michael DiFilippo
answered on Feb 3, 2022 6:35 PM
Can you point out the black spot artifact you are mentioning? I cannot tell from your screenshots. Preferably, please modify the sample I linked above and attach it.
0
Kaveri InfraM
answered on Feb 4, 2022 5:41 AM
Hi Michael
Apologies, Its a Typo. I am referring to a blank spot / area in the middle of screen .
PFA screenshot
Ideally a colored chart must appear in the blank area like below.
I changed your chart type to a normal cluster bar and it's not loading in the spreadsheet. I logged a development issue and opened a support ticket for you. C-00222016
Submitting your idea will allow you to communicate directly with our product management team, track the progress of your idea at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you. Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it.