change data-binding in chart directive instead of hard coding