Reduce number of marker without simplifying data

2 Answers 73 Views
Graph
minh
Top achievements
Rank 2
Iron
Iron
Iron
minh asked on 30 May 2022, 02:05 AM

Hi Reporting team,

I would like to reduce the number of makers (basically I would display the makers only in the first, last, max and min values) . However, I don't want to simplify the data because that make change on the shape of line.

Would you please help me a solution to modify the display of makers? 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 01 Jun 2022, 12:00 PM

Hi Minh,

You may use DataPointConditionalFormatting and DataPointFormatting to set the Visible property of the data points (marks) and their labels with proper Expressions. For example, if you want to show them only for the Max/Min of the corresponding Date and Value, here is my suggestion:

= (Fields.Date = Exec('seriesGroup', Max(Fields.Date))) Or
  (Fields.Date = Exec('seriesGroup', Min(Fields.Date))) Or
  (Fields.Value = Exec('seriesGroup', Max(Fields.Value))) Or
  (Fields.Value = Exec('seriesGroup', Min(Fields.Value)))

I have attached a sample report that demonstrates the approach.

Regards,
Todor
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
0
minh
Top achievements
Rank 2
Iron
Iron
Iron
answered on 10 Jun 2022, 09:33 AM

Hi Todor,

Many thanks for your support. Your solution works like charm.

 

Thank you so much

Tags
Graph
Asked by
minh
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Todor
Telerik team
minh
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or