Skip to content

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

@MikeCarlo

Description

@MikeCarlo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions