{"id":23597,"date":"2023-04-12T10:40:29","date_gmt":"2023-04-12T10:40:29","guid":{"rendered":"https:\/\/www.highcharts.com\/blog\/?p=23597"},"modified":"2026-01-13T11:30:48","modified_gmt":"2026-01-13T11:30:48","slug":"when-to-use-line-chart","status":"publish","type":"post","link":"https:\/\/www.highcharts.com\/blog\/best-practices\/when-to-use-line-chart\/","title":{"rendered":"When to use a line chart"},"content":{"rendered":"<p>A line chart, also called a line graph or a line plot, unites a series of data points using a line.<br \/>\nLine charts are commonly used with continuous data in data visualization to show; they are handy for depicting:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.highcharts.com\/blog\/chartchooser\/line-trend-continuous\/\" target=\"_blank\" rel=\"noopener\">A trend of continuous data over time.<\/a><\/li>\n<li><a href=\"https:\/\/www.highcharts.com\/blog\/chartchooser\/line\/\" target=\"_blank\" rel=\"noopener\">A flow of continuous data set<\/a><\/li>\n<li><a href=\"https:\/\/www.highcharts.com\/blog\/chartchooser\/line-comparison-continuous\/\" target=\"_blank\" rel=\"noopener\">A comparison of multiple continuous data<\/a><\/li>\n<li><a href=\"https:\/\/www.highcharts.com\/blog\/chartchooser\/line-relationship-continuous\/\" target=\"_blank\" rel=\"noopener\">A relationship of continuous data<\/a><\/li>\n<\/ul>\n<p><i><b>Remark<\/b><br \/>\nIf you are not familiar with data types, feel free to check out the <a href=\"https:\/\/www.highcharts.com\/blog\/tutorials\/continuous-data-type-101\/\" target=\"_blank\" rel=\"noopener\">Continuous Data Type 101<\/a> and <a href=\"https:\/\/www.highcharts.com\/blog\/tutorials\/categorical-data-type-101\/\" target=\"_blank\" rel=\"noopener\">Categorical Data Type 101<\/a>.<\/i><\/p>\n<h2>When a line chart is used<\/h2>\n<h3>Trend<\/h3>\n<p>The line chart below displays the trend of the NASA budget as a percentage of the US Federal budget from 1958 to 2021.<\/p>\n<p class=\"demo-container\"><iframe loading=\"lazy\" height=\"525px\" width=\"100%\" src=\"https:\/\/assets.highcharts.com\/demos\/samples\/embed\/highcharts\/chartchooser\/continuous-trend-line\" title=\"Example of Line chart\"><\/iframe><\/p>\n<h3>Flow<\/h3>\n<p>The demo below displays the flow of the metabolic provenance of energy over 70 hours.<\/p>\n<p class=\"demo-container\"><iframe loading=\"lazy\" height=\"470px\"  width=\"100%\" src=\"https:\/\/www.highcharts.com\/samples\/embed\/highcharts\/blog\/cognitive-impairment-no-labels\" title=\"Example of Line chart\"><\/iframe><\/p>\n<h3>Comparison<\/h3>\n<p>The line chart displays the operating systems trends since 2004, and where users can compare the different trends.<\/p>\n<p class=\"demo-container\"><iframe loading=\"lazy\" height=\"525px\"  width=\"100%\" src=\"https:\/\/assets.highcharts.com\/demos\/samples\/embed\/highcharts\/chartchooser\/continuous-comparison-line\" title=\"Example of Line chart\"><\/iframe><\/p>\n<h3>Relationship<\/h3>\n<p>The demo below illustrates the strong correlation between income distribution and homicide rates. The data was collected from the entire world and covered the years from 1965 to 1994. Similar studies were conducted and concluded that income inequality has a significant and positive impact on crime rates.<\/p>\n<p class=\"demo-container\"><iframe loading=\"lazy\" height=\"525px\"  width=\"100%\" src=\"https:\/\/assets.highcharts.com\/demos\/samples\/embed\/highcharts\/chartchooser\/continuous-relationship-line\" title=\"Example of Line chart\"><\/iframe><\/p>\n<p>A line chart is easy to create, read, and understand. A line chart is a practical and very popular chart for accessibility.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn when to use a line chart with Highcharts to display trends, flow, comparison, and relationships.<\/p>\n","protected":false},"author":32,"featured_media":23616,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"meta_title":"","meta_description":"","hc_selected_options":[],"footnotes":""},"categories":[1104],"tags":[1063,1094],"coauthors":[699],"class_list":["post-23597","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-best-practices","tag-data-visualization","tag-highcharts-core"],"_links":{"self":[{"href":"https:\/\/www.highcharts.com\/blog\/wp-json\/wp\/v2\/posts\/23597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.highcharts.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.highcharts.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.highcharts.com\/blog\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/www.highcharts.com\/blog\/wp-json\/wp\/v2\/comments?post=23597"}],"version-history":[{"count":2,"href":"https:\/\/www.highcharts.com\/blog\/wp-json\/wp\/v2\/posts\/23597\/revisions"}],"predecessor-version":[{"id":29383,"href":"https:\/\/www.highcharts.com\/blog\/wp-json\/wp\/v2\/posts\/23597\/revisions\/29383"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.highcharts.com\/blog\/wp-json\/wp\/v2\/media\/23616"}],"wp:attachment":[{"href":"https:\/\/www.highcharts.com\/blog\/wp-json\/wp\/v2\/media?parent=23597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.highcharts.com\/blog\/wp-json\/wp\/v2\/categories?post=23597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.highcharts.com\/blog\/wp-json\/wp\/v2\/tags?post=23597"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.highcharts.com\/blog\/wp-json\/wp\/v2\/coauthors?post=23597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}