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

Removing the whitespace above a scatter plot [newbie] #29

Closed Mike-Honey closed 1 year ago

Mike-Honey commented 1 year ago

Thanks so much for this wonderful tool. I was able to quickly build my first effort - a scatter plot.

The one bit I'm still trying to figure out is how to remove the whitespace at the top. I'm guessing it's something to do with the "header" object?

Here's my spec:

{
  "data": {"name": "dataset"},
  "mark": {
    "type": "point",
    "filled": true,
    "size": 20,
    "color": "#444444",
    "tooltip": true
  },
  "encoding": {
    "x": {
      "field": "Report Date_1",
      "type": "temporal",
      "title": null
    },
    "y": {
      "field": "Random 1",
      "type": "quantitative",
      "axis": null
    }
  }
}

In this screenshot, the green bar is the standard Power BI Title, which I'd prefer to leave in place. There's a lot of whitespace at the top, between the Power BI title and the top of the scatter plot. The whitespace at the left and right and bottom looks reasonable to me.

image

Mike-Honey commented 1 year ago

Please ignore - it seems it was a result of the default row limit setting, and the Y axis field being the first one in my Values well (so Power BI was sorting ascending).