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

Would like some extra clarity around using pbiFormat as the formatType #22

Open
MikeCarlo opened this issue Feb 8, 2022 · 0 comments
Open

Comments

@MikeCarlo
Copy link

Issue:

I was building a heatmap where I had a date column coming in from Power BI. I needed to format the text inside the column and was struggling to change the formatting based on the Vega-lite documentation: https://vega.github.io/vega-lite/docs/format.html

Resolution:
Solving this problem was using the axis formatting like so:

  "axis": {
    "formatType": "pbiFormat",
    "format": "MMM dd"
  }

I needed to add the formatType of pbiFormat into the Axis definition.

When I read the docs, I somehow missed this.
it would be nice to highlight this a bit more, and possibly add an example or two about this.

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

1 participant