Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17884

Embed visual: font size on data card is too big

$
0
0

I have embedded a "card" visual into a webpage but the font-size and padding seems to be too large.

 

I have set the width and height in the config object, which seems to affect the positioning but not the font size. Unlike in Desktop, the font size does not seem to scale to fit the container.

 

I've reduced the font-size in Desktop and this does reduce the embedded font-size, but it's not predictable: a Desktop data label text size of 8 gives me a font-size of 10.6667px in the text element's style declaration. However the "30" still measures 70px wide.

 

There is also a white buffer around the data label, which cuts it off.

 

I can probably reposition using custom layout, but this doesn't fix the font size issue.

 

Can anyone help?

 

 

data_card_font.PNG


Viewing all articles
Browse latest Browse all 17884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>