ChartSegment constructor Null safety

ChartSegment()