update sample graph