Skip to content

Add DumbbellPlot Viz Operator - #2149

Merged
bobbai00 merged 18 commits into
masterfrom
jiadong-add-dumbbellplot-operator
Sep 20, 2023
Merged

bobbai00 merged 18 commits into
masterfrom
jiadong-add-dumbbellplot-operator

Conversation

@bobbai00

@bobbai00 bobbai00 commented Sep 14, 2023 •

Copy link
Copy Markdown
Contributor

This pull request introduces the DumbbellPlot viz operator.

A Dumbbell Plot, often referred to as a Dumbbell Chart, is a type of data visualization primarily used to compare the difference between two set of data points. This operator allows user to select which two sets of data to compare, which measurement to compare, and entities involved in the comparison.

For implementation details, this operator is a python-native operator. It accepts the user-specified data and generate corresponding python script. The figure is created with plotly.graph_objects.Figure. More details about the plotly Dumbbell chart drawing is available here.

Here is a small demo:
2023-09-19 17 35 56

The icon image is from Icon by Freepik

@bobbai00
bobbai00 requested a review from yunyad September 14, 2023 23:33
@bobbai00 bobbai00 self-assigned this Sep 14, 2023
@bobbai00
bobbai00 force-pushed the jiadong-add-dumbbellplot-operator branch from 9b77e63 to aeaa06c Compare September 15, 2023 18:33

@yunyad yunyad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bobbai00 bobbai00 changed the title Add DumbbellPlot Operator Add DumbbellPlot Operator (#2149) Sep 20, 2023
@bobbai00 bobbai00 changed the title Add DumbbellPlot Operator (#2149) Add DumbbellPlot Operator Sep 20, 2023
@bobbai00 bobbai00 changed the title Add DumbbellPlot Operator Add DumbbellPlot Viz Operator Sep 20, 2023
@bobbai00
bobbai00 merged commit d0164b0 into master Sep 20, 2023
@bobbai00
bobbai00 deleted the jiadong-add-dumbbellplot-operator branch September 20, 2023 00:41
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
This pull request introduces the DumbbellPlot viz operator.

A Dumbbell Plot, often referred to as a Dumbbell Chart, is a type of
data visualization primarily used to compare the difference between two
set of data points. This operator allows user to select which two sets
of data to compare, which measurement to compare, and entities involved
in the comparison.

For implementation details, this operator is a python-native operator.
It accepts the user-specified data and generate corresponding python
script. The figure is created with `plotly.graph_objects.Figure`. More
details about the plotly Dumbbell chart drawing is available
[here](https://plotly.com/python/dumbbell-plots/).

Here is a small demo:
![2023-09-19 17 35
56](https://github.com/Texera/texera/assets/43344272/e2861808-c919-4761-99ab-1046d6b38831)


The icon image is from <a
href="https://www.freepik.com/icon/dumbbell_206254">Icon by Freepik</a>
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Nov 3, 2026
…os in LICENSE (apache#9261)

### What changes were proposed in this PR?

Three operator icons came from sources whose licences are incompatible
with an Apache release, so they can't be covered by `DISCLAIMER-WIP` and
must be replaced before RC1 (apache#8984). This PR replaces them the same way
as apache#9220, and fixes two smaller items from the same audit.

| File | Was | Now | Licence |
|---|---|---|---|
| `SankeyDiagram.png` | Adobe Stock asset (per its embedded metadata) |
IBM Carbon
[`sankey-diagram--alt`](https://cdn.jsdelivr.net/npm/@carbon/[email protected]/svg/32/sankey-diagram--alt.svg)
(`@carbon/icons` 11.91.0) | Apache-2.0 |
| `DumbbellPlot.png` | Freepik icon (apache#2149) | Project-made: drawn
dumbbell plot (lines with an open start and a filled end dot) | — |
| `TypeCasting.png` | Noun Project icon, author never recorded (apache#929) |
IBM Carbon
[`transform--binary`](https://cdn.jsdelivr.net/npm/@carbon/[email protected]/svg/32/transform--binary.svg)
(`@carbon/icons` 11.91.0) | Apache-2.0 |
| `SklearnDummyClassifier.png`, `SklearnTrainingDummyClassifier.png`
(new) | No icon: the existing `SklearnDummy*.png` files match no
operator type, so these operators showed a broken image | Project-made:
typographic "Dummy" in [Aileron](https://dotcolon.net/fonts/aileron)
(CC0 1.0), like the "P(A)" and "PA" icons in apache#9220 | — |

<img width="770" height="890" alt="image"
src="https://github.com/user-attachments/assets/08f63fa1-10ce-4702-9aeb-70246f67b22d"
/>

**LICENSE.** The two Carbon icons are added to the existing Carbon
operator-icon entry in `LICENSE` and `frontend/LICENSE-binary`;
project-made icons get no entry. The PNGs are 256×256 and record their
source, licence and copyright in PNG text metadata (`exiftool -Comment
<file>`), as in apache#9220.

**Apache Arrow and AsterixDB logos.** `ArrowSource.png` and
`AsterixDBSource.png` are byte-identical to the official logos in
[`apache/arrow-site`](https://github.com/apache/arrow-site/blob/229e92ede438bb6e13417eda141551c242cff334/img/arrow-logo_hex_black-txt_white-bg.png)
and
[`apache/asterixdb-site`](https://github.com/apache/asterixdb-site/blob/00f9bf22dd19e8645315fb2b139527a575dae9c1/img/asterixdb_tm.png)
(same git blob hash). This adds an entry for them with a trademark note.
It records their provenance for the audit; strictly, [bundled ASF works
need no LICENSE
entry](https://infra.apache.org/licensing-howto.html#bundle-asf-product),
so I'm happy to drop it if reviewers prefer.

### Any related issues, documentation, discussions?

Part of apache#8984 (follows apache#9220). Related: apache#8800, apache#2149, apache#929.

The icons that no operator uses (including `SklearnDummy*.png`,
`HdfsFileScan.png` and `src/favicon.ico`) are left for a separate PR,
pending the decision on apache#8984.

Backport: the five icon files are identical on `release/v1.3`, and both
dummy-classifier operators exist there. `LICENSE` has one trivial
conflict on `release/v1.3` (it has no ORCID entry next to the new
block), so the backport may need to be done by hand.

### How was this PR tested?

Asset and LICENSE change only, no code change.

- Previewed every icon at the 35 px size the workflow canvas draws them
at (see the before/after image).
- Checked that the third-party files are listed in both `LICENSE` and
`frontend/LICENSE-binary` and the project-made ones are not.
- Checked the PNG notices: `exiftool -s -Comment
frontend/src/assets/operator_images/{SankeyDiagram,DumbbellPlot,TypeCasting,SklearnDummyClassifier}.png`.
- Checked the Arrow and AsterixDB logos against the upstream files: `git
hash-object` matches the blobs in `apache/arrow-site` and
`apache/asterixdb-site`.
- License header check, as in `check-header.yml`: `license-eye -c
.licenserc.yaml header check` reports 0 invalid files.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-5-5)

No image-generation model was used. Claude Code was used to search the
icon sets, render the SVGs to PNG, draw the project-made icons from
simple shapes and text, and write the LICENSE entries; every icon was
chosen by the author.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants