Backporting changes from fieldcapture.
The count by value score was ignoring the chart type configuration.