Code for changing the color of subtasks in Gantt Chart
问题 I need to change the color of subtasks in a Gantt chart. My example is based on GanttDemo2 with the following dataset and renderer. In different forums I found some discussions related to this topic, but I did not find a clear simple working example. In particular, I can change the color of tasks, but I don\'t know how to extract subtasks. private IntervalCategoryDataset createSampleDataset() { final TaskSeries s1 = new TaskSeries(\"Scheduled\"); final Task t1 = new Task( \"Design\", date(1,