Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
is it possible to override the font size (S,M,L) in java script to create visualization on fly with css font size?
If you mean can you write a custom visualisation that controls it own font sizes, then the anser is yes.
Hi Bill, Thanks for your response..
I tried to do calculations at fly
app.visualization.create('kpi',
["=Count(session_id)"],
{"fontSize" : "L" ,"showTitles":"false" ,"showMeasureTitle":"false", "textAlign": "center" }
).then(function (visual) {
visual.show('QV01');
});
<div id="QV01" class="qvplaceholder" ></div>
Values are getting displayed correctly but i couldn't change the font size. Could you suggest how to override it ?