diff --git a/assets/data.json b/assets/data.json index 6a12881..61edf73 100644 --- a/assets/data.json +++ b/assets/data.json @@ -1,2027 +1,1622 @@ [ { "x": "1980-01-23", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "1980-02-24", - "y1": 83, - "y2": 93 + "y": 83 }, { "x": "1980-03-25", - "y1": 82, - "y2": 93 + "y": 82 }, { "x": "1980-04-26", - "y1": 83, - "y2": 93 + "y": 83 }, { "x": "1980-05-27", - "y1": 83, - "y2": 93 + "y": 83 }, { "x": "1980-06-28", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "1980-07-29", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "1980-09-30", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "1980-10-01", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "1980-11-02", - "y1": 83, - "y2": 93 + "y": 83 }, { "x": "1980-12-03", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "1981-01-04", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "1981-02-05", - "y1": 82, - "y2": 93 + "y": 82 }, { "x": "1981-03-06", - "y1": 82, - "y2": 93 + "y": 82 }, { "x": "1981-04-07", - "y1": 82, - "y2": 94 + "y": 82 }, { "x": "1981-05-08", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "1981-06-09", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "1981-07-10", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "1981-08-11", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1981-09-12", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1981-10-13", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1981-11-14", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1981-12-15", - "y1": 83, - "y2": 96 + "y": 83 }, { "x": "1982-01-16", - "y1": 84, - "y2": 97 + "y": 84 }, { "x": "1982-02-17", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1982-03-18", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1982-04-19", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1982-05-20", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1982-06-21", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1982-07-22", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1982-08-23", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1982-09-24", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "1982-10-25", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1982-11-26", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "1982-12-27", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "1983-01-28", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "1983-02-29", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1983-04-30", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1983-05-01", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1983-06-02", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1983-07-03", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "1983-08-04", - "y1": 86, - "y2": 95 + "y": 86 }, { "x": "1983-09-05", - "y1": 86, - "y2": 96 + "y": 86 }, { "x": "1983-10-06", - "y1": 87, - "y2": 97 + "y": 87 }, { "x": "1983-11-07", - "y1": 87, - "y2": 98 + "y": 87 }, { "x": "1983-12-08", - "y1": 87, - "y2": 99 + "y": 87 }, { "x": "1984-01-09", - "y1": 86, - "y2": 98 + "y": 86 }, { "x": "1984-02-10", - "y1": 86, - "y2": 98 + "y": 86 }, { "x": "1984-03-11", - "y1": 86, - "y2": 97 + "y": 86 }, { "x": "1984-04-12", - "y1": 86, - "y2": 96 + "y": 86 }, { "x": "1984-05-13", - "y1": 86, - "y2": 97 + "y": 86 }, { "x": "1984-06-14", - "y1": 85, - "y2": 97 + "y": 85 }, { "x": "1984-07-15", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1984-08-16", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1984-09-17", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1984-10-18", - "y1": 84, - "y2": 97 + "y": 84 }, { "x": "1984-11-19", - "y1": 85, - "y2": 98 + "y": 85 }, { "x": "1984-12-20", - "y1": 85, - "y2": 98 + "y": 85 }, { "x": "1985-01-21", - "y1": 85, - "y2": 97 + "y": 85 }, { "x": "1985-02-22", - "y1": 85, - "y2": 98 + "y": 85 }, { "x": "1985-03-23", - "y1": 86, - "y2": 99 + "y": 86 }, { "x": "1985-04-24", - "y1": 85, - "y2": 98 + "y": 85 }, { "x": "1985-05-25", - "y1": 85, - "y2": 97 + "y": 85 }, { "x": "1985-06-26", - "y1": 86, - "y2": 97 + "y": 86 }, { "x": "1985-07-27", - "y1": 86, - "y2": 98 + "y": 86 }, { "x": "1985-08-28", - "y1": 86, - "y2": 97 + "y": 86 }, { "x": "1985-09-29", - "y1": 86, - "y2": 96 + "y": 86 }, { "x": "1985-11-30", - "y1": 86, - "y2": 97 + "y": 86 }, { "x": "1985-12-01", - "y1": 86, - "y2": 98 + "y": 86 }, { "x": "1986-01-02", - "y1": 87, - "y2": 98 + "y": 87 }, { "x": "1986-02-03", - "y1": 87, - "y2": 98 + "y": 87 }, { "x": "1986-03-04", - "y1": 87, - "y2": 98 + "y": 87 }, { "x": "1986-04-05", - "y1": 88, - "y2": 99 + "y": 88 }, { "x": "1986-05-06", - "y1": 88, - "y2": 98 + "y": 88 }, { "x": "1986-06-07", - "y1": 87, - "y2": 97 + "y": 87 }, { "x": "1986-07-08", - "y1": 88, - "y2": 98 + "y": 88 }, { "x": "1986-08-09", - "y1": 88, - "y2": 98 + "y": 88 }, { "x": "1986-09-10", - "y1": 88, - "y2": 98 + "y": 88 }, { "x": "1986-10-11", - "y1": 88, - "y2": 97 + "y": 88 }, { "x": "1986-11-12", - "y1": 88, - "y2": 98 + "y": 88 }, { "x": "1986-12-13", - "y1": 89, - "y2": 99 + "y": 89 }, { "x": "1987-01-14", - "y1": 88, - "y2": 98 + "y": 88 }, { "x": "1987-02-15", - "y1": 89, - "y2": 98 + "y": 89 }, { "x": "1987-03-16", - "y1": 88, - "y2": 98 + "y": 88 }, { "x": "1987-04-17", - "y1": 87, - "y2": 97 + "y": 87 }, { "x": "1987-05-18", - "y1": 87, - "y2": 98 + "y": 87 }, { "x": "1987-06-19", - "y1": 87, - "y2": 97 + "y": 87 }, { "x": "1987-07-20", - "y1": 87, - "y2": 96 + "y": 87 }, { "x": "1987-08-21", - "y1": 87, - "y2": 95 + "y": 87 }, { "x": "1987-09-22", - "y1": 87, - "y2": 95 + "y": 87 }, { "x": "1987-10-23", - "y1": 86, - "y2": 94 + "y": 86 }, { "x": "1987-11-24", - "y1": 85, - "y2": 94 + "y": 85 }, { "x": "1987-12-25", - "y1": 86, - "y2": 95 + "y": 86 }, { "x": "1988-01-26", - "y1": 85, - "y2": 94 + "y": 85 }, { "x": "1988-02-27", - "y1": 86, - "y2": 95 + "y": 86 }, { "x": "1988-03-28", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "1988-04-29", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "1988-06-30", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "1988-07-01", - "y1": 86, - "y2": 96 + "y": 86 }, { "x": "1988-08-02", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1988-09-03", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1988-10-04", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1988-11-05", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1988-12-06", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1989-01-07", - "y1": 86, - "y2": 97 + "y": 86 }, { "x": "1989-02-08", - "y1": 86, - "y2": 97 + "y": 86 }, { "x": "1989-03-09", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1989-04-10", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1989-05-11", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1989-06-12", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1989-07-13", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "1989-08-14", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "1989-09-15", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "1989-10-16", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1989-11-17", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1989-12-18", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1990-01-19", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1990-02-20", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1990-03-21", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1990-04-22", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1990-05-23", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "1990-06-24", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1990-07-25", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1990-08-26", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1990-09-27", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1990-10-28", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "1990-11-29", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "1991-01-30", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1991-02-01", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1991-03-02", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "1991-04-03", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1991-05-04", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1991-06-05", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1991-07-06", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1991-08-07", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1991-09-08", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1991-10-09", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1991-11-10", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1991-12-11", - "y1": 84, - "y2": 97 + "y": 84 }, { "x": "1992-01-12", - "y1": 85, - "y2": 97 + "y": 85 }, { "x": "1992-02-13", - "y1": 86, - "y2": 98 + "y": 86 }, { "x": "1992-03-14", - "y1": 86, - "y2": 99 + "y": 86 }, { "x": "1992-04-15", - "y1": 86, - "y2": 98 + "y": 86 }, { "x": "1992-05-16", - "y1": 86, - "y2": 98 + "y": 86 }, { "x": "1992-06-17", - "y1": 85, - "y2": 98 + "y": 85 }, { "x": "1992-07-18", - "y1": 85, - "y2": 98 + "y": 85 }, { "x": "1992-08-19", - "y1": 86, - "y2": 98 + "y": 86 }, { "x": "1992-09-20", - "y1": 87, - "y2": 98 + "y": 87 }, { "x": "1992-10-21", - "y1": 88, - "y2": 99 + "y": 88 }, { "x": "1992-11-22", - "y1": 87, - "y2": 98 + "y": 87 }, { "x": "1992-12-23", - "y1": 87, - "y2": 98 + "y": 87 }, { "x": "1993-01-24", - "y1": 87, - "y2": 99 + "y": 87 }, { "x": "1993-02-25", - "y1": 88, - "y2": 100 + "y": 88 }, { "x": "1993-03-26", - "y1": 87, - "y2": 99 + "y": 87 }, { "x": "1993-04-27", - "y1": 86, - "y2": 99 + "y": 86 }, { "x": "1993-05-28", - "y1": 86, - "y2": 99 + "y": 86 }, { "x": "1993-06-29", - "y1": 85, - "y2": 98 + "y": 85 }, { "x": "1993-08-30", - "y1": 85, - "y2": 98 + "y": 85 }, { "x": "1993-09-01", - "y1": 85, - "y2": 98 + "y": 85 }, { "x": "1993-10-02", - "y1": 85, - "y2": 98 + "y": 85 }, { "x": "1993-11-03", - "y1": 84, - "y2": 97 + "y": 84 }, { "x": "1993-12-04", - "y1": 85, - "y2": 97 + "y": 85 }, { "x": "1994-01-05", - "y1": 84, - "y2": 97 + "y": 84 }, { "x": "1994-02-06", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1994-03-07", - "y1": 83, - "y2": 96 + "y": 83 }, { "x": "1994-04-08", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1994-05-09", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1994-06-10", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1994-07-11", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1994-08-12", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1994-09-13", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1994-10-14", - "y1": 82, - "y2": 94 + "y": 82 }, { "x": "1994-11-15", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "1994-12-16", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1995-01-17", - "y1": 83, - "y2": 96 + "y": 83 }, { "x": "1995-02-18", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1995-03-19", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1995-04-20", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1995-05-21", - "y1": 84, - "y2": 97 + "y": 84 }, { "x": "1995-06-22", - "y1": 84, - "y2": 97 + "y": 84 }, { "x": "1995-07-23", - "y1": 83, - "y2": 96 + "y": 83 }, { "x": "1995-08-24", - "y1": 84, - "y2": 97 + "y": 84 }, { "x": "1995-09-25", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1995-10-26", - "y1": 84, - "y2": 97 + "y": 84 }, { "x": "1995-11-27", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1995-12-28", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1996-01-29", - "y1": 85, - "y2": 97 + "y": 85 }, { "x": "1996-03-30", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1996-04-01", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1996-05-02", - "y1": 84, - "y2": 97 + "y": 84 }, { "x": "1996-06-03", - "y1": 85, - "y2": 97 + "y": 85 }, { "x": "1996-07-04", - "y1": 86, - "y2": 97 + "y": 86 }, { "x": "1996-08-05", - "y1": 87, - "y2": 98 + "y": 87 }, { "x": "1996-09-06", - "y1": 86, - "y2": 97 + "y": 86 }, { "x": "1996-10-07", - "y1": 85, - "y2": 97 + "y": 85 }, { "x": "1996-11-08", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1996-12-09", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1997-01-10", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1997-02-11", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1997-03-12", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1997-04-13", - "y1": 86, - "y2": 96 + "y": 86 }, { "x": "1997-05-14", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "1997-06-15", - "y1": 86, - "y2": 96 + "y": 86 }, { "x": "1997-07-16", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1997-08-17", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "1997-09-18", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1997-10-19", - "y1": 86, - "y2": 96 + "y": 86 }, { "x": "1997-11-20", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "1997-12-21", - "y1": 86, - "y2": 95 + "y": 86 }, { "x": "1998-01-22", - "y1": 86, - "y2": 96 + "y": 86 }, { "x": "1998-02-23", - "y1": 86, - "y2": 97 + "y": 86 }, { "x": "1998-03-24", - "y1": 87, - "y2": 97 + "y": 87 }, { "x": "1998-04-25", - "y1": 87, - "y2": 98 + "y": 87 }, { "x": "1998-05-26", - "y1": 87, - "y2": 99 + "y": 87 }, { "x": "1998-06-27", - "y1": 88, - "y2": 99 + "y": 88 }, { "x": "1998-07-28", - "y1": 88, - "y2": 98 + "y": 88 }, { "x": "1998-08-29", - "y1": 87, - "y2": 97 + "y": 87 }, { "x": "1998-10-30", - "y1": 87, - "y2": 97 + "y": 87 }, { "x": "1998-11-01", - "y1": 87, - "y2": 98 + "y": 87 }, { "x": "1998-12-02", - "y1": 86, - "y2": 98 + "y": 86 }, { "x": "1999-01-03", - "y1": 86, - "y2": 97 + "y": 86 }, { "x": "1999-02-04", - "y1": 86, - "y2": 96 + "y": 86 }, { "x": "1999-03-05", - "y1": 86, - "y2": 97 + "y": 86 }, { "x": "1999-04-06", - "y1": 85, - "y2": 97 + "y": 85 }, { "x": "1999-05-07", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1999-06-08", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "1999-07-09", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "1999-08-10", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1999-09-11", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1999-10-12", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "1999-11-13", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "1999-12-14", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "2000-01-15", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2000-02-16", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "2000-03-17", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "2000-04-18", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2000-05-19", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "2000-06-20", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "2000-07-21", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "2000-08-22", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "2000-09-23", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "2000-10-24", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "2000-11-25", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2000-12-26", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2001-01-27", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2001-02-28", - "y1": 85, - "y2": 94 + "y": 85 }, { "x": "2001-03-29", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2001-05-30", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2001-06-01", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2001-07-02", - "y1": 85, - "y2": 94 + "y": 85 }, { "x": "2001-08-03", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2001-09-04", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2001-10-05", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2001-11-06", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2001-12-07", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2002-01-08", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2002-02-09", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2002-03-10", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2002-04-11", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2002-05-12", - "y1": 84, - "y2": 92 + "y": 84 }, { "x": "2002-06-13", - "y1": 84, - "y2": 92 + "y": 84 }, { "x": "2002-07-14", - "y1": 84, - "y2": 92 + "y": 84 }, { "x": "2002-08-15", - "y1": 83, - "y2": 91 + "y": 83 }, { "x": "2002-09-16", - "y1": 83, - "y2": 92 + "y": 83 }, { "x": "2002-10-17", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2002-11-18", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2002-12-19", - "y1": 83, - "y2": 92 + "y": 83 }, { "x": "2003-01-27", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2003-02-28", - "y1": 85, - "y2": 94 + "y": 85 }, { "x": "2003-03-29", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2003-05-30", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2003-06-01", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2003-07-02", - "y1": 85, - "y2": 94 + "y": 85 }, { "x": "2003-08-03", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2003-09-04", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2003-10-05", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2003-11-06", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2003-12-07", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2004-01-08", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2004-02-09", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2004-03-10", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2004-04-11", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2004-05-12", - "y1": 84, - "y2": 92 + "y": 84 }, { "x": "2004-06-13", - "y1": 84, - "y2": 92 + "y": 84 }, { "x": "2004-07-14", - "y1": 84, - "y2": 92 + "y": 84 }, { "x": "2004-08-15", - "y1": 83, - "y2": 91 + "y": 83 }, { "x": "2004-09-16", - "y1": 83, - "y2": 92 + "y": 83 }, { "x": "2004-10-17", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2004-11-18", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2004-12-19", - "y1": 83, - "y2": 92 + "y": 83 }, { "x": "2005-01-27", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2005-02-28", - "y1": 85, - "y2": 94 + "y": 85 }, { "x": "2005-03-29", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2005-05-30", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2005-06-01", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2005-07-02", - "y1": 85, - "y2": 94 + "y": 85 }, { "x": "2005-08-03", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2005-09-04", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2005-10-05", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2005-11-06", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2005-12-07", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2006-01-08", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2006-02-09", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2006-03-10", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2006-04-11", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2006-05-12", - "y1": 84, - "y2": 92 + "y": 84 }, { "x": "2006-06-13", - "y1": 84, - "y2": 92 + "y": 84 }, { "x": "2006-07-14", - "y1": 84, - "y2": 92 + "y": 84 }, { "x": "2006-08-15", - "y1": 83, - "y2": 91 + "y": 83 }, { "x": "2006-09-16", - "y1": 83, - "y2": 92 + "y": 83 }, { "x": "2006-10-17", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2006-11-18", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2006-12-19", - "y1": 83, - "y2": 92 + "y": 83 }, { "x": "2007-01-27", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2007-02-28", - "y1": 85, - "y2": 94 + "y": 85 }, { "x": "2007-03-29", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2007-05-30", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2007-06-01", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2007-07-02", - "y1": 85, - "y2": 94 + "y": 85 }, { "x": "2007-08-03", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2007-09-04", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2007-10-05", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2007-11-06", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2007-12-07", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2008-01-08", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2008-02-09", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2008-03-10", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2008-04-11", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2008-05-12", - "y1": 84, - "y2": 92 + "y": 84 }, { "x": "2008-06-13", - "y1": 84, - "y2": 92 + "y": 84 }, { "x": "2008-07-14", - "y1": 84, - "y2": 92 + "y": 84 }, { "x": "2008-08-15", - "y1": 83, - "y2": 91 + "y": 83 }, { "x": "2008-09-16", - "y1": 83, - "y2": 92 + "y": 83 }, { "x": "2008-10-17", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2008-11-18", - "y1": 84, - "y2": 93 + "y": 84 }, { "x": "2008-12-19", - "y1": 83, - "y2": 92 + "y": 83 }, { "x": "2009-01-14", - "y1": 88, - "y2": 98 + "y": 88 }, { "x": "2009-02-15", - "y1": 89, - "y2": 98 + "y": 89 }, { "x": "2009-03-16", - "y1": 88, - "y2": 98 + "y": 88 }, { "x": "2009-04-17", - "y1": 87, - "y2": 97 + "y": 87 }, { "x": "2009-05-18", - "y1": 87, - "y2": 98 + "y": 87 }, { "x": "2009-06-19", - "y1": 87, - "y2": 97 + "y": 87 }, { "x": "2009-07-20", - "y1": 87, - "y2": 96 + "y": 87 }, { "x": "2009-08-21", - "y1": 87, - "y2": 95 + "y": 87 }, { "x": "2009-09-22", - "y1": 87, - "y2": 95 + "y": 87 }, { "x": "2009-10-23", - "y1": 86, - "y2": 94 + "y": 86 }, { "x": "2009-11-24", - "y1": 85, - "y2": 94 + "y": 85 }, { "x": "2009-12-25", - "y1": 86, - "y2": 95 + "y": 86 }, { "x": "2010-01-26", - "y1": 85, - "y2": 94 + "y": 85 }, { "x": "2010-02-27", - "y1": 86, - "y2": 95 + "y": 86 }, { "x": "2010-03-28", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2010-04-29", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2010-06-30", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2010-07-01", - "y1": 86, - "y2": 96 + "y": 86 }, { "x": "2010-08-02", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "2010-09-03", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2010-10-04", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "2010-11-05", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "2010-12-06", - "y1": 85, - "y2": 96 + "y": 85 }, { "x": "2011-01-23", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "2011-02-24", - "y1": 83, - "y2": 93 + "y": 83 }, { "x": "2011-03-25", - "y1": 82, - "y2": 93 + "y": 82 }, { "x": "2011-04-26", - "y1": 83, - "y2": 93 + "y": 83 }, { "x": "2011-05-27", - "y1": 83, - "y2": 93 + "y": 83 }, { "x": "2011-06-28", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2011-07-29", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2011-09-30", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2011-10-01", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2011-11-02", - "y1": 83, - "y2": 93 + "y": 83 }, { "x": "2011-12-03", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "2012-01-04", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "2012-02-05", - "y1": 82, - "y2": 93 + "y": 82 }, { "x": "2012-03-06", - "y1": 82, - "y2": 93 + "y": 82 }, { "x": "2012-04-07", - "y1": 82, - "y2": 94 + "y": 82 }, { "x": "2012-05-08", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "2012-06-09", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "2012-07-10", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "2012-08-11", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "2012-09-12", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2012-10-13", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "2012-11-14", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "2012-12-15", - "y1": 83, - "y2": 96 + "y": 83 }, { "x": "2013-01-23", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "2013-02-24", - "y1": 83, - "y2": 93 + "y": 83 }, { "x": "2013-03-25", - "y1": 82, - "y2": 93 + "y": 82 }, { "x": "2013-04-26", - "y1": 83, - "y2": 93 + "y": 83 }, { "x": "2013-05-27", - "y1": 83, - "y2": 93 + "y": 83 }, { "x": "2013-06-28", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2013-07-29", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2013-09-30", - "y1": 85, - "y2": 95 + "y": 85 }, { "x": "2013-10-01", - "y1": 84, - "y2": 94 + "y": 84 }, { "x": "2013-11-02", - "y1": 83, - "y2": 93 + "y": 83 }, { "x": "2013-12-03", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "2014-01-04", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "2014-02-05", - "y1": 82, - "y2": 93 + "y": 82 }, { "x": "2014-03-06", - "y1": 82, - "y2": 93 + "y": 82 }, { "x": "2014-04-07", - "y1": 82, - "y2": 94 + "y": 82 }, { "x": "2014-05-08", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "2014-06-09", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "2014-07-10", - "y1": 83, - "y2": 94 + "y": 83 }, { "x": "2014-08-11", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "2014-09-12", - "y1": 84, - "y2": 95 + "y": 84 }, { "x": "2014-10-13", - "y1": 83, - "y2": 95 + "y": 83 }, { "x": "2014-11-14", - "y1": 84, - "y2": 96 + "y": 84 }, { "x": "2014-12-15", - "y1": 83, - "y2": 96 + "y": 83 } ] \ No newline at end of file diff --git a/lib/main.dart b/lib/main.dart index a4f2012..393fcee 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -35,12 +35,12 @@ class JsonDataState extends State { final List<_ChartData> _chartData = <_ChartData>[]; - Future _loadSalesDataAsset() async { + Future _loadChartDataAsset() async { return await rootBundle.loadString('assets/data.json'); } - Future _loadSalesData() async { - final String jsonString = await _loadSalesDataAsset(); + Future _loadChartData() async { + final String jsonString = await _loadChartDataAsset(); final dynamic jsonResponse = json.decode(jsonString); setState(() { for (final Map i in jsonResponse) { @@ -52,7 +52,7 @@ class JsonDataState extends State { @override void initState() { super.initState(); - _loadSalesData(); + _loadChartData(); } @override @@ -84,17 +84,17 @@ class JsonDataState extends State { axisLine: AxisLine(width: 0), majorTickLines: MajorTickLines(color: Colors.transparent), ), - series: _getDefaultFastLineSeries(), + series: _buildFastLineSeries(), ); } /// The method returns line series to chart. - List> _getDefaultFastLineSeries() { + List> _buildFastLineSeries() { return >[ FastLineSeries<_ChartData, DateTime>( dataSource: _chartData, xValueMapper: (_ChartData data, int index) => data.x, - yValueMapper: (_ChartData data, int index) => data.y1, + yValueMapper: (_ChartData data, int index) => data.y, ), ]; } @@ -107,17 +107,15 @@ class JsonDataState extends State { } class _ChartData { - _ChartData(this.x, this.y1, this.y2); + _ChartData(this.x, this.y); DateTime x; - num y1; - num y2; + num y; factory _ChartData.fromJson(Map parsedJson) { return _ChartData( DateTime.parse(parsedJson['x']), - parsedJson['y1'], - parsedJson['y2'], + parsedJson['y'], ); } } diff --git a/pubspec.lock b/pubspec.lock deleted file mode 100644 index 59c768e..0000000 --- a/pubspec.lock +++ /dev/null @@ -1,237 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 - url: "https://pub.dev" - source: hosted - version: "1.0.8" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - intl: - dependency: "direct main" - description: - name: intl - sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf - url: "https://pub.dev" - source: hosted - version: "0.19.0" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" - url: "https://pub.dev" - source: hosted - version: "10.0.4" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" - url: "https://pub.dev" - source: hosted - version: "3.0.3" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" - url: "https://pub.dev" - source: hosted - version: "3.0.1" - lints: - dependency: transitive - description: - name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 - url: "https://pub.dev" - source: hosted - version: "3.0.0" - matcher: - dependency: transitive - description: - name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb - url: "https://pub.dev" - source: hosted - version: "0.12.16+1" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" - url: "https://pub.dev" - source: hosted - version: "0.8.0" - meta: - dependency: transitive - description: - name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" - url: "https://pub.dev" - source: hosted - version: "1.12.0" - path: - dependency: transitive - description: - name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" - url: "https://pub.dev" - source: hosted - version: "1.9.0" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - syncfusion_flutter_charts: - dependency: "direct main" - description: - name: syncfusion_flutter_charts - sha256: dc4ad537a0e6d1d751c934509c270aa9bf09958bd6357b4dc744d809d6a8b5d7 - url: "https://pub.dev" - source: hosted - version: "26.2.4" - syncfusion_flutter_core: - dependency: transitive - description: - name: syncfusion_flutter_core - sha256: "34920fc391f9562d68657b9b25be6e873a67e069a52bcf41ae583b7eb46dcb26" - url: "https://pub.dev" - source: hosted - version: "26.2.4" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" - url: "https://pub.dev" - source: hosted - version: "0.7.0" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" - url: "https://pub.dev" - source: hosted - version: "14.2.1" -sdks: - dart: ">=3.4.3 <4.0.0" - flutter: ">=3.18.0-18.0.pre.54"