question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support blend-mode in mark properties

See original GitHub issue

New vega and vega-lite now support blend-mode

https://vega.github.io/vega-lite/docs/mark.html#color

So, I try it with

alt.Chart(stocks).mark_line(blend='multiply').encode(
  x='date:T',
  y='price',
  color='symbol'
).interactive()

But it gives an error.

    altair.vegalite.v4.schema.core.MarkDef, validating 'additionalProperties'

    Additional properties are not allowed ('blend' was unexpected)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jakevdpcommented, Mar 22, 2020

I think that will work, but be aware that that branch is in development and currently fails Altair’s unit tests, so I wouldn’t recommend using it for anything important.

0reactions
korakotcommented, Mar 22, 2020

Like this?

!pip install -e git+https://github.com/jakevdp/altair.git@vl44
Read more comments on GitHub >

github_iconTop Results From Across the Web

Change a layer's blend mode in Motion - Apple Support
In the Properties Inspector, click the Blend Mode pop-up menu, then choose a different mode. Choose Object > Blend Mode, then choose a...
Read more >
mix-blend-mode - CSS-Tricks
The mix-blend-mode property defines how an element's content should blend with its background. For example, the text of a could blend with ...
Read more >
Creative text styling with the CSS mix-blend-mode property
mix-blend-mode is a CSS property that defines how the content of an element should blend with the content of the element's parent and...
Read more >
Scripting API: BlendMode - Unity - Manual
The blend mode is set separately for source and destination, and it controls the blend factor of each component going into the blend...
Read more >
Mark | Vega-Lite
For example, point marks support shape and size properties in addition to these ... The color blend mode for drawing an item on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found