-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Add support for vertical Gridlines #2969
Comments
This Chart generator is similar to the one in #2967 33_LineChart_DateAxis_VertGridlines.php.txt
|
Does #2923, which was merged in time for the 1.24 release, not take care of this? |
I missed it, darn it. Let me check the implementation, and I’ll comment further.
(Thanks for the speedy notice!)
From: oleibman ***@***.***>
Sent: Thursday, July 28, 2022 9:31 PM
To: PHPOffice/PhpSpreadsheet ***@***.***>
Cc: bridgeplayr ***@***.***>; Author ***@***.***>
Subject: Re: [PHPOffice/PhpSpreadsheet] Add support for vertical Gridlines (Issue #2969)
Does #2923 <#2923> , which was merged in time for the 1.24 release, not take care of this?
—
Reply to this email directly, view it on GitHub <#2969 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AYXANOGBMVBPXNQMHWM6ZMTVWNNBJANCNFSM547KTTIQ> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AYXANOBVNVIHHGA67HV536DVWNNBJA5CNFSM547KTTI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI52UUUA.gif> Message ID: ***@***.*** ***@***.***> >
|
My vertical Gridlines issue #2969 is predicated on adding support for a “date” axis, issue #2967. The “date” axis is available in Excel only for LineCharts - not available on ScatterCharts, which I find maddening.
After adding a Date Axis, then needing vertical gridlines becomes clear. Without a Date axis, the x-axis is simply some number of days, and the user is unable to demarcate weeks, or months, or quarters. However, with a Date axis, the user can put in tick marks for days, weeks, months, quarters, years. The two attachments demonstrate the value of tick marks on the “date” axis, which is not possible without it. Now, with visible tick-marks, vertical Gridlines seems like the obvious next step.
I have just reviewed your merged PR 2923, and I remember having read it. I chose my path to resolution because you didn’t comprehend the “date” axis feature, which is crucial for me.
[I also want to follow up issue #2823 on DateRendering, which is not done correctly in DATEVALUE. I had to invent a new function to correctly render “4/1/2001” and distinguish it from “1/4/2001”. I can do it correctly in pure php functions, but PHPSS’s DATEVALUE implementation has no option to force it to follow the user’s date specification. My implementation comment for issue #2967 includes my function xlDateValue($datestr) which returns the correct numeric date when the date string is formatted as mm/dd/yyyy. This one is pretty high on my bitch-list.]
From: oleibman ***@***.***>
Sent: Thursday, July 28, 2022 9:31 PM
To: PHPOffice/PhpSpreadsheet ***@***.***>
Cc: bridgeplayr ***@***.***>; Author ***@***.***>
Subject: Re: [PHPOffice/PhpSpreadsheet] Add support for vertical Gridlines (Issue #2969)
Does #2923 <#2923> , which was merged in time for the 1.24 release, not take care of this?
—
Reply to this email directly, view it on GitHub <#2969 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AYXANOGBMVBPXNQMHWM6ZMTVWNNBJANCNFSM547KTTIQ> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AYXANOBVNVIHHGA67HV536DVWNNBJA5CNFSM547KTTI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI52UUUA.gif> Message ID: ***@***.*** ***@***.***> >
|
MS Excel differentiates 1/4/2001 from 4/1/2001 based on the locale settings: entering '1/4/2001' when locale is set to Until such time as we provide a locale setting (remembering that this would have to be set by the developer, even if we provided a default, because it isn't maintained in anywhere in an Excel file), then any changes to date conversion from string would be a bc break |
Fix PHPOffice#2967. Fix PHPOffice#2969 (which had already been fixed prior to opening the issue, but had added urgency for Date Axes). Add ability to set axis type to date axis, in addition to original possiblities of value axis and category axis.
* Charts - Add Support for Date Axis Fix #2967. Fix #2969 (which had already been fixed prior to opening the issue, but had added urgency for Date Axes). Add ability to set axis type to date axis, in addition to original possiblities of value axis and category axis. * Update 33_Chart_create_line_dateaxis.php No idea why php-cs-fixer is complaining. It didn't do so when I first uploaded. I can't duplicate problem on my own system. Not enough detail in error message for me to act. Grasping at straws, I have moved the function definition (which is the only use of braces in the entire script) from the end of the script to the beginning. * Update 33_Chart_create_line_dateaxis.php Some comments were mis-aligned. This may be related to the reasons behind PR #3025, which didn't take care of this because this script had not yet been merged.
This is:
What is the expected behavior?
What is the current behavior?
Supported in Excel; not supported in PHPSS
What are the steps to reproduce?
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:
If this is an issue with reading a specific spreadsheet file, then it may be appropriate to provide a sample file that demonstrates the problem; but please keep it as small as possible, and sanitize any confidential information before uploading.
What features do you think are causing the issue
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
Xlsx
Which versions of PhpSpreadsheet and PHP are affected?
1.23 7.3
The text was updated successfully, but these errors were encountered: