- Home
- Forum
- ASP.NET Core - EJ 2
- Striplines and how to handle the display of them when they are on same X-Axis
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
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
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
|
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();
} |
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?
- 3 Replies
- 2 Participants
-
PA Pat
- Oct 25, 2021 05:15 PM UTC
- Oct 28, 2021 02:28 PM UTC