Ternary Contour Plots in JavaScript
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
I would like to reopen #3503.
Currently there is no native support of ploting contours in ternary plot, the current official documentation for it is wrong (or inconsistent). As reported in this issue from the graphing-library-docs repo.
In plotly.py, Ternary contours in Python, there are ternary contour plots examples:
But in JS, Contour Plots in JavaScript, we only get:
Apparently, the JS example only fills the area instead of doing what is expected of a "contour" plot.
It would be great if this could be implemented (or if it already is, but only requires data transformation? ) and if there were examples showing how to plot the contours as in Ternary contours in Python.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked JavaScript ternary-contour and contour-plots documentation, then compare them with the linked Python ternary-contour examples. Determine whether Plotly.js already supports the requested rendering or requires implementation and examples; done means JavaScript can produce contour lines comparable to the Python examples and the official documentation is correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100