Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Multiple line styles for line chart in custom theme json

I am interested in defining multiple linestyles in my custom theme using JSON. I defined "dataColors" and I see that the line chart uses these colors (in order defined) for each line. I want to also specify the line style for each of these lines (dotted/spotted/solid). I tried passing multiple values (ex below) but it doesn't recognize it.

 

{
    "name":"Custom Theme",
     "dataColors":[
           "#FFCC00",
           "#0000FF",
           "#800080",
           "#99CC00",
           "#FF6600",
           "#000000",
           "#7F7F7F",
           "#000000",
           "#D99694",
           "#FF0000",
           "#c0a9e9",
           "#793fde"
      ],
      "visualStyles":{
          "lineChart":{
                        "*":{
                             "legend":[
                                           {
                                           "legendMarkerRendering":"lineAndMarker",
                                           "position":"BottomCenter"
                                           }                                           
                                 ],
                                  "title":[
                                           {                                           
                                           "show":true,
                                           "fontFamily":"Segoe (Bold)",
                                           "fontSize":"10"
                                           }
                                 ],
                                 "lineStyles":[
                                           {
                                           "lineStyle":"dashed;solid"
                                           }
                                 ]
                }}}}

Status: New
Comments
v-chuncz-msft
Community Support