Dominik Moritz

Results 1545 comments of Dominik Moritz

Simpler example [Open the Chart in the Vega Editor](https://vega.github.io/editor/#/url/vega-lite/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykBaADZ04JAKyUAVhDYA7EABoQAEySYUqUMSSCGcCGgDaoAB5oQARkUgAnmgAMlMQF8Fp8wCZrd1I5cBdVxA4WSg2ZRpZMjR3TRAAMxo4QWVzMyVMGxw4cwBHBiRZTDo1GlIQIJ9QROTU9DslaB0cuIAvOAAnNjR4nQg4IMzsvIKikuLy5yDkDoBrcygaDqhBHOcgA)

Looks like this comes from Vega ```json { "$schema": "https://vega.github.io/schema/vega/v5.json", "padding": 5, "height": 100, "width": 100, "scales": [ { "name": "s", "type": "linear", "domain": [0.5, 0.5], "range": [{"signal": "height"}, 0],...

I agree that it's not super convenient but it's unclear where the line should switch from continuous to stroked. Also, this will need to be done in Vega and would...

Is this a Vega embed or Vega issue?

I think adding new methods to the expression language is easy and we should do it if there is a good use case.

In general, expression functions that are stand alone should be easy to add but anything that interacts with marks and rendering will be trickier to get right.

Yes, and some more specific JS APIs are documented at https://github.com/vega/vega/tree/main/packages/vega-scale

Like this [Open the Chart in the Vega Editor](https://vega.github.io/editor/#/url/vega-lite/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykBaADZ04JAKyUAVhDYA7EABoQAEySYUqUMSSCGcCGgDaoAB5oADJXMBGAL4LTFynYcgzqF44-2vnt2j93a3Mffw8Q1yDzCK8xaND3AA54gF17EGQAJwBrNBAcNhpZTEUQOFkoNmUisjQvUAAzGjhBZTyzJWgdODqQTABPHB70QTZapSYkCGHg23TK0czeppa29A6QLsFh0AGhvNHxkEnpgPNO2ERhkGIaTJpqgzmlNhwkKDp+3u1dGbnbIA)

Did https://github.com/vega/vega/blob/main/packages/vega-scale/README.md help? What did you try? Would d3 work for you instead (which Vega uses internally)?