Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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"
}
]
}}}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.