Fix bug for scale domains from facets. Add flare.json.