Forum


Replies: 7   Views: 2910
How to display axis data
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by HemantG  · 22-02-2018 - 11:57

Please let me know how to display values corresponding to axis of bar, column or areachart, or any parameter using which I can display values corresponding to parameters. I am using phpdocx version 3.3

Posted by admin  · 22-02-2018 - 12:23

Hello,

On http://old.phpdocx.com/api-documentation/word-content/add-chart-Word-document-with-PHP you can read all options available in the old phpdocx 3 version to work with charts.

Since the release of phpdocx 3, a lot of improvements have been done to the whole library, including a lot of new features and options to work with charts. We recommend you to upgrade to the latest version of phpdocx.

Regards.

Posted by HemantG  · 22-02-2018 - 13:42

Hello

Thanks for your reply. But problem is that I will have to make a lot of changes in my project if I upgrade the library. I have created the chart but the only problem I  am facing is displaying axis values. So please suggest me any solution to display that values.

Thanks

Posted by admin  · 22-02-2018 - 16:24

Hello,

Please check the page http://old.phpdocx.com/api-documentation/word-content/add-chart-Word-document-with-PHP. The section Chart display properties details the options available to change the chart display, those are the available options to change horizontal and vertical axis using phpdocx 3 (haxLabel, haxLabelDisplay, vaxLabel, vaxLabelDisplay, hgrid and vgrid), there aren't more options to change axis with phpdocx 3.

Regards.

Posted by HemantG  · 22-02-2018 - 16:37

Hello 

I have gone through url which you had mentioned. I tried the graphs on that url but still I am not able to get the desired output ( means data corresponding to axis). Please check and let me know another solution.

Thanks

 

Posted by admin  · 22-02-2018 - 16:40

Hello,

Sorry, but phpdocx 3 doesn't include that option.

Regards.

Posted by HemantG  · 23-02-2018 - 08:18

Hello

Thanks for your reply.  Yesterday you sent me this URL to check the documentation.

http://old.phpdocx.com/api-documentation/word-content/add-chart-Word-document-with-PHP

From this URL, I tried one of the graphs and checked the output. But the output which I got is different from the output attached to the URL.

URL for my output is: http://i68.tinypic.com/2qan4i8.jpg

URL for output attached to docx is: http://i64.tinypic.com/rjgt1x.png

I want to know why the output of mine is different though I have used the same code. In this 'http://i64.tinypic.com/rjgt1x.png' , I have also marked the section which I want to display in My Graphs. So please let me know what I am doing wrong that I am not able to generate the graph same as yours. Or is there any setting which needs to be made in docx?

Thanks

 

 

Posted by admin  · 23-02-2018 - 09:36

Hello,

The documentation available on http://old.phpdocx.com/api-documentation/word-content/add-chart-Word-document-with-PHP, is for the latest version of phpdocx 3 (version 3.7, as you can see at the top of the page). So if you are using phpdocx 3.3 some samples, options or methods may vary, to get the exact available options for phpdocx 3.3 please check the phpdoc and samples included in your package.

As your username isn't tied to any license, for further support please send to contact[at]phpdocx.com the username or e-mail of the user that purchased the license.

Regards.