Forum - jschmidt-systemberatung.de

× php-RGraph and php-rgraph Joomla Content Plugin

Rotate X-axis

  • Kospas
  • Topic Author
  • Visitor
  • Visitor
2 years 5 months ago #1275 by Kospas
Rotate X-axis was created by Kospas
Hello,
Please help. I draw data into the chart from csv, where the most recent date is at the top and therefore I have the most recent date in the chart on the left. I need to rotate the X-axis in the graph so that the most recent date is to the right.
Thank you

Please Log in or Create an account to join the conversation.

More
2 years 5 months ago - 2 years 5 months ago #1277 by jochen
Replied by jochen on topic Rotate X-axis
hi,

this problem is related to your data and not to php-rgraph. I had the same issue and sovled it this way:

1. edit  csv-data e.g. with an Editor like notepad++
2. Use Menu Edit → Line Operations → Sort Lines in Ascending Order

other editors may also provide an ordering feature  to sort lines.
Last edit: 2 years 5 months ago by jochen.

Please Log in or Create an account to join the conversation.

  • Kospas
  • Topic Author
  • Visitor
  • Visitor
2 years 5 months ago #1278 by Kospas
Replied by Kospas on topic Rotate X-axis
Hello,
the problem is that I draw data from the same csv file to the table where I need the latest data at the top.
Attachments:

Please Log in or Create an account to join the conversation.

More
2 years 5 months ago #1279 by jochen
Replied by jochen on topic Rotate X-axis
hi,

why can't you use two diffenent files csv-files? First sorted by date for chart, and second unsorted for table.. 

Please Log in or Create an account to join the conversation.

  • Kospas
  • Topic Author
  • Visitor
  • Visitor
2 years 5 months ago #1280 by Kospas
Replied by Kospas on topic Rotate X-axis
Hello,
csv data is entered by BFU in one place, I can't ask him to enter the same data into two files.

Please Log in or Create an account to join the conversation.

More
2 years 5 months ago - 2 years 5 months ago #1281 by jochen
Replied by jochen on topic Rotate X-axis
hi,
plugin php-rgraph may use data provided by url.

See my sample at: www.jschmidt-systemberatung.de/index.php...5&Itemid=660&lang=en
or
www.jschmidt-systemberatung.de/index.php...6&Itemid=659&lang=en

the sample show how a called url would provide data for a chart. - In your case you would call an url which would create the sorted chart data.
Last edit: 2 years 5 months ago by jochen.

Please Log in or Create an account to join the conversation.

Time to create page: 0.127 seconds
Powered by Kunena Forum
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.