Khác biệt giữa các bản “Bản mẫu:Graph:Niên đại địa chất Mặt trăng”
| Dòng 1: | Dòng 1: | ||
| − | + | {{#tag:graph|{ | |
| − | { | ||
"width": {{{width|800}}}, | "width": {{{width|800}}}, | ||
"height": 120, | "height": 120, | ||
| Dòng 133: | Dòng 132: | ||
} | } | ||
] | ] | ||
| − | } | + | } }} |
Phiên bản lúc 21:01, ngày 5 tháng 12 năm 2020
Lỗi cú pháp,
"title": {"fontSize": {"value": 13}}
}
}
],
"marks": [
{
"type": "text",
"properties": {
"enter": {
"x": {"value": -30},
"y": {"value": 70},
"fill": {"value": "#000"},
"text": {"value": "Kỷ"},
"fontSize": {"value": 13},
"fontWeight": {"value": "bold"},
}
}
},
{
"type": "text",
"properties": {
"enter": {
"x": {"value": -30},
"y": {"value": 105},
"fill": {"value": "#000"},
"text": {"value": "Thế"},
"fontSize": {"value": 13},
"fontWeight": {"value": "bold"},
}
}
},
{
"type": "text",
"from": {"data": "Kỷ"},
"properties": {
"enter": {
"x": {"scale": "x", "field": "mid"},
"y": {"value": 50},
"angle": {"value": -25},
"fill": {"value": "#000"},
"text": {"field": "label"},
"fontSize": {"value": 13}
}
}
},
{
"type": "rect",
"from": {"data": "Kỷ"},
"properties": {
"enter": {
"x": {"scale": "x", "field": "start"},
"x2": {"scale": "x", "field": "end"},
"y": {"value": 51},
"height": {"value": 30},
"fill": {"field": "color"}
},
"update": {
"fill": {"field": "color"}
},
"hover": {
"fill": {"value": "red"}
}
}
},
{
"type": "rect",
"from": {"data": "Thế"},
"properties": {
"enter": {
"x": {"scale": "x", "field": "start"},
"x2": {"scale": "x", "field": "end"},
"y": {"value": 85},
"height": {"value": 30},
"fill": {"field": "color"}
},
"update": {
"fill": {"field": "color"}
},
"hover": {
"fill": {"value": "red"}
}
}
},
{
"type": "text",
"from": {"data": "Thế"},
"properties": {
"enter": {
"x": {"scale": "x", "field": "mid"},
"y": {"value": 105},
"fill": {"value": "#000"},
"text": {"field": "label"},
"fontSize": {"value": 13}
}
}
}
]
} }}