deneb-viz / deneb-viz.github.io

Documentation website for the Deneb custom visual for Power BI.
https://deneb-viz.github.io
8 stars 6 forks source link

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

Open MikeCarlo opened 2 years ago

MikeCarlo commented 2 years ago

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.