Hi all,
I have the same font “din” selected in Power BI visual and I have also created a custom visual in Deneb and also selected “din” but the 2 fonts look different. Does anyone know how we can get the 2 to look the same?
The top is a x axis for a column chart and the below is the table visual for a visual made in Deneb:
I can’t see a list of fonts posted anywhere for deneb so it’s hard to match fonts in PBI.
This is my code for Deneb:
{
“$schema”: “https://vega.github.io/schema/vega-lite/v5.json”,
“width”: 400,
“height”: 80,
“data”: {“name”: “dataset”},
“transform”: [
{
“aggregate”: [
{
“op”: “sum”,
“field”: “Qty”,
“as”: “QtySum”
}
],
“groupby”: [
“Month & Year”,
“Sales Type”
]
},
{
“calculate”: “datum[‘QtySum’] >= 10 ? format(datum[‘QtySum’] / 1000, ‘,.0f’) + ‘k’ : format(datum[‘QtySum’], ‘.0%’)”,
“as”: “FormattedQtySum”
}
],
“encoding”: {
“y”: {
“field”: “Sales Type”,
“type”: “ordinal”,
“sort”: {“field”: “Order”},
“axis”: {
“title”: null,
“labelFont”: “din”,
“labelFontSize”: 11.7,
“labelAngle”: 0,
“labelColor”: “black”,
“bandPosition”: 0.5
}
},
“x”: {
“field”: “Month & Year”,
“type”: “ordinal”,
“sort”: {“field”: “MonthOffset”},
“axis”: {
“title”: null,
“labelFont”: “din”,
“labelFontSize”: 11.7,
“labelAngle”: 0,
“labelColor”: “black”,
“orient”: “top”
}
}
},
“layer”: [
{
“mark”: “text”,
“fontWeight”: “bold”,
“fontSize” : 11.7,
“encoding”: {
“text”: {
“field”: “FormattedQtySum”,
“type”: “nominal”
},
“color”: {“value”: “black”}
}
}
],
“config”: {
“axisX”: {
“domain”: true,
“domainColor”: “#B4B5BB”,
“domainWidth”: 1,
“offset”: 0
},
“axisY”: {
“domain”: true,
“domainColor”: “#B4B5BB”,
“domainWidth”: 1,
“offset”: 0
}
}
}
Many thanks,
Tim