Question

Deprecation Notice: Upper Case Labels in Downloads and Charts (3.16+)

  • 26 March 2016
  • 0 replies
  • 238 views

Userlevel 3

As of Looker 3.16, view names are no longer capitalized in downloads and visualizations. There are also smarter features to properly capitalize certain acronyms in field names.


Old Behavior


Before Looker 3.16, view names were capitalized in data downloads, and in visualizations (such as axis labels). For example, this LookML:


- view: order
fields:
- dimension: price
...

Would appear like this:


ORDER Price


Additionally, each word in field names always started with one capital letter, followed by lower-case letters. For example, this LookML


- dimension: marketing_url
...

Would appear like this:


Marketing Url


New Behavior


As of Looker 3.16 view names are capitalized, but otherwise lowercase in data downloads and visualizations. For example, this LookML:


- view: order
fields:
- dimension: price
...

Will now appear like this:


Order Price


There is also some intelligence to properly capitalize common abbreviations like “URL” and “ID”. For example, this LookML:


- dimension: marketing_url
...

Will now appear like this:


Marketing URL


Reverting to Old Behavior


If for some reason you want view names to appear capitalized, you can use the view_label parameter. For example:


- view: order
fields:
- dimension: price
view_label: 'ORDER'
...

Or, if you don’t want abbreviations to be capitalized, you can use the label parameter. For example:


- dimension: marketing_url
label: 'Marketing Url'
...

0 replies

Be the first to reply!

Reply