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

docs: Add 5 new examples #3851

Open
wants to merge 59 commits into
base: main
Choose a base branch
from
Open

docs: Add 5 new examples #3851

wants to merge 59 commits into from

Conversation

avatorl
Copy link
Contributor

@avatorl avatorl commented Dec 26, 2023

New Interaction Techniques examples

Example 1: A simple one-column table with a vertical scrollbar. The scrollbar responds to dragging the scrollbar with a mouse, mouse wheel scrolling, and the Page Up, Page Down, Arrow Up, and Arrow Down buttons.

Example 2: Automatically switches between a column chart and a line chart depending on the number of data points.

Example 3: An example of a custom tooltip. A map featuring a circular, semi-transparent tooltip that displays information about the county under the cursor.

New Custom Design examples

Example 4: A globe visualization of earthquakes. Enhanced and animated version.

Example 5: Table (Matrix): An example of a table (matrix) with embedded images (country flags) and bar charts.

Other changes

Warming Stripes example - data file updated

@avatorl avatorl requested a review from a team as a code owner December 26, 2023 21:54
@avatorl avatorl changed the title Add new example: table with a scrollbar docs: Add new example - table with a scrollbar Dec 26, 2023
An example of Vega visualization that automatically switches between a column chart and a line chart depending on the number of data points
@avatorl avatorl changed the title docs: Add new example - table with a scrollbar docs: Add new examples Dec 27, 2023
@avatorl avatorl changed the title docs: Add new examples docs: Add 4 new examples Dec 31, 2023
docs/examples/warming-stripes.vg.json Outdated Show resolved Hide resolved
@avatorl avatorl requested a review from domoritz January 10, 2024 19:24
Copy link
Member

Choose a reason for hiding this comment

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

dynamic or dynamical?

image: /examples/img/column-line-dynamical.png
---

An example of a Vega visualization that automatically switches between a Column chart and a Line chart depending on the number of data points.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
An example of a Vega visualization that automatically switches between a Column chart and a Line chart depending on the number of data points.
An example of a Vega visualization that automatically switches between a bar chart and a line chart depending on the number of data points.


An example of a Vega visualization that automatically switches between a Column chart and a Line chart depending on the number of data points.

Use the slider to change the number of data points displayed on the chart. For more than 50 data points, the chart type will be changed from a Column chart to a Line chart (with interpolation).
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Use the slider to change the number of data points displayed on the chart. For more than 50 data points, the chart type will be changed from a Column chart to a Line chart (with interpolation).
Use the slider to change the number of data points displayed on the chart. For more than 50 data points, the chart type will be changed from a bar chart to a line chart (with interpolation).

Copy link
Member

Choose a reason for hiding this comment

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

Let's not change it here since it should come from Vega datasets.

Copy link
Member

Choose a reason for hiding this comment

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

Will it be a problem that we don't have this in Vega datasets? If we want it there, maybe we should support the whole world?

Copy link
Member

Choose a reason for hiding this comment

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

Same as above. Is it a problem that we don't have this in Vega datasets? Maybe you can instead use an existing example dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants