Fix bar chart error.
Fix JSON type mismatch.