Hello,
I am using the SfChart control in a project where I need to display the dosage of medicines a person takes over time, and I would need some suggestions on how to achieve a consistent view across different dosage options.
Let's imagine we bind a C# object that is built upon this JSON:
{
"Minimum": 0,
"Maximum": 100,
"MeasurementUnit": "mg",
"Schedule": "WeekDays",
"Dosages": [ {
"DateFrom": "2018-05-14 11:47:55Z",
"DateTo": "2017-11-07 00:00:00Z",
"TotalDailyDosage": 30
},
{
"DateFrom": "2018-10-13 22:05:15Z",
"DateTo": "2018-05-14 00:00:00Z",
"TotalDailyDosage": 30
}
]
}
The Dosages collection will be the series of the chart, where Minimum and Maximum will be bound to the Minimum and Maximum properties of a NumericalAxis. I currently bind the TotalDailyDosage value to a DateTimeAxis, where the Minimum and Maximum are taken from the DateFrom and DateTo values.
Now the problem is that medicines can have different schedules such as every day, or 1 day each 2 weeks, or 1 day each 4 weeks. The schedule is set in the Schedule property.
In the attached screenshots, you can see different medicine info bound to the chart, but for each the Interval="30" and the IntervalType = "Days" and the view is definitely not consistent and the graph lines are sometimes very thin, if not almost invisible, and difficult to read.
Any help would be appreciated, and obviously I'm happy to provide any further information that could help me move to the right direction.
Best regards,
Alessandro
Attachment:
Chart_6cb35e5f.zip