Line Chart#

>>> from techminer2.report import line_chart
>>> chart = line_chart(
...     #
...     # ITEMS PARAMS:
...     field='author_keywords',
...     top_n=20,
...     occ_range=(None, None),
...     gc_range=(None, None),
...     custom_items=None,
...     #
...     metric="OCC",
...     #
...     # CHART PARAMS:
...     title="Most Frequent Author Keywords",
...     metric_label=None,
...     field_label=None,
...     #
...     # DATABASE PARAMS:
...     root_dir="example/",
...     database="main",
...     year_filter=(None, None),
...     cited_by_filter=(None, None),
... )
>>> chart.fig_.write_html("sphinx/_static/report/line_chart.html")
>>> chart.df_.head()
                      rank_occ  OCC  ...  between_2018_2019  growth_percentage
author_keywords                      ...
FINTECH                      1   31  ...                 18              58.06
INNOVATION                   2    7  ...                  1              14.29
FINANCIAL_SERVICES           3    4  ...                  3              75.00
FINANCIAL_TECHNOLOGY         4    4  ...                  3              75.00
BUSINESS                     5    3  ...                  3             100.00

[5 rows x 5 columns]
>>> print(chart.prompt_) 
Your task is ...