Built-in Formula Calculations in Vaadin Charts

Vaadin Charts 4 has a sample on the scatter chart with a regression line shown [here]
(https://demo.vaadin.com/charts/#ScatterWithRegressionLine). To what I understand, currently Charts doesn’t contain any method such as that above as what Microsoft Excel or other spreadsheet software can do that calculates the regression line (and others as well) based on the y values (say x represents day number).

Is that correct and if yes, is there an external library other than writing a class / method for that objective that can be considered to do the calculations?

UPDATE: Apache Commons-Math library can address the problem. However, it’s interesting to find out if there’s a consideration to incorporate such feature into Charts 4.2 or 6.x if it isn’t there?