Striplines and how to handle the display of them when they are on same X-Axis

We are using striplines to show important events that have occured during a series of dates. For example


Striplines1.png

This works well and when the line series is more complete it can be a helpful indication of why data is going the way it is.

However there can be cases where many events happen over a similar period and they get laid out over each other. For example 

Striplines3.png

In this example the text on the striplines becomes hard to read. Do you have any suggestions for how to deal with this? Such as Tooltips.


Thanks




3 Replies

DG Durga Gopalakrishnan Syncfusion Team October 26, 2021 02:44 PM UTC

Hi Pat, 

Greetings from Syncfusion. 

We have analyzed your queries with attached image. We request you to customize the position of stripline text using horizontal and vertical alignment. We have prepared sample based on your requirement. Please check with below snippet and screenshot. 

public IActionResult Index() 
        {             
            ChartStripLine strip2 = new ChartStripLine(); 
            strip2.HorizontalAlignment = Anchor.Start; 
            strip2.Text = "Stripline 2"; 
            xaxisstriplines.Add(strip2); 
 
            ChartStripLine strip3 = new ChartStripLine(); 
            strip3.HorizontalAlignment = Anchor.Middle; 
            strip3.Text = "Stripline 3"; 
           xaxisstriplines.Add(strip3); 
             
            ViewBag.xAxis = xaxisstriplines; 
            return View(); 
        } 

 



Kindly revert us if you have any concerns. 

Regards, 
Durga G 



PA Pat October 28, 2021 07:58 AM UTC

Thanks for replying but I don't see how that is ever going to work.


In your scenario Stripline 2 is partially covered by stripline 3 so you have hardcoded a different alignment to suit this scenario.


In our scenario we have a variable number of striplines and varying start and end dates so we cannot know ahead of time if a simple alignment is going to work.


Do you have any other suggestions that will work in our real world scenario?


Do you support tooltips on the Striplines?




DG Durga Gopalakrishnan Syncfusion Team October 28, 2021 02:28 PM UTC

Hi Pat, 

As of now, we don’t have support to place the stripline text smartly based on overlap. Please let us know if you have any concerns. 

Regards, 
Durga G 


Loader.
Up arrow icon