PHPExcel icon indicating copy to clipboard operation
PHPExcel copied to clipboard

is it possible to create a chart with secondary y-axis using PHPExcel?

Open simkimsia opened this issue 12 years ago • 19 comments

I manage to create chart using PHPExcel.

But I was not able to create one with secondary y-axis.

Please advise.

simkimsia avatar Jan 29 '13 04:01 simkimsia

At this point in time, PHPExcel doesn't support secondary axes in charts

MarkBaker avatar Jan 29 '13 10:01 MarkBaker

Understood.

Thank you.

Please continue the great work you have with PHPExcel! It is awesome!!

With gratitude, KimSia 金城

On Tue, Jan 29, 2013 at 6:54 PM, Mark Baker [email protected]:

At this point in time, PHPExcel doesn't support secondary axes in charts

— Reply to this email directly or view it on GitHubhttps://github.com/PHPOffice/PHPExcel/issues/134#issuecomment-12829487.

simkimsia avatar Jan 30 '13 07:01 simkimsia

Hi Mark Thanks for the project it really is handy for reporting. Is there any plan to implement secondary axes any time soon? Jeremy

jeremyferrett avatar May 29 '13 11:05 jeremyferrett

Hi Mark,

Any update on this?

Thank you for this incredibly awesome library.

ConAntonakos avatar Oct 25 '13 20:10 ConAntonakos

Hey Mark:

Any update on being able to add a secondary y-axis to a chart?

Thanks again for your work on this library

lynxtdc avatar Jul 24 '14 16:07 lynxtdc

Hi Mark,

Any update on this? :D

eisberg avatar Feb 10 '15 11:02 eisberg

I'm looking for this feature as well. Any updates?

raisen avatar Apr 21 '15 02:04 raisen

Hi all, i'm also looking for the secondary axis feature.. any updates ? thank you

akelalix avatar Oct 22 '15 02:10 akelalix

Hi Mark,

Any updates? I'm looking as well.... Thanks

betocantu93 avatar Apr 01 '16 19:04 betocantu93

Hi Mark,

I really appreciate this great library, And I'm using it for almost all projects where I have to deal with Excel files. For my actual project I really need this secondary y-axis feature could you please provide me an alternative for this?

yours, sincerely.

harrati avatar Apr 13 '16 09:04 harrati

If you give the data in a certain way, Excel will do it for you, maybe this tut can help you on how you should give the data, in phpexcel you could just then select all this data and excel will do the trick, this worked for me in a secondary x level... Here is the tut http://excelribbon.tips.net/T001188_Two-Level_Axis_Labels.html

betocantu93 avatar Apr 13 '16 13:04 betocantu93

Also I look forward to! Tell me what the problem is with the implementation of this feature?

I think you need to take, and to resolve this issue!

eisberg avatar Aug 23 '16 11:08 eisberg

Hi, here, secondary axis chart on PHPExcel.

It's long time but my work required it. So I created this one. To give it back to community so I have to make pull request back to the original code.

https://github.com/PHPOffice/PHPExcel/pull/1037

Thank you again.

Porrapat avatar Oct 17 '16 05:10 Porrapat

Hi I'm trying to get the solution Porrapat has made to work in Laravel 5.3 using PHP 5.6.23. But I unfortunately, I cannot get it to work - I'm not sure if it's only me who has merged it in wrong or if it only work for older versions

But it would be great if his solution could be implemented!

anr-isu avatar Nov 03 '16 08:11 anr-isu

I have tested it on PHP 5.4.7.

Porrapat avatar Nov 03 '16 11:11 Porrapat

This one will be useful to help me test it. http://officeopenxml.com/anatomyofOOXML-xlsx.php

Thank you.

Porrapat avatar Nov 03 '16 11:11 Porrapat

@Porrapat Excellent patch (#1037)! This just saved me. Works great on PHP 5.6.28.

Thank you!

TrieBr avatar Jan 04 '17 00:01 TrieBr

@TrieBr Happy to hear you can solve the same problem we face.

Thank you to you too!

Porrapat avatar Jan 04 '17 01:01 Porrapat

Thank you for save my time.

With help of this https://github.com/PHPOffice/PHPExcel/pull/1037 patch i have created successfully secondary Y axis But now i have faced one problem is set custom secondary Y axis plot means i want to set custom start point , end point and plot interval for secondary Y axis.

Is it possible in PHPExcel 1.8.1 ?

KishanPatel007 avatar Jan 05 '18 12:01 KishanPatel007