Closed sridharan-dlt closed 3 years ago
@TekMonksGitHub could you please review this PR.
Few things are wrong
No hash should ever be needed. In fact, 99% of times hashing to trap events is just plain wrong! HTML elements have onclick for a reason!
And many other things are wrong! Please recode.
A simple image with a onclick handler sending a simple function call to the component which uses component's memory (see Monkshu component's memory) to get the data which was used to render the chart, and then simply exports it. This is probably going to be a 10 lines of code in a single function and that is it!
I am rejecting this fix. Design and code are wrong and fundamentals are wrong.
PR overview
Functionality:
PS: As per discussion on PR #19, Export CSV functionality is re-worked using the front-end. Now the data which is visible on the dashboard is being generated as a CSV file.