Forum Discussion

jonimatix_pp's avatar
jonimatix_pp
Frequent Visitor
2 years ago
Solved

Deneb Visual - How to add Title Header from Template

Hi all,   I want to add a simple Chart title / header in the top of the chart to this visual: https://github.com/PowerBI-tips/Deneb-Templates/blob/main/templates/Ridgeline%20Independent.json   B...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi jonimatix_pp ,

     

    Add it to the top level of the specification.

    {
      "title": {
        "text": "Your Chart Title Here",
        "anchor": "start",
        "fontSize": 20,
        "fontWeight": "bold",
        "color": "black"
      }
    
    //note that the "anchor" property can be set to `"start"`, `"middle"`, or `"end"` to align the title to the left, center, or right of the chart, respectively.

    Refer : View Title | Vega-Lite

     

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly.