tokyodev-inc / tokyodev-devographics

0 stars 0 forks source link

Add Employer Type as a default tab #347

Closed pwim closed 1 day ago

pwim commented 4 days ago

Would it be hard to add a default "Employer Type" tab like we're doing for the compensation breakdown:

{
  "options": {
    "showDefaultSeries": false,
    "enableYearSelect": false,
    "mode": "default",
    "queryOnLoad": false,
    "cutoff": 10,
    "cutoffType": "count",
    "limit": 20,
    "mergeOtherBuckets": false,
    "preventQuery": false
  },
  "filters": [
    {
      "year": 2024,
      "conditions": [
        {
          "fieldId": "current_employer",
          "sectionId": "employer_info",
          "operator": "eq",
          "value": "japanese_company"
        }
      ]
    },
    {
      "year": 2024,
      "conditions": [
        {
          "fieldId": "current_employer",
          "sectionId": "employer_info",
          "operator": "eq",
          "value": "japanese_subsidiary"
        }
      ]
    },
    {
      "year": 2024,
      "conditions": [
        {
          "fieldId": "current_employer",
          "sectionId": "employer_info",
          "operator": "eq",
          "value": "international_company"
        }
      ]
    },
    {
      "year": 2024,
      "conditions": [
        {
          "fieldId": "current_employer",
          "sectionId": "employer_info",
          "operator": "eq",
          "value": "sole_proprietorship"
        }
      ]
    }
  ]
}
SachaG commented 3 days ago

Add it to every chart you mean?

pwim commented 2 days ago

Yes to every chart (but Employer Type itself).