答案 0 :(得分:1)
.wrapper {
width: 100%;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.6.0/Chart.bundle.min.js"></script>
<div class="wrapper">
<canvas id="canvas"></canvas>
</div>
head(df,50)
YEAR MONTH DAY MEAN MAX MIN Data2 MD
114 1985 4 24 20.0 25.9 13.8 1985-04-24 04-24
479 1986 4 24 22.0 28.6 16.0 1986-04-24 04-24
844 1987 4 24 23.9 30.0 18.5 1987-04-24 04-24
1210 1988 4 24 23.1 28.0 17.2 1988-04-24 04-24
1575 1989 4 24 22.8 28.0 16.7 1989-04-24 04-24
1940 1990 4 24 17.9 23.4 10.5 1990-04-24 04-24
2305 1991 4 24 24.4 32.0 17.8 1991-04-24 04-24
2671 1992 4 24 23.8 29.8 18.8 1992-04-24 04-24
3036 1993 4 24 23.5 28.4 19.2 1993-04-24 04-24
3401 1994 4 24 23.5 30.0 15.0 1994-04-24 04-24
115 1985 4 25 21.3 28.1 15.0 1985-04-25 04-25
480 1986 4 25 22.0 26.7 18.2 1986-04-25 04-25
845 1987 4 25 24.3 30.4 19.0 1987-04-25 04-25
1211 1988 4 25 21.7 26.4 17.4 1988-04-25 04-25
1576 1989 4 25 23.0 28.0 17.0 1989-04-25 04-25
1941 1990 4 25 15.3 22.7 11.2 1990-04-25 04-25
2306 1991 4 25 25.2 33.0 20.0 1991-04-25 04-25
2672 1992 4 25 23.2 28.4 19.8 1992-04-25 04-25
3037 1993 4 25 22.7 27.4 19.7 1993-04-25 04-25
3402 1994 4 25 22.8 30.0 15.0 1994-04-25 04-25
116 1985 4 26 21.4 28.0 16.5 1985-04-26 04-26
481 1986 4 26 21.3 26.4 18.1 1986-04-26 04-26
846 1987 4 26 24.7 31.0 20.6 1987-04-26 04-26
1212 1988 4 26 21.1 26.5 14.0 1988-04-26 04-26
1577 1989 4 26 21.5 28.0 16.5 1989-04-26 04-26
1942 1990 4 26 15.7 21.5 9.8 1990-04-26 04-26
2307 1991 4 26 25.7 32.8 20.0 1991-04-26 04-26
2673 1992 4 26 22.6 27.0 17.6 1992-04-26 04-26
3038 1993 4 26 22.0 26.0 19.0 1993-04-26 04-26
3403 1994 4 26 23.3 29.6 18.5 1994-04-26 04-26
117 1985 4 27 21.5 28.0 16.0 1985-04-27 04-27
482 1986 4 27 20.0 26.5 15.0 1986-04-27 04-27
847 1987 4 27 24.5 30.4 20.0 1987-04-27 04-27
1213 1988 4 27 23.4 28.3 14.0 1988-04-27 04-27
1578 1989 4 27 19.8 27.7 15.0 1989-04-27 04-27
1943 1990 4 27 12.3 16.4 10.0 1990-04-27 04-27
2308 1991 4 27 25.8 32.8 19.0 1991-04-27 04-27
2674 1992 4 27 22.0 28.4 15.6 1992-04-27 04-27
3039 1993 4 27 19.6 24.2 16.2 1993-04-27 04-27
3404 1994 4 27 25.0 31.6 19.0 1994-04-27 04-27
118 1985 4 28 21.4 31.1 16.0 1985-04-28 04-28
483 1986 4 28 19.7 25.9 15.0 1986-04-28 04-28
848 1987 4 28 24.6 32.8 18.0 1987-04-28 04-28
1214 1988 4 28 24.8 29.4 15.2 1988-04-28 04-28
1579 1989 4 28 23.1 28.4 14.0 1989-04-28 04-28
1944 1990 4 28 17.9 23.2 8.2 1990-04-28 04-28
2309 1991 4 28 26.2 32.0 19.0 1991-04-28 04-28
2675 1992 4 28 23.3 28.6 16.0 1992-04-28 04-28
3040 1993 4 28 19.1 24.2 14.0 1993-04-28 04-28
3405 1994 4 28 23.9 32.2 17.2 1994-04-28 04-28