ajoo Posted December 20, 2019 Share Posted December 20, 2019 (edited) Hi all ! I am using the phpgraphlib library for charting. I am using a bar-graph. (example 3 on https://github.com/elliottb/phpgraphlib/commit/d5096c8cbb38d75452f4d7036b7a64979b5e19db). I am displaying the dates on the x-axis. However the dates only show the month and date but the year is cutoff. Is there some way to get the x-axis to move up to accommodate the complete date along the x-axis? Thank you. Edited December 20, 2019 by ajoo Quote Link to comment https://forums.phpfreaks.com/topic/309720-charting-using-phpgraphlib-dates-on-x-axis-cutoff/ Share on other sites More sharing options...
ajoo Posted December 20, 2019 Author Share Posted December 20, 2019 Hi all ! I managed to find the solution. For anyone interested, the following code / command manages it. $graph->setupYAxis(n,'color'); where n is an integer. Thanks ! Quote Link to comment https://forums.phpfreaks.com/topic/309720-charting-using-phpgraphlib-dates-on-x-axis-cutoff/#findComment-1572727 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.