question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Box Plot shows null column name when axis channel title is null

See original GitHub issue

For box plots when the axis title is set to null the tooltip doesn’t fall back to the field name because getTitle only checks whether the title is undefined.

Looks to have been introduced by the combo of #6674 & #6689

Screen Shot 2020-07-21 at 2 15 03 PM

Sample spec: https://vega.github.io/editor/#/gist/0bdaadbfd7335144108bcd99aef96458/box_plot_null_axis_title.json

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
domoritzcommented, Jul 22, 2020

The behavior is expected. The field title should not be null. We forgot to disallow it but will do that soon. Instead of setting the field title, set the axis title to null.

{
...
  "mark": {"type": "boxplot", "ticks": true},
  "encoding": {
    "x": {
      "type": "ordinal",
      "field": "State",
      "axis": {"title": null}
    },
    "y": {
      "type": "quantitative",
      "field": "Cost",
      "axis": {"title": null}
    }
  }
}
0reactions
domoritzcommented, Jul 23, 2020

We still need to fix that null isn’t allowed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Box plot shows "[object Object]" for Y axis label with no way to ...
I have provided a CSV file to test with. Load CSV with Timestamp column as Index and set Timestamp column to be parsed...
Read more >
Display empty cells, null (#N/A) values, and hidden worksheet ...
By default, data that is hidden in rows and columns in the worksheet is not displayed in a chart, and empty cells or...
Read more >
Exploring ggplot2 boxplots - Defining limits and adjusting style
Identifying boxplot limits and styles in ggplot2. ... theme_USGS_box() + scale_y_continuous(sec.axis = dup_axis(label = NULL, name = NULL), ...
Read more >
Add name to boxplot in R - Stack Overflow
In my case I wanted to sum up some columns in one boxplot and label the outliers at the same time, hence I...
Read more >
Encodings — Altair 4.2.0 documentation
In Altair, this mapping of visual properties to data columns is referred to as an encoding, ... If null , the axis for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found