title: How to share labels in faceted nested charts of "Vega Lite"?
body: <p>I want to use &quot;Vega Lite&quot; to achieve the faceted nesting effect similar to tableau. Although &quot;Vega Lite&quot; can also be achieved, the display effect is not satisfactory, which is mainly reflected in that each sub chart has its own coordinate axis label, and the information density is not high. Tableau is much more compact.</p>
  <p>This is an example of tableau:
  <a href="https://i.stack.imgur.com/0Ld7L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Ld7L.png" alt="enter image description here" /></a></p>
  <p>This is an example of vega-lite:
  <a href="https://i.stack.imgur.com/Eo6i4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Eo6i4.png" alt="enter image description here" /></a></p>
  <pre><code>{
    &quot;data&quot;: {&quot;url&quot;: &quot;https://uniplore-source.oss-cn-chengdu.aliyuncs.com/other/orders2.csv&quot;},
    &quot;spacing&quot;: 0,
    &quot;facet&quot;: {&quot;row&quot;: {&quot;field&quot;: &quot;快递方式&quot;,&quot;type&quot;: &quot;nominal&quot;,
     &quot;header&quot;:{&quot;labelExpr&quot;: &quot;null&quot;}
    }},
  
    &quot;spec&quot;: {
      &quot;facet&quot;: {&quot;column&quot;: {&quot;field&quot;: &quot;类别&quot;,&quot;type&quot;: &quot;nominal&quot;,&quot;header&quot;:{&quot;labelExpr&quot;: &quot;null&quot;}}},
      &quot;spacing&quot;: 0,
      &quot;spec&quot;: {
        &quot;spacing&quot;: 0,
        &quot;facet&quot;: {
          &quot;column&quot;: {
            &quot;field&quot;: &quot;子类别&quot;,&quot;type&quot;: &quot;nominal&quot;
          }
        },
        &quot;spec&quot;: {
          &quot;facet&quot;: {
            &quot;column&quot;: {
              &quot;field&quot;: &quot;细分&quot;,&quot;type&quot;: &quot;nominal&quot;
            }
          },
          &quot;spec&quot;: {
            &quot;mark&quot;: &quot;bar&quot;,
            &quot;spacing&quot;: 0,
            &quot;encoding&quot;: {
              &quot;x&quot;: {
                &quot;field&quot;: &quot;细分&quot;,&quot;type&quot;: &quot;nominal&quot;
              },
              &quot;y&quot;: {&quot;aggregate&quot;: &quot;sum&quot;,&quot;field&quot;:&quot;销售额&quot;}
            }
          }
        }
      }
    }
  }
  </code></pre>
  <p>You can view my example <a href="https://vega.github.io/editor/#/url/vega-lite/N4IgJghgLhIFygK4CcA28QAspQA4Gc4B6IxAOwEtdUB7ZAUwFp8aUBjegOhv30bbL9M9MgHMwiThFQUAnuTb5ObGgFsiNKMOQbkYesnwAmZfgBuIAL4AaEPlwQ2FMfAAMtgGaP6UeKGQ0AO5+IB4U9KhgGIDX+oBICYCdpoDw+iC2ULK49Bhkas7SKVj0EPrIIagQAEYRAKIAHrglcCBkiKjolu229vRsIV4cvgggKqiIqmS94ZEYgN4+gNRK+WkZWTlkebbCRQalFdV1DU0tbR12Dk4ucO4n3SH2js6ibp7eA6DDo+ODYRFRjYAK2nMLdKZRrZVS5I6dDI9T7PEJvMYTb4YQBjfoAwJUBSxBKzyxy60NAqggyAA1hhykT8rczg8LrYRCowPcQjVEVNGmiMcCmti2rZZCEIKJRAxRNAufhRvkvmyQIAAVMAdKqAXIyrO1VZYgA" rel="nofollow noreferrer">here</a>.</p>
  <p>In fact, the same amount of information can not be displayed on one screen with Vega Lite.</p>
  <p>I have tried some configurations, but the effect is not obvious.</p>
  <p>I want to know if there is any way Vega Lite can achieve the display effect of tableau.
  The most important of these is shared labels.</p>
  <p>Thank you.</p>