Code Monkey home page Code Monkey logo

Comments (4)

gitbrent avatar gitbrent commented on August 27, 2024

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.

alagarrk avatar alagarrk commented on August 27, 2024

@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:
samplediagram

from pptxgenjs.

gitbrent avatar gitbrent commented on August 27, 2024

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.

alagarrk avatar alagarrk commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.