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

Overlays: points on top of lines, line on top of areas #508

Closed
kanitw opened this issue Jul 19, 2015 · 0 comments
Closed

Overlays: points on top of lines, line on top of areas #508

kanitw opened this issue Jul 19, 2015 · 0 comments
Assignees
Milestone

Comments

@kanitw
Copy link
Member

kanitw commented Jul 19, 2015

Line chart often have points marks on top by default. Maybe add a config to automatically layout point on top of line to make it hoverable?

More importantly, when there is only a single data point. No line would be draw. Augmenting a point is very useful in this case.

{
  "description": "Line chart of Horsepower over time",
  "data": {"url": "data/cars.json"},
  "mark": "line",
  "encoding": {
    "x": {"field": "Year", "type": "temporal", "timeUnit": "month"},
    "y": {"field": "Horsepower", "type": "quantitative", "aggregate": "mean"}
  }
}

vega_editor

If you change the mark to point, you can still see the point.

vega_editor

- [ ] allow **overlaying point on top of line/mark** so that we can see the data if there is only one point and also make it easier to hover line data. - [ ] add `config.mark.overlayPoint` - [ ] support shape with lines / areas (which modifies `point`) - [ ] apply the overlayed shape to legends - [ ] similarly for area, one might want to overlay both point and line on top of area

<img width="319" alt="vega_editor" src="https://cloud.githubusercontent.com/assets/111269/12525909/2c0fcb1a-c11d-11e5-8c50-a62aca237283.png”/>

@kanitw kanitw added Bug 🐛 P1 Critical -- to fix ASAP labels Jul 19, 2015
@kanitw kanitw self-assigned this Jul 19, 2015
@kanitw kanitw added this to the 0.7 milestone Jul 19, 2015
@kanitw kanitw changed the title timeUnit: month broken overlay points on top of lines Jul 19, 2015
@kanitw kanitw added Priority/3-Medium and removed P1 Critical -- to fix ASAP labels Jul 20, 2015
@kanitw kanitw modified the milestones: 0.7, 0.9 Aug 11, 2015
@kanitw kanitw modified the milestones: 0.9, 1.0 Oct 14, 2015
@kanitw kanitw removed their assignment Oct 16, 2015
@kanitw kanitw removed the Bug 🐛 label Oct 16, 2015
@kanitw kanitw modified the milestones: 1.0, 1.0? Dec 15, 2015
@kanitw kanitw modified the milestones: 1.0? , 1.x Features, 1.x.x Patches & Minor Features Jan 12, 2016
@kanitw kanitw removed this from the 1.x Features milestone Jan 12, 2016
@kanitw kanitw modified the milestones: 1.0, 1.x.x Patches & Minor Features Jan 22, 2016
@kanitw kanitw modified the milestones: 1.x.x Patches & Minor Features, 1.0 Jan 22, 2016
@ayush29feb ayush29feb self-assigned this Feb 3, 2016
@kanitw kanitw changed the title overlay points on top of lines Overlays: points on top of lines, line on top of areas Feb 7, 2016
@kanitw kanitw added Blocked 🕐 For issues that are blocked by other issues and removed Easy labels Feb 7, 2016
@kanitw kanitw added #-to assign and removed Blocked 🕐 For issues that are blocked by other issues labels Apr 6, 2016
@kanitw kanitw self-assigned this Jun 10, 2016
@kanitw kanitw closed this as completed Jun 19, 2016
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

No branches or pull requests

2 participants