Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Studioで使える分布機能付きのグラフ #55

Open
takegue opened this issue Feb 24, 2023 · 1 comment
Open

Data Studioで使える分布機能付きのグラフ #55

takegue opened this issue Feb 24, 2023 · 1 comment
Assignees

Comments

@takegue
Copy link
Owner

takegue commented Feb 24, 2023

GA4 Penguins
image image
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "background": "black",
  "transform": [
    { "as": "v1", "calculate": "datum['$metric0']"},
    { "as": "d1", "calculate": "datum['$dimension0']"}
  ],
  "vconcat": [
    {
      "mark": "area",
      "transform": [
        {
          "density": "v1",
          "groupby": ["d1"]
        }
      ],
      "encoding": {
        "x": {"field": "value", "type": "quantitative", "title": null, "axis": {}},
        "y": {"field": "density", "type": "quantitative"},
        "color": {"field": "d1", "type": "nominal"},
        "opacity": {"value": 0.5},
        "gird": false
      }
    },
    {
      "mark": {
        "type": "boxplot",
        "extent": "min-max"
      },
      "encoding": {
        "color": {"field": "d1", "type": "nominal", "legend": null},
        "y": {"field": "d1", "type": "nominal"},
        "x": {
          "field": "v1",
          "type": "quantitative",
          "scale": {"zero": false}
        }
      }
    }
  ]    
}
@takegue takegue self-assigned this Feb 24, 2023
@takegue
Copy link
Owner Author

takegue commented Feb 24, 2023

不満ポイント:

  • backgroundを 透明にしたい
  • サイズがデータに対して動的な可変ではない

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant