Bar ChartΒΆ

Example

>>> from techminer2.database.metrics.trending_terms.user import BarChart
>>> # Create, configure, and run the plotter
>>> plotter = (
...     BarChart()
...     #
...     # FIELD:
...     .with_field("raw_author_keywords")
...     .having_terms_in_top(20)
...     .having_terms_ordered_by("OCC")
...     .having_term_occurrences_between(None, None)
...     .having_term_citations_between(None, None)
...     .having_terms_in(None)
...     #
...     # TIME WINDOW:
...     .with_time_window(2)
...     #
...     # CHART PARAMS:
...     .using_xaxes_title_text(None)
...     .using_yaxes_title_text(None)
...     #
...     # DATABASE:
...     .where_root_directory_is("example/")
...     .where_database_is("main")
...     .where_record_years_range_is(None, None)
...     .where_record_citations_range_is(None, None)
...     .where_records_match(None)
... )
>>> plot = plotter.run()
>>> plot.write_html("docs_source/_generated/px.database.metrics.trending_terms.user.html")