Solved the problem and drew the chart. Stupid curly brace.
Renamed the div
Created a WHERE clause