add the crate data method and show the part of chart