cancel
Showing results for 
Search instead for 
Did you mean: 
DRay
Community Team Member
Community Team Member

When creating a line chart, a certain line might require a different style.

For example - A line that shows a threshold should be styled as a dotted line

The following widget & widget script can be used to customize your line chart:

widget.on('processresult', function(widget, result) {
let series = result.result.series;
series[1].dashStyle = 'Dot'
})

 Result:

Before After
DRay_0-1714660421072.png

 

DRay_1-1714660421057.png

 

Available line styles:

  • Solid
  • ShortDash
  • ShortDot
  • ShortDashDot
  • ShortDashDotDot
  • Dot
  • Dash
  • LongDash
  • DashDot
  • LongDashDot
  • LongDashDotDot'
DRay_2-1714660421329.png

Created from Line Chart - Customizing a line to various "Dotted" styles by @Ophir_Buchman 

 

Version history
Last update:
‎05-02-2024 08:59 AM
Updated by:
Contributors
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]

Share this page: