remade charts with ajax request