Creating dynamic charts - Edindx