Comments (1)
I've implemented PDF reports generation based on DataLens dashboards using Puppeteer. There are several major obstacles in this approach.
- One should pass page width for each tab so that all elements fit into PDF page. Page height is available via
.react-grid-layout
. - DataLens loads widgets lazily, hence one needs to set viewport size equal to the page size so that all elements are loaded simultaneously. But in this way, a single tab with many widgets may load longer than default navigation timeout of 30 seconds, so one needs to adjust this timeout. Plus one may get errors from data source because it may not allow too many simultaneous connections.
.dash-tabs
element breaks PDF page width in case of a dashboard with multiple tabs. So it should be removed from the page before executingpage.pdf()
(although in my opinion horizontal tabs list is pointless in case of PDF reports, so that's a good thing that they should be removed).
It is also possible to remove some buttons from web page before rendering it as PDF.
from datalens.
Related Issues (20)
- Authorization / Object ACLs HOT 1
- Trash bin
- Improve visualisations in D3
- Add background option for Text Element HOT 1
- Add formulas to work with Clickhouse Dictionaries HOT 1
- Dicts in ClickHouse
- Additional languages support
- Use only IPv4 HOT 2
- Serving datalens ui under subpaths HOT 3
- SSL: WRONG_VERSION_NUMBER HOT 2
- demo data for docker-compose.yml as an option HOT 2
- Replacing Highcharts visualizations with D3
- API
- Markup improvements
- Cross-filtration (chart-chart)
- ChartEditor
- Improved calendar with relative dates
- DuckDB Support
- Shared objects between workbooks
- User Authentication / Identity providers HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datalens.