Comments (4)
Hi @alagarrk ,
Thanks for the question.
A good rule of thumb is 100 px = 1 inch
as modern LCD displays are mostly 96px/inch.
You can also pass x
,y
,w
,h
and colW
percentage values, so it may be easier to just honor the layout you have now. For example, create a table that is 100% wide and has 3 columns, 25%/25%/50%, that way no pixel conversion is necessary.
Or you could be super fancy and measure the innerWidth
of an HTML element relative to its window.size and then use that same percent as arguments to the library...
from pptxgenjs.
@gitbrent Thank you for the solution. Now its works fine 👍
Currently we can able to export the basic primitives chart [http:// basicprimitives.com/index.php] to PPT using PptxGenJS (Shapes). But the problem is we have generated chart as shapes(rect & lines), all are separate elements. If user wants to change/move the parent/child node, they need to move the relative shapes(lines & arrows).
Now i am trying to add smartArt(Organisation Chart) in powerpoint to generate the chart.
Is it possible to add the smartArt Graphics and show hierarchical information or reporting relationships in an organization.?
Ex:
from pptxgenjs.
Hi @alagarrk ,
I'm very glad to hear you were successful!
SmartArt isn't something i was planning on supporting, but Charts are coming soon... :-)
from pptxgenjs.
Ok @gitbrent Thank you very much for your support.
Do you have any idea, how to add hierarchical chart in powerpoint using PptxGenJS. If you give some suggestion/idea it will very helpful for me to implement this.
Thanks in advance.
from pptxgenjs.
Related Issues (20)
- PPTs failing accessibility test: Missing Table Header
- [FEATURE] Additional shape parameters
- Text is duplicating for the "Jost Light" font style while creating PPT using PptxGenJs library HOT 3
- BUG - Graphs are not shown in Mac Keynote HOT 1
- Error: blob is not supported by this platform
- FormatCode not working in MSOffice and Google Slides
- Feature Request: support text "caps type"
- Direct HTML code cannot render to ppt it shows html tag also like head,bold tag etc HOT 1
- [FEATURE]How to use PptxGenJS to import an existing PPT file and save all the slides as pictures? HOT 2
- [BUG] pptxgenjs cannot be used in the Qiankun sub-application
- How to add shape fill with a image
- BUG - Adding border option TOP border doesn't display for specified row HOT 1
- [BUG| Auto-paging in slide.addTable is not respecting in newly added slide HOT 1
- Add column support to text body properties
- [BUG] When encountering a text with the 'align' attribute added, the subsequent default attribute text content incorrectly uses the previous 'align' attribute
- Is this library still maintained? HOT 1
- Compatibility Issue with pptxgenjs and Vite HOT 1
- [Question] Is it possible to have a text hyperlink just in part of the text?
- Add 'custGeom' to ShapeTypes HOT 1
- [FEATURE] add Series Line as option to charts
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 pptxgenjs.