-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Implementing alternative renderers for PDF charts #2974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I just found this one comment #2783 (comment) - so I guess the official jpgraph (non-composer) version is supported. I will try that route now. Still I think it would be good to have examples of alternatives to jpgraph (especially |
Where is |
https://phpspreadsheet.readthedocs.io/en/latest/topics/migration-from-PHPExcel/#rendering-charts |
I found this maintained composer install of jpgraph. https://github.com/mitoteam/jpgraph I installed it but haven't figured out how to get this one to work, I tried the following but errored out on the
|
You can't simply throw a class name into the
That doesn't mean that an interface exists for |
I follow now. I guess I read that as Part of my confusion also came from thinking others were already in place based off this: Going to use the jpgraph.net version now. |
@MarkBaker @oleibman - as an FYI, I worked with mitoteam/MtJpGraph who has a composer install for JpGraph. They forked PhpSpreadsheet and added a new wrapper/Renderer to work with their composer install of JpGraph. They are using JpGraph 4.4.1. I have it working with my PhpSpreadsheet install now and they will be submitting a new Merge for it shortly. Makes it a lot easier to install JpGraph...particuarly for users like myself that have Linux cPanel with EashApache4 installed and multiple versions of PHP running - the JpGraph manual install was a lot more complicated than a standard PHP install, so this helps tremendously. |
This is:
What is the expected behavior?
Examples of using an alternative to jpgraph.
What is the current behavior?
The only reference I can find to using a graphics package is jpgraph which all the documentation states is no longer supported and older versions will cause errors and issues (which I am experiencing).
The only thing I can find is here CpChart
The documents suggest using CpChart as an alternative but I can't find a single reference (google, github, stackoverflow, etc) using cpchart with phpspreadsheet.
Is jpgraph no longer supported at all....even the official download/install package from jpgraph.net?
What are the steps to reproduce?
composer require syzmach/c-pchart
Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:
What features do you think are causing the issue
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
Yes
Which versions of PhpSpreadsheet and PHP are affected?
PhpSpreadsheet: 1.24.1
PHP: 7.3
The text was updated successfully, but these errors were encountered: