我正在try 显示按日期层次 struct 的离职率演变(我考虑了月(Mois)和年(Année))
Before trying with Deneb , I tried with Normal line chart , working fine:
But I don't know in Deneb it's being displayed like this :
这是我的土卫四密码:
{
"data": {"name": "dataset"},
"transform": [
{
"calculate": "format(datum['Turnover Rate']/100, '0.1%')",
"as": "turnover_rate_percentage"
},
{
"calculate": "datum['Mois'] + ' ' + datum['Année']",
"as": "MONTH_YEAR"
}
],
"mark": {
"type": "area",
"line": {"color": "#063970"},
"color": {
"x1": 1,
"y1": 1,
"gradient": "linear",
"stops": [
{
"offset": 0,
"color": "white"
},
{
"offset": 1,
"color": "#063970"
}
]
}
},
"encoding": {
"x": {
"field": "MONTH_YEAR",
"type": "ordinal",
"axis": {"labelPadding": 0},
"title": "Year + Month"
},
"y": {
"field": "turnover_rate_percentage",
"type": "quantitative",
"axis": {"format": "%", "title": "Turnover Rate"}
}
}
}
有谁能帮我解决这个问题吗?
这是the PBIX file美元