You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In an old version of LiveCharts you added the Gantt Chart functionality (Issue #351) which I found very promising! I tried to access that functionality in an Uno App with livechart2, but it is not available any more.
Describe the solution you'd like
Gantt chart functionality as described here: (Issue #351)
Describe alternatives you've considered
Using the SkiaSharp library to create my own Gantt view.
Additional context
Screenshot about the feature request:
The text was updated successfully, but these errors were encountered:
You would create a mapper for your task class like so :LiveCharts.Configure(config => config.HasMap<Task>((Taks, point) => new(Task.ID, Task.Duration)));
Then, in your ViewModel, for each of your task :
you would create first another decoy task that starts at 0 and lasts until the start of the task you want to draw. On each of the decoy taks, assign a specific field, such as bool VoidForGraph = true;
add them both to a serie like so: Series.Add(new StackedRowSeries<Task> {values = [decoyTask,Task], DataLabelsFormatter = (point) => (point.Model?.VoidForGraph ? "" : $"{(point.Model?.Name is null ? "" : point.Model.Name)}starts {point.Model.Start:N2} ends {point.Model.End:N2} }
use a conditionnal formated so that the decoyTask is not visible, such as .OnPointMeasured(point => { if (point.Visual is null) return; point.Visual.Stroke = point.Model?.Status == JobStatus.VoidForGraph ? Null : new SolidColorPaint(SKColors.Blue); })
Fine tune as you want with DataLabelFormaters, colors, other broken tasks etc...
Is your feature request related to a problem? Please describe.
In an old version of LiveCharts you added the Gantt Chart functionality (Issue #351) which I found very promising! I tried to access that functionality in an Uno App with livechart2, but it is not available any more.
Describe the solution you'd like
Gantt chart functionality as described here: (Issue #351)
Describe alternatives you've considered
Using the SkiaSharp library to create my own Gantt view.
Additional context
Screenshot about the feature request:
The text was updated successfully, but these errors were encountered: