plotly / plotly/plotly.js

Ternary Contour Plots in JavaScript

Open
#7,519 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
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:

Image Image

But in JS, Contour Plots in JavaScript, we only get:

Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.