Hello, here is the project of subject:
Among the main criteria in the challenge is to plot two “lines of best fit”(over a scatter plot). They are basically diagonal straight lines, which have a start point and an end point described in the project requirements. I wont go into details how those points are calculated, but It can be achieved as simple as providing the coordinates of the start and end point on the X and Y axes, however the tests are not satisfied with such approach. They demand an array of coordinates, to dot on every year on the X coordinate, which draws just the same- a diagonal straight line.
The tests should check if the said line is positioned accordingly, has the exact width, does cross the years coordinates at the exact point, but it shouldnt enforce the user to use an unnecessary complicated approach to achieve such result. Its not demanded on the requirements and project description that such approach must be utilized.
In comparison both approaches result in the same thing, the difference is only in how it was achieved.