Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
4 years ago
Solved

Combinar XYPlot y Scatter Plot

Hola

Quiero combinar un diagrama XY y un diagrama de dispersión. ¿Es posible?

Por ejemplo, quiero combinar estos 2 gráficos en una sola vista.

BigLo_0-1634219244998.png

  • Es posible con un visual personalizado llamado Deneb, pero requiere un poco de aprendizaje.

    Más sobre Deneb aquí:

    Deneb - Visualización declarativa en Power BI (deneb-viz.github.io)

    KerKol_0-1634434542117.png

    {
      "data": {"name": "dataset"},
        "layer": [
          {
            "mark": {
              "type": "point",
              "opacity": 0.5
            },
            "encoding": {
              "x": {
                "field": "Sale Price",
                "type": "quantitative"
              },
              "y": {
                "field": "Units",
                "type": "quantitative"
              },
              "color": {
                "field": "Project",
                "type": "nominal"
              }
            }
          },
          {
            "mark": {"type": "line"},
            "encoding": {
              "x": {
                "field": "Sale Price",
                "type": "quantitative"
              },
              "y": {
                "aggregate": "mean",
                "field": "Units",
                "type": "quantitative"
              },
              "color": {
                "field": "Project",
                "type": "nominal"
              }
            }
          }
        ]
    }

3 Replies