I am working on D3 js collapsible tree layout, i want to know is there any way we can directly feed the data from excel file rather than using json object file?
D3.js doesn’t have built-in Excel file format parser. It does, however, have a CSV format data parser. You can save your worksheet as CSV and use the resulting text as a source for the D3.js visualization.
Related
I have developed a BIRT report and need to export the output as PDF and as an Excel Spreadsheet. I am looking a solution to wrap data in PDF report exported from BIRT. A text gets truncated in the PDF, if it does not have spaces as soon as it exceeds the available width of the column.
e.g. phone number getting truncated
I would like to know if there is a solution without the need for adding a custom code as provided in How to wrap column data in birt report. This solution adds whitespace to the data which is not desirable when the report is exported to an excel spreadsheet. In essence, this solution manipulates the data which isn't the right thing to do.
I have tried using the Whitespace auto option but that does not work.
I am using BIRT version 4.12.
I was able to figure out the solution for getting the text wrapped in the PDF export. Made use of IPDFRenderOption.PDF_WORDBREAK for the same.
PDFRenderOption pdfOptions = new PDFRenderOption();
pdfOptions.setOutputFileName("T:/temp/filename.pdf");
pdfOptions.setOutputFormat("pdf");
pdfOptions.setOption(IPDFRenderOption.PDF_WORDBREAK, true);
task.setRenderOption(pdfOptions);
task.run();
Situation:need to generate excel with freemarker templates and dynamically insert pictures. But excel xml can’t save pictures (word xml can). There is a solution that using freemarker to generate text data Excel, then use poi to insert pictures. But I found that the image position isn’t static. So is there a better way to generate excel with pictures?
Use Springboot + freemarker + MySQL
Thank you.
This is similar to how to render DT::datatables in a pdf using rmarkdown?
DataTable has an option to add a pdf button and export and nice looking pdf of the Table. (see https://rstudio.github.io/DT/extensions.html)
Is there a way to do this in Rmarkdown directly? It would save me effort of converting a list of DTs to kable.
I have to generate a page data of my web site in PDF format. I need to export all the dynamic data with line, bar and pie charts. Is it possible to download in pdf format? For reminder, I am using laravel-dompdf to generate a file.
Let me know if you have any solution for this.
Thanks in advance.
I did research on it, we can not directly convert chartjs into pdf but what we can do is we can convert JS chart into image format and append into tag. Then, we can easily convert them into pdf format.
Let me know if anyone need in detail.
Thanks,
What I want is to include an xlsx sheet (or rather the data of said file) into Sphinx documentation.
Is there any way to convert an xlsx sheet to restructuredText?
You do not need to convert it to rst. If you export your xlsx sheet to a comma separated file (csv) you can then use the csv-table directive.
The great thing is that you need to set up your table in your csv only once, and whenever you update your xlsx sheet, just export again to csv to the same location of where your table was before.
.. csv-table:: The contents of my xlsx sheet exported to mytable.csv
:widths: 15 40 20
:header: "Header 1", "Header 2", "Header 3"
:file: mytable.csv
That is all. Add as many widths and headers as you have columns in your file.
Note that in the documentation a security warning is given when using the :file: option. You can choose to copy paste the comma separated text into the document. However, if you update the table regularly I find it easiest to just export again to csv.
I have just released sphinxcontrib-excel, which embeds xlsx, xls and ods data (without style, font, charts) into your sphinx documentation. And you do not need to convert from xlsx to csv because the library does it for it.
Here is an example page where it was used to render excel data in readthedocs.org directly.