Applying CSS to Google Visualization Table

后端 未结 4 1598
别那么骄傲
别那么骄傲 2021-01-15 19:52

I have created a table in Google Visualization which uses the following code:


  
      

        
4条回答
  •  广开言路
    2021-01-15 20:48

    I'm also new with Google Charts, but have explored so many of the options that I have a pretty good understanding to how to stylize your table.

    See this link for proper Google example: https://developers.google.com/chart/interactive/docs/examples?hl=fr

    Ultimately, what you do is assign a class name to the table row. After you can assign any CSS code you want. There is the alternative where you can use inline CSS, but I do not recommend it.

    Inline style is as follows

    [{v: 'cell string', p: {'style': 'font-weight: bold;'}}],
    

    You can also add your formatting, or anything else.

    If you need further clarification, do not hesitate to reply to my thread.

提交回复
热议问题