Simply use g.display(X), where g is the metric tensor and X is the new coordinate chart. This will trigger the computation of the components of g w.r.t. the vector frame associated with the chart X (i.e. X.frame()) and will express these components in terms of X. In other words, g.display(X) is a shortcut for g.display(X.frame(), X).