2 Replies Latest reply: Aug 8, 2016 11:59 AM by Logesh Jayaraman RSS

    Font size

    Logesh Jayaraman

      is it possible to override the font size (S,M,L) in java script to create visualization on fly with css font size?

        • Re: Font size
          Bill Markham

          If you mean can you write a custom visualisation that controls it own font sizes, then the anser is yes.

            • Re: Font size
              Logesh Jayaraman

              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 ?