d3.js - D3: Is there a name for this type of chart and code example? -
i've seen kind of bar chart in couple of places. linkedin. page rather complicated.
when click on bar, recalculates , reorders bars in other columns. here, san fran clicked.
is there example of in d3?
is there specific name it?
in general, known faceted search generates data powers visualization. 2 parts this, data , visualization, described below along links integrated d3.js / elasticsearch examples.
data: faceted search / aggregation
the data produces histogram counting facets across set of items. traditionally, done (efficiently) faceted search in fulltext search engine lucene , elasticsearch (built on lucene). elasticsearch calls capability aggregations. data calculated fast enough done in real time searches.
in linkedin example, create search index of people fields listed. using faceted search, can counts of documents (people) each facet value. in query, can want top x (10) popular values.
for more info see following links. first more detailed while second , third higher level.
- lucene faceted search user's guide
- elasticsearch documentation on facets
- elasticsearch documentation on aggregations (new approach)
visualization: horizontal bar chart
once have data, visualization combination of sorting highest count , simple horizontal bar chart can generated using variety of means. following links use d3.js directly or nvd3.js helper library making common charts. desired effect, may have link clicks new searches updated parameters.
- d3 js simple horizontal bar chart
- nvd3.js horizontal multi-bar chart (use single series)
integrated examples
here links pre-built integrations using d3.js , faceted search / aggregations.
Comments
Post a Comment