okviz / bullet-chart-issues

Issues with Bullet Chart
3 stars 0 forks source link

Legend - Font family is ignored #19

Closed stugr closed 2 years ago

stugr commented 2 years ago

Is there an existing issue for this?

Current Behavior

Font family is ignored for the legend

Left is a standard powerbi visual with calibri 8pt set for the legend, right is okviz visual with calibri 8pt set for the legend (looks like segoe ui?) image

Legend font never changes, as evidenced by setting both to wingdings (right side is okviz)

image

image

Power BI

Power BI Desktop

Power BI Version

2.107.841.0 64-bit

Steps To Reproduce

Choose any font family for legend

Sample report

okviz-tooltips.zip

Screenshot

No response

Anything else?

No response

danieleperilli commented 2 years ago

I confirm that this is a bug, the strange thing is that it is has been here from years! - It's not a regression from 2.9.x. We will definitely fix it in the next version.

stugr commented 2 years ago

To add to strange things, I even have a report that was last worked on 2 years ago that has the legend set to 6pt and is actually showing it that small even with the warning! No idea how it got set to 6pt though - (side note: I wish PBI visuals would go lower than 8pt)

It's how I noticed the font family being ignored - I had 2 visuals on the page, one set to 8pt and the other 6pt (unbeknownst to me) and the 8pt one looked massive in comparison, and so I assumed they were set to different fonts, so went to change the 8pt one

image

danieleperilli commented 2 years ago

Yes, I know why. At some point, we changed the internal structure of the field for the font size, it used to be a simple numeric input, now we have aligned with Power BI standards and the field is of a different type dedicated to the font size. The good news is that the moment they change the min/max (if they do...) the visual will reflect the change transparently. Also, you can use a smaller font size in some previous reports because you set it before the change was made, which means that value is now stored in the visual.

danieleperilli commented 2 years ago

The new preview version is available here: https://github.com/okviz/bullet-chart-issues/releases/tag/v2.3.2.0