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

feat: allow shared type, scale, axis, legend in shared encoding #6682

Merged
merged 10 commits into from Jun 27, 2020

Conversation

kanitw
Copy link
Member

@kanitw kanitw commented Jun 25, 2020

fix #6675

I've checked all the SVG/VG diff.

@kanitw kanitw force-pushed the kw/shared-type-scale-axis branch 11 times, most recently from 6d72dd7 to 644854d Compare June 26, 2020 04:12
@kanitw kanitw added the Blocked 🕐 For issues that are blocked by other issues label Jun 26, 2020
@kanitw kanitw force-pushed the kw/shared-type-scale-axis branch 2 times, most recently from 925d9be to a0a5b92 Compare June 27, 2020 20:34
@kanitw kanitw force-pushed the kw/shared-type-scale-axis branch from a0a5b92 to 8bbff8b Compare June 27, 2020 20:37
@kanitw kanitw removed the Blocked 🕐 For issues that are blocked by other issues label Jun 27, 2020
@@ -140,7 +140,7 @@
"fill": {"value": "#ccc"},
"ariaRoleDescription": {"value": "bar"},
"description": {
"signal": "\"id: \" + (isValid(datum[\"id\"]) ? datum[\"id\"] : \"\"+datum[\"id\"]) + \"; Temperature (F): \" + (format(datum[\"record.low\"], \"\")) + \"; record.high: \" + (format(datum[\"record.high\"], \"\"))"
"signal": "\"id: \" + (isValid(datum[\"id\"]) ? datum[\"id\"] : \"\"+datum[\"id\"]) + \"; record.low: \" + (format(datum[\"record.low\"], \"\")) + \"; record.high: \" + (format(datum[\"record.high\"], \"\"))"
Copy link
Member Author

Choose a reason for hiding this comment

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

This is more accurate.

@@ -83,7 +83,7 @@
"fill": {"value": "#4c78a8"},
"opacity": {"value": 0.3},
"description": {
"signal": "\"x: \" + (format(datum[\"x\"], \"\")) + \"; y: \" + (format(datum[\"ny\"], \"\"))"
"signal": "\"x: \" + (format(datum[\"x\"], \"\")) + \"; ny: \" + (format(datum[\"ny\"], \"\"))"
Copy link
Member Author

Choose a reason for hiding this comment

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

This is more accurate.

@@ -11,7 +11,7 @@
"name": "hover_store",
"values": [
{
"unit": "layer_0_layer_0",
"unit": "layer_0",
Copy link
Member Author

Choose a reason for hiding this comment

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

This is changing because I change unnecessary nesting in the VL spec.

@@ -79,7 +79,7 @@
],
"ariaRoleDescription": {"value": "bar"},
"description": {
"signal": "\"Date in 2009: \" + (timeFormat(datum[\"date\"], '%m/%d')) + \"; open: \" + (format(datum[\"open\"], \"\")) + \"; close: \" + (format(datum[\"close\"], \"\"))"
"signal": "\"Date in 2009: \" + (timeFormat(datum[\"date\"], '%m/%d')) + \"; Price: \" + (format(datum[\"open\"], \"\")) + \"; close: \" + (format(datum[\"close\"], \"\"))"
Copy link
Member Author

Choose a reason for hiding this comment

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

This is more accurate.

@kanitw kanitw marked this pull request as ready for review June 27, 2020 20:49
@kanitw kanitw requested a review from a team June 27, 2020 20:49
Copy link
Member

@domoritz domoritz left a comment

Choose a reason for hiding this comment

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

This looks great.

I think it's the least confusing if we don't do aria for the year labels
@kanitw kanitw changed the title feat: allow expressing shared type, scale, axis, legend in the shared encoding block feat: allow shared type, scale, axis, legend in shared encoding Jun 27, 2020
@kanitw kanitw merged commit 85d6432 into master Jun 27, 2020
@kanitw kanitw deleted the kw/shared-type-scale-axis branch June 27, 2020 22:17
kanitw added a commit that referenced this pull request Jun 28, 2020
DougBurke added a commit to DougBurke/hvega that referenced this pull request Nov 3, 2020
Add a test of https://vega.github.io/vega-lite/examples/facet_bullet.html
since it shows support for the Vega-Lite 4.14 change to support
shared encodings: vega/vega-lite#6682
Fortunately we don't disallow this feature so no change is needed.
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.

A more readable way to express shared scale and guide properties
2 participants