{"id":6040,"date":"2018-05-29T07:20:23","date_gmt":"2018-05-29T07:20:23","guid":{"rendered":"https:\/\/www.anychart.com\/blog\/?p=6040"},"modified":"2018-05-29T07:16:11","modified_gmt":"2018-05-29T07:16:11","slug":"regression-analysis-anychart-javascript-charts","status":"publish","type":"post","link":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/","title":{"rendered":"Regression Analysis in AnyChart JavaScript Charts"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone size-full wp-image-6109\" src=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js.png\" alt=\"Regression Analysis in AnyChart\" width=\"100%\" srcset=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js.png 960w, https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js-300x200.png 300w, https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js-768x512.png 768w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><br \/>\n<a href=\"https:\/\/www.anychart.com\/\">AnyChart<\/a> is not only a beautiful charting library but also a multifunctional one. We\u2019ve got lots of questions from our customers on how they can integrate regression analysis into AnyChart JavaScript Charts. There are many approaches that may be adopted in order to interpolate and approximate data. And the one we&#8217;re going to share with you today involves the use of the popular <a href=\"https:\/\/github.com\/Tom-Alexander\/regression-js\" rel=\"nofollow\" target=\"_blank\">regression.js<\/a> library along with AnyChart.<\/p>\n<p><!--more--><\/p>\n<h2>What Is Regression.js<\/h2>\n<p>Regression.js is a JavaScript module containing a collection of linear least-squares fitting methods for simple data analysis. It can be used for data approximation, finding data regularities and so on. It is available as the <a href=\"https:\/\/www.npmjs.com\/package\/regression\" rel=\"nofollow\" target=\"_blank\">&#8216;regression&#8217; package on npm<\/a> and on the <a href=\"https:\/\/cdnjs.com\/libraries\/regression\" rel=\"nofollow\" target=\"_blank\">cdnjs CDN<\/a>.<\/p>\n<p>To work with library, either plug it into your page from its <a href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/regression\/1.4.0\/regression.min.js\" rel=\"nofollow\" target=\"_blank\">CDN link<\/a>, download the file and place it on your server, or, follow the instructions given in <a href=\"https:\/\/github.com\/Tom-Alexander\/regression-js\" rel=\"nofollow\" target=\"_blank\">regression.js repository on GitHub<\/a> to use it with Node.js.<\/p>\n<h2>Visualizing Regression Analysis<\/h2>\n<p>Now let\u2019s find out how to create an interactive JavaScript chart along with the regression.js library.<\/p>\n<p>If the regression.js is properly added to a page, we can use some data to get the regression object of a, say, linear type, and get the coefficients:<\/p>\n<pre><code class=\"javascript\">var rawData = [\r\n  [0.1, 2.1],\r\n  [1, 2.4],\r\n  [2, 2.6],\r\n  [4, 2.8],\r\n  [5, 3]\r\n];\r\n\r\nvar result = regression('linear', rawData);\r\nvar coeff = result.equation;\r\n<\/code><\/pre>\n<p>To set theoretical data, we use the function that will generate another data array:<\/p>\n<pre><code class=\"javascript\">function setTheoryData(rawData) {\r\n  var theoryData = [];\r\n  for (var i = 0; i &lt; rawData.length; i++) {\r\n    theoryData[i] = [rawData[i][0], formula(coeff, rawData[i][0])];\r\n  }\r\n  return theoryData;\r\n}\r\n<\/code><\/pre>\n<p>Having done that, we input X values and calculate Y values using the formula found:<\/p>\n<pre><code class=\"javascript\">function formula(coeff, x) {\r\n  var result = null;\r\n  for (var i = 0, j = coeff.length - 1; i &lt; coeff.length; i++, j--) {\r\n    result += coeff[i] * Math.pow(x, j);\r\n  }\r\n  return result;\r\n}\r\n<\/code><\/pre>\n<p>When the data is ready all we have to do is to display it as a series on a chart.<\/p>\n<p>And that\u2019s how AnyChart-Regression.js sample looks like, you can fork and edit it, or download it from <a href=\"https:\/\/playground.anychart.com\/b6b6d97e\" target=\"_blank\" rel=\"nofollow\">AnyChart Playground<\/a>:<\/p>\n<p><iframe loading=\"lazy\" class=\"anychart-embed anychart-embed-b6b6d97e\" src=\"https:\/\/playground.anychart.com\/b6b6d97e\/iframe\" width=\"300\" height=\"150\" frameborder=\"0\" sandbox=\"allow-scripts allow-pointer-lock allow-same-origin allow-popups allow-modals allow-forms\" allowfullscreen=\"allowfullscreen\"><br \/>\n<\/iframe><br \/>\n<script type=\"text\/javascript\">(function(){\nfunction ac_add_to_head(el){\n\tvar head = document.getElementsByTagName('head')[0];\n\thead.insertBefore(el,head.firstChild);\n}\nfunction ac_add_style(css){\n\tvar ac_style = document.createElement('style');\n\tif (ac_style.styleSheet) ac_style.styleSheet.cssText = css;\n\telse ac_style.appendChild(document.createTextNode(css));\n\tac_add_to_head(ac_style);\n}\nac_add_style(\".anychart-embed-b6b6d97e{width:100%;height:600px;}\");\n})();<\/script><\/p>\n<p>Here is the full source code of the sample we\u2019ve created:<\/p>\n<pre><code class=\"javascript\">\/\/experimental data\r\nvar rawData = [\r\n  [0.1, 2.1],\r\n  [1, 2.4],\r\n  [2, 2.6],\r\n  [4, 2.8],\r\n  [5, 3]\r\n];\r\n\r\n\/\/getting the regression object\r\n\/\/the type of regression depends on the experimental data\r\nvar result = regression('linear', rawData);\r\n\r\n\/\/get coefficients from the calculated formula\r\nvar coeff = result.equation;\r\n\r\nanychart.onDocumentReady(function () {\r\n\r\n  var data_1 = rawData;\r\n  var data_2 = setTheoryData(rawData);\r\n\r\n  chart = anychart.scatter();\r\n\r\n  chart.title(\"The calculated formula: \" + result.string + \"\\nThe coefficient of determination (R2): \" + result.r2.toPrecision(2));\r\n\r\n  chart.legend(true);\r\n\r\n  \/\/ creating the first series (marker) and setting the experimental data\r\n  var series1 = chart.marker(data_1);\r\n  series1.name(\"Experimental data\");\r\n\r\n  \/\/ creating the second series (line) and setting the theoretical data\r\n  var series2 = chart.line(data_2);\r\n  series2.name(\"Theoretically calculated data\");\r\n  series2.markers(true);\r\n\r\n  chart.container(\"container\");\r\n  chart.draw();\r\n});\r\n\r\n\/\/input X and calculate Y using the formula found\r\n\/\/this works with all types of regression\r\nfunction formula(coeff, x) {\r\n  var result = null;\r\n  for (var i = 0, j = coeff.length - 1; i &lt; coeff.length; i++, j--) {\r\n    result += coeff[i] * Math.pow(x, j);\r\n  }\r\n  return result;\r\n}\r\n\r\n\/\/setting theoretical data array of [X][Y] using experimental X coordinates\r\n\/\/this works with all types of regression\r\nfunction setTheoryData(rawData) {\r\n  var theoryData = [];\r\n  for (var i = 0; i &lt; rawData.length; i++) {\r\n    theoryData[i] = [rawData[i][0], formula(coeff, rawData[i][0])];\r\n  }\r\n  return theoryData;\r\n}\r\n<\/code><\/pre>\n<hr \/>\n<p>We hope you found this article about regression analysis helpful. AnyChart team is waiting for your interesting questions and challenging tasks. If you have some, please, contact <a href=\"https:\/\/www.anychart.com\/support\/\">AnyChart Support Team<\/a> \u2014 we are fast to find relevant solutions and attentive to every problem AnyChart customers might face.<\/p>\n<p>AnyChart is easy to use along with other JavaScript solutions. It can help you make your interactive visualization better and put the data to work. Thanks for staying with us.<\/p>\n<p><!-- SyntaxHighlighter \n--><link rel=\"stylesheet\" href=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/highlight.js\/9.12.0\/styles\/default.min.css\"\n><link rel=\"stylesheet\" href=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/highlight.js\/9.12.0\/styles\/atom-one-light.min.css\"\n><script src=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/highlight.js\/9.12.0\/highlight.min.js\"\n><\/script><script>hljs.initHighlightingOnLoad();<\/script><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>AnyChart is not only a beautiful charting library but also a multifunctional one. We\u2019ve got lots of questions from our customers on how they can integrate regression analysis into AnyChart JavaScript Charts. There are many approaches that may be adopted in order to interpolate and approximate data. And the one we&#8217;re going to share with [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,23,13,3,4],"tags":[53,258,266,54,32,55,36,141,81,57,58,65,56,31,302,303,30,172],"class_list":["post-6040","post","type-post","status-publish","format-standard","hentry","category-anychart-charting-component","category-html5","category-javascript","category-news","category-tips-and-tricks","tag-anychart","tag-charts","tag-data-analytics","tag-data-visualization","tag-html5","tag-html5-charts","tag-javascript","tag-javascript-charting","tag-javascript-charting-library","tag-javascript-charts","tag-js-chart","tag-js-charting","tag-js-charts","tag-news","tag-regression-analysis","tag-regression-js","tag-tips-and-tricks","tag-tutorial","wpautop"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Regression Analysis in AnyChart JavaScript Charts<\/title>\n<meta name=\"description\" content=\"Wondering how to integrate regression analysis into AnyChart JavaScript Charts? One of the approaches is based on using regression.js library with AnyChart.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Regression Analysis in AnyChart JavaScript Charts\" \/>\n<meta property=\"og:description\" content=\"Wondering how to integrate regression analysis into AnyChart JavaScript Charts? One of the approaches is based on using regression.js library with AnyChart.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/\" \/>\n<meta property=\"og:site_name\" content=\"AnyChart News\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AnyCharts\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-29T07:20:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js.png\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"640\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Irina Maximova\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@AnyChart\" \/>\n<meta name=\"twitter:site\" content=\"@AnyChart\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Irina Maximova\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/\"},\"author\":{\"name\":\"Irina Maximova\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/c79061b5c43d09368b8d44b36842b058\"},\"headline\":\"Regression Analysis in AnyChart JavaScript Charts\",\"datePublished\":\"2018-05-29T07:20:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/\"},\"wordCount\":374,\"commentCount\":1,\"image\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js.png\",\"keywords\":[\"AnyChart\",\"charts\",\"data analytics\",\"Data Visualization\",\"HTML5\",\"html5 charts\",\"JavaScript\",\"javascript charting\",\"JavaScript charting library\",\"javascript charts\",\"js chart\",\"js charting\",\"js charts\",\"News\",\"regression analysis\",\"regression.js\",\"Tips and tricks\",\"tutorial\"],\"articleSection\":[\"AnyChart Charting Component\",\"HTML5\",\"JavaScript\",\"News\",\"Tips and Tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/\",\"url\":\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/\",\"name\":\"Regression Analysis in AnyChart JavaScript Charts\",\"isPartOf\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js.png\",\"datePublished\":\"2018-05-29T07:20:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/c79061b5c43d09368b8d44b36842b058\"},\"description\":\"Wondering how to integrate regression analysis into AnyChart JavaScript Charts? One of the approaches is based on using regression.js library with AnyChart.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#primaryimage\",\"url\":\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js.png\",\"contentUrl\":\"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js.png\",\"width\":960,\"height\":640},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.anychart.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Regression Analysis in AnyChart JavaScript Charts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#website\",\"url\":\"https:\/\/www.anychart.com\/blog\/\",\"name\":\"AnyChart News\",\"description\":\"AnyChart JS Charts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.anychart.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/c79061b5c43d09368b8d44b36842b058\",\"name\":\"Irina Maximova\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/023075cf0bac635343d009a289d4c3d32138b5a3890d10f09ed59755e59bc065?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/023075cf0bac635343d009a289d4c3d32138b5a3890d10f09ed59755e59bc065?s=96&r=g\",\"caption\":\"Irina Maximova\"},\"url\":\"https:\/\/www.anychart.com\/blog\/author\/irina-maximova\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Regression Analysis in AnyChart JavaScript Charts","description":"Wondering how to integrate regression analysis into AnyChart JavaScript Charts? One of the approaches is based on using regression.js library with AnyChart.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/","og_locale":"en_US","og_type":"article","og_title":"Regression Analysis in AnyChart JavaScript Charts","og_description":"Wondering how to integrate regression analysis into AnyChart JavaScript Charts? One of the approaches is based on using regression.js library with AnyChart.","og_url":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/","og_site_name":"AnyChart News","article_publisher":"https:\/\/www.facebook.com\/AnyCharts","article_published_time":"2018-05-29T07:20:23+00:00","og_image":[{"width":960,"height":640,"url":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js.png","type":"image\/png"}],"author":"Irina Maximova","twitter_card":"summary_large_image","twitter_creator":"@AnyChart","twitter_site":"@AnyChart","twitter_misc":{"Written by":"Irina Maximova","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#article","isPartOf":{"@id":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/"},"author":{"name":"Irina Maximova","@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/c79061b5c43d09368b8d44b36842b058"},"headline":"Regression Analysis in AnyChart JavaScript Charts","datePublished":"2018-05-29T07:20:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/"},"wordCount":374,"commentCount":1,"image":{"@id":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#primaryimage"},"thumbnailUrl":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js.png","keywords":["AnyChart","charts","data analytics","Data Visualization","HTML5","html5 charts","JavaScript","javascript charting","JavaScript charting library","javascript charts","js chart","js charting","js charts","News","regression analysis","regression.js","Tips and tricks","tutorial"],"articleSection":["AnyChart Charting Component","HTML5","JavaScript","News","Tips and Tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/","url":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/","name":"Regression Analysis in AnyChart JavaScript Charts","isPartOf":{"@id":"https:\/\/www.anychart.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#primaryimage"},"image":{"@id":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#primaryimage"},"thumbnailUrl":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js.png","datePublished":"2018-05-29T07:20:23+00:00","author":{"@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/c79061b5c43d09368b8d44b36842b058"},"description":"Wondering how to integrate regression analysis into AnyChart JavaScript Charts? One of the approaches is based on using regression.js library with AnyChart.","breadcrumb":{"@id":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#primaryimage","url":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js.png","contentUrl":"https:\/\/www.anychart.com\/blog\/wp-content\/uploads\/2018\/05\/regression-js.png","width":960,"height":640},{"@type":"BreadcrumbList","@id":"https:\/\/www.anychart.com\/blog\/2018\/05\/29\/regression-analysis-anychart-javascript-charts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.anychart.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Regression Analysis in AnyChart JavaScript Charts"}]},{"@type":"WebSite","@id":"https:\/\/www.anychart.com\/blog\/#website","url":"https:\/\/www.anychart.com\/blog\/","name":"AnyChart News","description":"AnyChart JS Charts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.anychart.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/c79061b5c43d09368b8d44b36842b058","name":"Irina Maximova","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/023075cf0bac635343d009a289d4c3d32138b5a3890d10f09ed59755e59bc065?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/023075cf0bac635343d009a289d4c3d32138b5a3890d10f09ed59755e59bc065?s=96&r=g","caption":"Irina Maximova"},"url":"https:\/\/www.anychart.com\/blog\/author\/irina-maximova\/"}]}},"_links":{"self":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts\/6040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/comments?post=6040"}],"version-history":[{"count":16,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts\/6040\/revisions"}],"predecessor-version":[{"id":6122,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts\/6040\/revisions\/6122"}],"wp:attachment":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/media?parent=6040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/categories?post=6040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/tags?post=6040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}