Forum - jschmidt-systemberatung.de

× php-RGraph and php-rgraph Joomla Content Plugin

Two graphs same page

More
2 years 1 month ago #1298 by D
Two graphs same page was created by D
Hi,

How can I display two graphs in the same page using Joomla plugin?
I have tried creating 2 different HTML custom fields in CB with each having a different graph getting data from different tables but they overlap in the front end.

Is there a way to solve this?

Thank you

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

More
2 years 1 month ago - 2 years 1 month ago #1299 by jochen
Replied by jochen on topic Two graphs same page
Hi,

you must use different chart ids - e.g.
{rgraph ... }cvs_id1{/rgraph}
and
{rgraph ... }cvs_id2{/rgraph}

you may have any number of charts within one single page if you use different chart-ids for them.
Last edit: 2 years 1 month ago by jochen.

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

More
2 years 1 month ago #1300 by D
Replied by D on topic Two graphs same page
Both graphs disappeared!
One is set as cvs_id1 and the other as cvs_id2


Attachments:

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

More
2 years 1 month ago - 2 years 1 month ago #1301 by jochen
Replied by jochen on topic Two graphs same page
hi,

you have a typo : you specified

"cvs  _id1" instead of "cvs_id1" - you may not have blanks within chart_id
Last edit: 2 years 1 month ago by jochen.
The following user(s) said Thank You: D

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

More
2 years 1 month ago - 2 years 1 month ago #1302 by D
Replied by D on topic Two graphs same page
More than correct!
Problem solved!
Thank you

I have one more question
Although I have added
xaxisScalexMax="2.016"
in an HBar, since my table has 2.016 rows the graph shows 2.500 as the last number on x.
Is there a way to limit this?
Last edit: 2 years 1 month ago by jochen.

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

More
2 years 1 month ago #1303 by jochen
Replied by jochen on topic Two graphs same page
hi,
as far as I know there is no parameter to limit x-axis data setting. You may contact/ask the developer of RGraph: at www.rgraph.net/forum/index.html

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

Time to create page: 0.274 seconds
Powered by Kunena Forum