Error when trying to use the responsive() function - Official support forum | RGraph.net

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 now closed]