1 Reply Latest reply: Feb 19, 2018 6:17 AM by Bill Markham RSS

    Picasso js: format title

    Bill Markham

      Using Picasso js is it possible to format the text in a Text component ?

       

      Currently I have this Component :

       

          {

              type: 'text',

              text: "Bill's Graph",

              anchor: 'center',

              dock: 'top'

            }

       

      This my first time using Picasso js and I am just seeing what it can do, so simply being able change the font size, colour and make it bold would be great.

        • Re: Picasso js: format title
          Bill Markham

          Got the answer by posting the question Qlik Branch Slack :

           

          {

            type: 'text',

            text: "Bill's Graph",

            anchor: 'center',

            dock: 'top',

            style: {

              text: {

                 fontSize: '24px',

                 fill: 'red',

                 fontFamily: 'Georgia'

              }

            }

          }

           

          Although fontWeight not supported.