MENU
.net Powerful JavaScript charts
About
RGraph is a JavaScript charts library based on HTML5 SVG and canvas. RGraph is mature (over 16 years old) and has a wealth of features making it an ideal choice to use for showing charts on your website.

More »

 

Download
Get the latest version of RGraph (version 6.20, 1st December 2024) from the download page. You can read the changelog here. There's also older versions available, minified files and links to cdnjs.com hosted libraries.

Download »

 

License
RGraph can be used for free under the GPL or if that doesn't suit your situation there's an inexpensive (£129) commercial license available.

More »

An error is being displayed on my page


Posted by Jon Erik at 10:43 on Thursday 29th April 2021 [link]
I get a error message
Warning: A non-numeric value encountered in /var/www/groeset.com/vannstand/plugins/content/rgraph/lib/rgraph_options.php on line 383

use the following code:

{rgraph width="500" height="400" type="Line"
data="csv" csv_parm="http://vannstand.groeset.com/VannforingOrkla.csv,23" csv_cols=" 2 , 4, 5, 6, 8, 9,10"
title="Vannstand i Orkla"
x_step="2" textAngle="20" chart_alignment="center" tooltip="#val#"
gutterBottom="60" gutterLeft="80" scaleDecimals="2"}test{/rgraph}

http://vannstand.groeset.com/

How can I fix this ?

Posted by Richard at 11:31 on Thursday 29th April 2021 [link]
3 things:

1. That's a PHP error so it's not related to RGraph.
2. Your CSV file appears to have a number of non-data lines at the start.
3. I don't recognise your RGraph "code" - it doesn't appear to be JavaScript.

Richard

Posted by Jon Erik at 15:32 on Thursday 29th April 2021 [link]
It is joomla addon
what should I do to make a nice working graph make a plain page or any ideas ?

Posted by Richard at 15:40 on Thursday 29th April 2021 [link]
Sorry I've not used Joomla before. Try asking about that error on a Joomla support forum or email list if there is one.

For a plain chart try starting with the basic Bar chart demos that come with RGraph in the demos folder.

Richard

Posted by Joachim at 16:41 on Wednesday 19th May 2021 [link]
hi,
the numbers of your csv-data must have a decimal point instead of a decimal komma. This causes the php error.

Posted by Joachim at 14:37 on Friday 21st May 2021 [link]
if rgraph-joomla plugin is >v.2.1.3 then remove last line of your csv-file or add valid data (last line contains invalid data)

[Replies are closed]