So I tried the wrapper <Dygraph/> but the error I get in this case is:
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check the render method ..."
// state = {
// zoom: null,
// clicked: null,
// data: [[1,10,100], [2,20,80], [3,50,60], [4,70,80]]
// };
Now this is the test data I'm passing in within <Dygraph data = {this.state.data}/> is such. All my imports are correct and present as far as I can see.
Am I missing anything obvious here? Is there any simple Dygraph test code I can run meant for React. I haven't been able to find any information for Dygraph working with React ): Although NPM does have a few react wrappers for Dygraph none of them have any documentation and I can't get them to work either ...
Many thanks! I really hope I'm just making a foolish mistake somewhere!!! I love the functionality of Dygraph but just can't get it to work. Every single other type of graphing tool I've implemented (IE: react chart js google chart etc) has worked beautifully but none match the functionality that I'm looking for with Dygraph!!! I still believe in Dygraph please work!!!