MENU
.net Powerful JavaScript charts
About
RGraph is a JavaScript charts library based on HTML5 SVG and canvas. RGraph is mature (over 15 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.19, 28th September 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 »

Error when trying to use the responsive() function


Posted by Rei at 08:00 on Thursday 18th March 2021 [link]
0


I want to add a responsive for my Chart using RGraph Library, the problem is every time I'm using a responsive() method (from the library) https://www.rgraph.net/canvas/responsive.html

this error message always shows up, and the chart won't render as usual (before adding a responsive method my chart works well)

Uncaught TypeError: (intermediate value).draw(...).responsive is not a function


.draw().responsive([
            {
                maxWidth: 321,
                options: {
                    xaxisLabels: ['Test', 'Junior \n Management', 'Senior \n Management', 'All Employees']
                }
            }
        ]);

Posted by Richard at 10:17 on Thursday 18th March 2021 [link]
What's the whole source code? And is the page online?

Also, are you using at least version 5.11?

[Replies are closed]