reactivesearch
reactivesearch copied to clipboard
PieCharts and Barcharts from numeric fields in document
Affected Projects ReactiveChart
Is your feature request related to a problem? Please describe. Trying to create visualizations out of an index
Describe the solution you'd like It would be nice to be able to create PieCharts and BarCharts not only from counts but by representing a numeric field of a document. Right now they can only be generated out of keyword counts.
Additional context
I have noticed I can use a custom defaultQuery to retrieve a numeric field, what I would need is to have a labelField independent of the dataField:
defaultQuery={(value, props) => ({ "query": { "exists" : { "field" : "duration" } } })}