« Test » : différence entre les versions

De 21Wiki
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 308 : Ligne 308 :
           "y": {"field": "y"},
           "y": {"field": "y"},
           "width": {"value": 0.5},
           "width": {"value": 0.5},
           "height": {"value": 320},
           "height": {"value": "field"},
           "fill": {"value": "#0090FF"}
           "fill": {"value": "#0090FF"}
        }
      }
    },
    {
      "type": "rect",
      "from": {"data": "annee"},
      "encode": {
        "enter": {
"x": {"scale": "x","field": "date"},
"y": {"value": -5},
"width": {"value": 0.5},
"height": {"field": {"group": "height"},"offset": 5},
"fill": {"value": "#FF0000"}
         }
         }
       }
       }
Ligne 366 : Ligne 353 :
       }
       }
     },
     },
    {
      "type": "text",
      "from": {"data": "annee"},
      "encode": {
        "enter": {
"x": {"scale": "x","field": "date"},
"y": {"value": -5},
"angle": {"value": 0},
"fill": {"value": "#FF0000"},
"text": {"field": "name"},
"fontSize": {"value": 20}
        }
      }
    }
   ]
   ]
}
}
</graph>
</graph>

Version du 25 avril 2025 à 15:19