changed chart integration a bit