wesnolte / jOrgChart

A jQuery plugin to draw tree-like structures such as OrgCharts.
994 stars 674 forks source link

Print Option For The Chart #70

Open hudhaifa93 opened 9 years ago

hudhaifa93 commented 9 years ago

Will I be able to print the whole chart which i have dynamically made.??

thanks in advance

Anjan-Inspheris commented 8 years ago

Did you resolve this issue? can you share please?

hudhaifa93 commented 8 years ago

not yet. only the visible area of the chart is able to print.

Anjan-Inspheris commented 8 years ago

If we keep the chart inside a overflow scroll div and then make it print?

hudhaifa93 commented 8 years ago

even then we will need to scroll manually and call the print option again.

dabeng commented 8 years ago

Hi @hudhaifa93 @Anjan-Inspheris .OrgChart is derived from jOrgChart. It provides an option "exportButton" to help users to export orgchart as a png picture. Hope this feature can save your development efforts. This is a demo related to printing chart. Good luck! :blush: screen-capture

Mmannem commented 8 years ago

@dabeng Export working only with visible part of the chart container, if we enable Zoom feature. Can't we get full chart (whatever is on Chart container ) even if we enable options 'pan': true, 'zoom': true Any work around for this ?

KingGeneral commented 7 years ago

you can use html2Canvas,

and put the canvas inside div, when print remove all css that overflow, after print , apply them again.

hope this useful.

ref to #58