Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for three-objective visualisation #57

Open
3 tasks
GoelBiju opened this issue May 11, 2021 · 4 comments · May be fixed by #61
Open
3 tasks

Add support for three-objective visualisation #57

GoelBiju opened this issue May 11, 2021 · 4 comments · May be fixed by #61
Labels
Backend Issues related to the server/database enhancement New feature or request Frontend Issues related to the frontend application Not MVP This is not part of the MVP and less urgent

Comments

@GoelBiju
Copy link
Owner

Description:

Add support for 3D visualisations. A good way of testing this is through three objective visualisations. This will however be difficult (or not possible) with the default D3.js we have bundled with the frontend.

For this, it may be possible to make use of Plotly.js (https://plotly.com/javascript/) and 3D scatter plots (https://plotly.com/javascript/3d-scatter-plots/). Since this library is originally in JavaScript it will need the correct typings in order to work with TypeScript otherwise the plugin will need to use React with JavaScript instead.

Acceptance criteria:

  • Backend supports three objective data and stores them correctly,
  • Three objective plugin to visualise the data (scatter graph) using an appropriate library,
  • Frontend and plugin work correctly as it should like the other plugins.
@GoelBiju GoelBiju added enhancement New feature or request Frontend Issues related to the frontend application Backend Issues related to the server/database Not MVP This is not part of the MVP and less urgent labels May 11, 2021
GoelBiju added a commit that referenced this issue May 24, 2021
GoelBiju added a commit that referenced this issue May 24, 2021
GoelBiju added a commit that referenced this issue May 25, 2021
@GoelBiju GoelBiju linked a pull request Jun 30, 2021 that will close this issue
3 tasks
@GoelBiju
Copy link
Owner Author

An option would be to use react-plotly.js, specifically Plotly.js for React. There are typings for TypeScript through @types/react-plotly.js as indicated in this issue.

@GoelBiju
Copy link
Owner Author

An option would be to use react-plotly.js, specifically Plotly.js for React. There are typings for TypeScript through @types/react-plotly.js as indicated in this issue.

There are a couple of issues with setting this up at the moment, specifically with the JavaScript heap running out of memory. There are various solutions as indicated in this issue: plotly/react-plotly.js#135

@GoelBiju
Copy link
Owner Author

An option would be to use react-plotly.js, specifically Plotly.js for React. There are typings for TypeScript through @types/react-plotly.js as indicated in this issue.

There are a couple of issues with setting this up at the moment, specifically with the JavaScript heap running out of memory. There are various solutions as indicated in this issue: plotly/react-plotly.js#135

There is a workaround to the issue as mentioned in this comment which displays the demo graph when running a plugin in dev mode. I will have to now build a scatter/scatter3d plot using this.

GoelBiju added a commit that referenced this issue Jul 30, 2021
GoelBiju added a commit that referenced this issue Jul 31, 2021
@GoelBiju
Copy link
Owner Author

An option would be to use react-plotly.js, specifically Plotly.js for React. There are typings for TypeScript through @types/react-plotly.js as indicated in this issue.

There are a couple of issues with setting this up at the moment, specifically with the JavaScript heap running out of memory. There are various solutions as indicated in this issue: plotly/react-plotly.js#135

There is a workaround to the issue as mentioned in this comment which displays the demo graph when running a plugin in dev mode. I will have to now build a scatter/scatter3d plot using this.

I have implemented a demonstration of a "scatter3d" plot using Plotly.js in 0e027dd. This is implemented from this article on creating 3D charts with React.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Issues related to the server/database enhancement New feature or request Frontend Issues related to the frontend application Not MVP This is not part of the MVP and less urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant