vega-litevegavega-embedvega-lite-api

How I avoid ',' in y axis label in VegaLite?


I am trying to creating a chart in VegaLite. I have a specific requirement for y axis label I did not want to display ',' in y axiss value label. For example - 15,000 (in vegalite showing) but I required 15000

Issue -enter image description here

Editor Link

How can I achieve this in VegaLite?


Solution

  • Adding config following the docs seems to do the trick.

    {
      "config": { 
        "axisLeft": {
          "format": "d"
        }
      }
    }
    

    Updated Sandbox

    #Format Configuration mentions it uses D3 Format so have a look at that if you want to customize the number labels further.