Changed AgWindow's moment to an AgChart for later saving functionality.