问题描述
我的标签的最后日期为“'2021年7月8日'”,但是我的图表有时不显示最后的日期, 实际上,它本身会进行一些计算。
所以我想从标签上的第一个项目开始x轴,并且应该以标签上x轴上的标签的最后一个项目结尾,并且中间的其余日期可以自动生成通过图表。
<!doctype html>
<html>
<head>
<title>Min/Max Settings</title>
<script src="https://www.chartjs.org/dist/2.8.0/Chart.min.js"></script>
<script src="https://www.chartjs.org/samples/latest/utils.js"></script>
<!--<style>
canvas {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
</style>-->
</head>
<body>
<div>
<canvas id="canvas"></canvas>
</div>
<script>
var config = {
type: 'line',data: {
//labels: ['01 jan 2021','02 jan 2021','03 jan 2021','04 jan 2021','05 jan 2021','06 jan 2021','07 jan 2021'],labels: ['18 Sep 2018','19 Sep 2018','20 Sep 2018','21 Sep 2018','22 Sep 2018','23 Sep 2018','24 Sep 2018','25 Sep 2018','26 Sep 2018','27 Sep 2018','28 Sep 2018','29 Sep 2018','30 Sep 2018','01 Oct 2018','02 Oct 2018','03 Oct 2018','04 Oct 2018','05 Oct 2018','06 Oct 2018','07 Oct 2018','08 Oct 2018','09 Oct 2018','10 Oct 2018','11 Oct 2018','12 Oct 2018','13 Oct 2018','14 Oct 2018','15 Oct 2018','16 Oct 2018','17 Oct 2018','18 Oct 2018','19 Oct 2018','20 Oct 2018','21 Oct 2018','22 Oct 2018','23 Oct 2018','24 Oct 2018','25 Oct 2018','26 Oct 2018','27 Oct 2018','28 Oct 2018','29 Oct 2018','30 Oct 2018','31 Oct 2018','01 Nov 2018','02 Nov 2018','03 Nov 2018','04 Nov 2018','05 Nov 2018','06 Nov 2018','07 Nov 2018','08 Nov 2018','09 Nov 2018','10 Nov 2018','11 Nov 2018','12 Nov 2018','13 Nov 2018','14 Nov 2018','15 Nov 2018','16 Nov 2018','17 Nov 2018','18 Nov 2018','19 Nov 2018','20 Nov 2018','21 Nov 2018','22 Nov 2018','23 Nov 2018','24 Nov 2018','25 Nov 2018','26 Nov 2018','27 Nov 2018','28 Nov 2018','29 Nov 2018','30 Nov 2018','01 Dec 2018','02 Dec 2018','03 Dec 2018','04 Dec 2018','05 Dec 2018','06 Dec 2018','07 Dec 2018','08 Dec 2018','09 Dec 2018','10 Dec 2018','11 Dec 2018','12 Dec 2018','13 Dec 2018','14 Dec 2018','15 Dec 2018','16 Dec 2018','17 Dec 2018','18 Dec 2018','19 Dec 2018','20 Dec 2018','21 Dec 2018','22 Dec 2018','23 Dec 2018','24 Dec 2018','25 Dec 2018','26 Dec 2018','27 Dec 2018','28 Dec 2018','29 Dec 2018','30 Dec 2018','31 Dec 2018','01 Jan 2019','02 Jan 2019','03 Jan 2019','04 Jan 2019','05 Jan 2019','06 Jan 2019','07 Jan 2019','08 Jan 2019','09 Jan 2019','10 Jan 2019','11 Jan 2019','12 Jan 2019','13 Jan 2019','14 Jan 2019','15 Jan 2019','16 Jan 2019','17 Jan 2019','18 Jan 2019','19 Jan 2019','20 Jan 2019','21 Jan 2019','22 Jan 2019','23 Jan 2019','24 Jan 2019','25 Jan 2019','26 Jan 2019','27 Jan 2019','28 Jan 2019','29 Jan 2019','30 Jan 2019','31 Jan 2019','01 Feb 2019','02 Feb 2019','03 Feb 2019','04 Feb 2019','05 Feb 2019','06 Feb 2019','07 Feb 2019','08 Feb 2019','09 Feb 2019','10 Feb 2019','11 Feb 2019','12 Feb 2019','13 Feb 2019','14 Feb 2019','15 Feb 2019','16 Feb 2019','17 Feb 2019','18 Feb 2019','19 Feb 2019','20 Feb 2019','21 Feb 2019','22 Feb 2019','23 Feb 2019','24 Feb 2019','25 Feb 2019','26 Feb 2019','27 Feb 2019','28 Feb 2019','01 Mar 2019','02 Mar 2019','03 Mar 2019','04 Mar 2019','05 Mar 2019','06 Mar 2019','07 Mar 2019','08 Mar 2019','09 Mar 2019','10 Mar 2019','11 Mar 2019','12 Mar 2019','13 Mar 2019','14 Mar 2019','15 Mar 2019','16 Mar 2019','17 Mar 2019','18 Mar 2019','19 Mar 2019','20 Mar 2019','21 Mar 2019','22 Mar 2019','23 Mar 2019','24 Mar 2019','25 Mar 2019','26 Mar 2019','27 Mar 2019','28 Mar 2019','29 Mar 2019','30 Mar 2019','31 Mar 2019','01 Apr 2019','02 Apr 2019','03 Apr 2019','04 Apr 2019','05 Apr 2019','06 Apr 2019','07 Apr 2019','08 Apr 2019','09 Apr 2019','10 Apr 2019','11 Apr 2019','12 Apr 2019','13 Apr 2019','14 Apr 2019','15 Apr 2019','16 Apr 2019','17 Apr 2019','18 Apr 2019','19 Apr 2019','20 Apr 2019','21 Apr 2019','22 Apr 2019','23 Apr 2019','24 Apr 2019','25 Apr 2019','26 Apr 2019','27 Apr 2019','28 Apr 2019','29 Apr 2019','30 Apr 2019','01 May 2019','02 May 2019','03 May 2019','04 May 2019','05 May 2019','06 May 2019','07 May 2019','08 May 2019','09 May 2019','10 May 2019','11 May 2019','12 May 2019','13 May 2019','14 May 2019','15 May 2019','16 May 2019','17 May 2019','18 May 2019','19 May 2019','20 May 2019','21 May 2019','22 May 2019','23 May 2019','24 May 2019','25 May 2019','26 May 2019','27 May 2019','28 May 2019','29 May 2019','30 May 2019','31 May 2019','01 Jun 2019','02 Jun 2019','03 Jun 2019','04 Jun 2019','05 Jun 2019','06 Jun 2019','07 Jun 2019','08 Jun 2019','09 Jun 2019','10 Jun 2019','11 Jun 2019','12 Jun 2019','13 Jun 2019','14 Jun 2019','15 Jun 2019','16 Jun 2019','17 Jun 2019','18 Jun 2019','19 Jun 2019','20 Jun 2019','21 Jun 2019','22 Jun 2019','23 Jun 2019','24 Jun 2019','25 Jun 2019','26 Jun 2019','27 Jun 2019','28 Jun 2019','29 Jun 2019','30 Jun 2019','01 Jul 2019','02 Jul 2019','03 Jul 2019','04 Jul 2019','05 Jul 2019','06 Jul 2019','07 Jul 2019','08 Jul 2019','09 Jul 2019','10 Jul 2019','11 Jul 2019','12 Jul 2019','13 Jul 2019','14 Jul 2019','15 Jul 2019','16 Jul 2019','17 Jul 2019','18 Jul 2019','19 Jul 2019','20 Jul 2019','21 Jul 2019','22 Jul 2019','23 Jul 2019','24 Jul 2019','25 Jul 2019','26 Jul 2019','27 Jul 2019','28 Jul 2019','29 Jul 2019','30 Jul 2019','31 Jul 2019','01 Aug 2019','02 Aug 2019','03 Aug 2019','04 Aug 2019','05 Aug 2019','06 Aug 2019','07 Aug 2019','08 Aug 2019','09 Aug 2019','10 Aug 2019','11 Aug 2019','12 Aug 2019','13 Aug 2019','14 Aug 2019','15 Aug 2019','16 Aug 2019','17 Aug 2019','18 Aug 2019','19 Aug 2019','20 Aug 2019','21 Aug 2019','22 Aug 2019','23 Aug 2019','24 Aug 2019','25 Aug 2019','26 Aug 2019','27 Aug 2019','28 Aug 2019','29 Aug 2019','30 Aug 2019','31 Aug 2019','01 Sep 2019','02 Sep 2019','03 Sep 2019','04 Sep 2019','05 Sep 2019','06 Sep 2019','07 Sep 2019','08 Sep 2019','09 Sep 2019','10 Sep 2019','11 Sep 2019','12 Sep 2019','13 Sep 2019','14 Sep 2019','15 Sep 2019','16 Sep 2019','17 Sep 2019','18 Sep 2019','19 Sep 2019','20 Sep 2019','21 Sep 2019','22 Sep 2019','23 Sep 2019','24 Sep 2019','25 Sep 2019','26 Sep 2019','27 Sep 2019','28 Sep 2019','29 Sep 2019','30 Sep 2019','01 Oct 2019','02 Oct 2019','03 Oct 2019','04 Oct 2019','05 Oct 2019','06 Oct 2019','07 Oct 2019','08 Oct 2019','09 Oct 2019','10 Oct 2019','11 Oct 2019','12 Oct 2019','13 Oct 2019','14 Oct 2019','15 Oct 2019','16 Oct 2019','17 Oct 2019','18 Oct 2019','19 Oct 2019','20 Oct 2019','21 Oct 2019','22 Oct 2019','23 Oct 2019','24 Oct 2019','25 Oct 2019','26 Oct 2019','27 Oct 2019','28 Oct 2019','29 Oct 2019','30 Oct 2019','31 Oct 2019','01 Nov 2019','02 Nov 2019','03 Nov 2019','04 Nov 2019','05 Nov 2019','06 Nov 2019','07 Nov 2019','08 Nov 2019','09 Nov 2019','10 Nov 2019','11 Nov 2019','12 Nov 2019','13 Nov 2019','14 Nov 2019','15 Nov 2019','16 Nov 2019','17 Nov 2019','18 Nov 2019','19 Nov 2019','20 Nov 2019','21 Nov 2019','22 Nov 2019','23 Nov 2019','24 Nov 2019','25 Nov 2019','26 Nov 2019','27 Nov 2019','28 Nov 2019','29 Nov 2019','30 Nov 2019','01 Dec 2019','02 Dec 2019','03 Dec 2019','04 Dec 2019','05 Dec 2019','06 Dec 2019','07 Dec 2019','08 Dec 2019','09 Dec 2019','10 Dec 2019','11 Dec 2019','12 Dec 2019','13 Dec 2019','14 Dec 2019','15 Dec 2019','16 Dec 2019','17 Dec 2019','18 Dec 2019','19 Dec 2019','20 Dec 2019','21 Dec 2019','22 Dec 2019','23 Dec 2019','24 Dec 2019','25 Dec 2019','26 Dec 2019','27 Dec 2019','28 Dec 2019','29 Dec 2019','30 Dec 2019','31 Dec 2019','01 Jan 2020','02 Jan 2020','03 Jan 2020','04 Jan 2020','05 Jan 2020','06 Jan 2020','07 Jan 2020','08 Jan 2020','09 Jan 2020','10 Jan 2020','11 Jan 2020','12 Jan 2020','13 Jan 2020','14 Jan 2020','15 Jan 2020','16 Jan 2020','17 Jan 2020','18 Jan 2020','19 Jan 2020','20 Jan 2020','21 Jan 2020','22 Jan 2020','23 Jan 2020','24 Jan 2020','25 Jan 2020','26 Jan 2020','27 Jan 2020','28 Jan 2020','29 Jan 2020','30 Jan 2020','31 Jan 2020','01 Feb 2020','02 Feb 2020','03 Feb 2020','04 Feb 2020','05 Feb 2020','06 Feb 2020','07 Feb 2020','08 Feb 2020','09 Feb 2020','10 Feb 2020','11 Feb 2020','12 Feb 2020','13 Feb 2020','14 Feb 2020','15 Feb 2020','16 Feb 2020','17 Feb 2020','18 Feb 2020','19 Feb 2020','20 Feb 2020','21 Feb 2020','22 Feb 2020','23 Feb 2020','24 Feb 2020','25 Feb 2020','26 Feb 2020','27 Feb 2020','28 Feb 2020','29 Feb 2020','01 Mar 2020','02 Mar 2020','03 Mar 2020','04 Mar 2020','05 Mar 2020','06 Mar 2020','07 Mar 2020','08 Mar 2020','09 Mar 2020','10 Mar 2020','11 Mar 2020','12 Mar 2020','13 Mar 2020','14 Mar 2020','15 Mar 2020','16 Mar 2020','17 Mar 2020','18 Mar 2020','19 Mar 2020','20 Mar 2020','21 Mar 2020','22 Mar 2020','23 Mar 2020','24 Mar 2020','25 Mar 2020','26 Mar 2020','27 Mar 2020','28 Mar 2020','29 Mar 2020','30 Mar 2020','31 Mar 2020','01 Apr 2020','02 Apr 2020','03 Apr 2020','04 Apr 2020','05 Apr 2020','06 Apr 2020','07 Apr 2020','08 Apr 2020','09 Apr 2020','10 Apr 2020','11 Apr 2020','12 Apr 2020','13 Apr 2020','14 Apr 2020','15 Apr 2020','16 Apr 2020','17 Apr 2020','18 Apr 2020','19 Apr 2020','20 Apr 2020','21 Apr 2020','22 Apr 2020','23 Apr 2020','24 Apr 2020','25 Apr 2020','26 Apr 2020','27 Apr 2020','28 Apr 2020','29 Apr 2020','30 Apr 2020','01 May 2020','02 May 2020','03 May 2020','04 May 2020','05 May 2020','06 May 2020','07 May 2020','08 May 2020','09 May 2020','10 May 2020','11 May 2020','12 May 2020','13 May 2020','14 May 2020','15 May 2020','16 May 2020','17 May 2020','18 May 2020','19 May 2020','20 May 2020','21 May 2020','22 May 2020','23 May 2020','24 May 2020','25 May 2020','26 May 2020','27 May 2020','28 May 2020','29 May 2020','30 May 2020','31 May 2020','01 Jun 2020','02 Jun 2020','03 Jun 2020','04 Jun 2020','05 Jun 2020','06 Jun 2020','07 Jun 2020','08 Jun 2020','09 Jun 2020','10 Jun 2020','11 Jun 2020','12 Jun 2020','13 Jun 2020','14 Jun 2020','15 Jun 2020','16 Jun 2020','17 Jun 2020','18 Jun 2020','19 Jun 2020','20 Jun 2020','21 Jun 2020','22 Jun 2020','23 Jun 2020','24 Jun 2020','25 Jun 2020','26 Jun 2020','27 Jun 2020','28 Jun 2020','29 Jun 2020','30 Jun 2020','01 Jul 2020','02 Jul 2020','03 Jul 2020','04 Jul 2020','05 Jul 2020','06 Jul 2020','07 Jul 2020','08 Jul 2020','09 Jul 2020','10 Jul 2020','11 Jul 2020','12 Jul 2020','13 Jul 2020','14 Jul 2020','15 Jul 2020','16 Jul 2020','17 Jul 2020','18 Jul 2020','19 Jul 2020','20 Jul 2020','21 Jul 2020','22 Jul 2020','23 Jul 2020','24 Jul 2020','25 Jul 2020','26 Jul 2020','27 Jul 2020','28 Jul 2020','29 Jul 2020','30 Jul 2020','31 Jul 2020','01 Aug 2020','02 Aug 2020','03 Aug 2020','04 Aug 2020','05 Aug 2020','06 Aug 2020','07 Aug 2020','08 Aug 2020','09 Aug 2020','10 Aug 2020','11 Aug 2020','12 Aug 2020','13 Aug 2020','14 Aug 2020','15 Aug 2020','16 Aug 2020','17 Aug 2020','18 Aug 2020','19 Aug 2020','20 Aug 2020','21 Aug 2020','22 Aug 2020','23 Aug 2020','24 Aug 2020','25 Aug 2020','26 Aug 2020','27 Aug 2020','28 Aug 2020','29 Aug 2020','30 Aug 2020','31 Aug 2020','01 Sep 2020','02 Sep 2020','03 Sep 2020','04 Sep 2020','05 Sep 2020','06 Sep 2020','07 Sep 2020','08 Sep 2020','09 Sep 2020','10 Sep 2020','11 Sep 2020','12 Sep 2020','13 Sep 2020','14 Sep 2020','15 Sep 2020','16 Sep 2020','17 Sep 2020','18 Sep 2020','19 Sep 2020','20 Sep 2020','21 Sep 2020','22 Sep 2020','23 Sep 2020','24 Sep 2020','25 Sep 2020','26 Sep 2020','27 Sep 2020','28 Sep 2020','29 Sep 2020','30 Sep 2020','01 Oct 2020','02 Oct 2020','03 Oct 2020','04 Oct 2020','05 Oct 2020','06 Oct 2020','07 Oct 2020','08 Oct 2020','09 Oct 2020','10 Oct 2020','11 Oct 2020','12 Oct 2020','13 Oct 2020','14 Oct 2020','15 Oct 2020','16 Oct 2020','17 Oct 2020','18 Oct 2020','19 Oct 2020','20 Oct 2020','21 Oct 2020','22 Oct 2020','23 Oct 2020','24 Oct 2020','25 Oct 2020','26 Oct 2020','27 Oct 2020','28 Oct 2020','29 Oct 2020','30 Oct 2020','31 Oct 2020','01 Nov 2020','02 Nov 2020','03 Nov 2020','04 Nov 2020','05 Nov 2020','06 Nov 2020','07 Nov 2020','08 Nov 2020','09 Nov 2020','10 Nov 2020','11 Nov 2020','12 Nov 2020','13 Nov 2020','14 Nov 2020','15 Nov 2020','16 Nov 2020','17 Nov 2020','18 Nov 2020','19 Nov 2020','20 Nov 2020','21 Nov 2020','22 Nov 2020','23 Nov 2020','24 Nov 2020','25 Nov 2020','26 Nov 2020','27 Nov 2020','28 Nov 2020','29 Nov 2020','30 Nov 2020','01 Dec 2020','02 Dec 2020','03 Dec 2020','04 Dec 2020','05 Dec 2020','06 Dec 2020','07 Dec 2020','08 Dec 2020','09 Dec 2020','10 Dec 2020','11 Dec 2020','12 Dec 2020','13 Dec 2020','14 Dec 2020','15 Dec 2020','16 Dec 2020','17 Dec 2020','18 Dec 2020','19 Dec 2020','20 Dec 2020','21 Dec 2020','22 Dec 2020','23 Dec 2020','24 Dec 2020','25 Dec 2020','26 Dec 2020','27 Dec 2020','28 Dec 2020','29 Dec 2020','30 Dec 2020','31 Dec 2020','01 Jan 2021','02 Jan 2021','03 Jan 2021','04 Jan 2021','05 Jan 2021','06 Jan 2021','07 Jan 2021','08 Jan 2021','09 Jan 2021','10 Jan 2021','11 Jan 2021','12 Jan 2021','13 Jan 2021','14 Jan 2021','15 Jan 2021','16 Jan 2021','17 Jan 2021','18 Jan 2021','19 Jan 2021','20 Jan 2021','21 Jan 2021','22 Jan 2021','23 Jan 2021','24 Jan 2021','25 Jan 2021','26 Jan 2021','27 Jan 2021','28 Jan 2021','29 Jan 2021','30 Jan 2021','31 Jan 2021','01 Feb 2021','02 Feb 2021','03 Feb 2021','04 Feb 2021','05 Feb 2021','06 Feb 2021','07 Feb 2021','08 Feb 2021','09 Feb 2021','10 Feb 2021','11 Feb 2021','12 Feb 2021','13 Feb 2021','14 Feb 2021','15 Feb 2021','16 Feb 2021','17 Feb 2021','18 Feb 2021','19 Feb 2021','20 Feb 2021','21 Feb 2021','22 Feb 2021','23 Feb 2021','24 Feb 2021','25 Feb 2021','26 Feb 2021','27 Feb 2021','28 Feb 2021','01 Mar 2021','02 Mar 2021','03 Mar 2021','04 Mar 2021','05 Mar 2021','06 Mar 2021','07 Mar 2021','08 Mar 2021','09 Mar 2021','10 Mar 2021','11 Mar 2021','12 Mar 2021','13 Mar 2021','14 Mar 2021','15 Mar 2021','16 Mar 2021','17 Mar 2021','18 Mar 2021','19 Mar 2021','20 Mar 2021','21 Mar 2021','22 Mar 2021','23 Mar 2021','24 Mar 2021','25 Mar 2021','26 Mar 2021','27 Mar 2021','28 Mar 2021','29 Mar 2021','30 Mar 2021','31 Mar 2021','01 Apr 2021','02 Apr 2021','03 Apr 2021','04 Apr 2021','05 Apr 2021','06 Apr 2021','07 Apr 2021','08 Apr 2021','09 Apr 2021','10 Apr 2021','11 Apr 2021','12 Apr 2021','13 Apr 2021','14 Apr 2021','15 Apr 2021','16 Apr 2021','17 Apr 2021','18 Apr 2021','19 Apr 2021','20 Apr 2021','21 Apr 2021','22 Apr 2021','23 Apr 2021','24 Apr 2021','25 Apr 2021','26 Apr 2021','27 Apr 2021','28 Apr 2021','29 Apr 2021','30 Apr 2021','01 May 2021','02 May 2021','03 May 2021','04 May 2021','05 May 2021','06 May 2021','07 May 2021','08 May 2021','09 May 2021','10 May 2021','11 May 2021','12 May 2021','13 May 2021','14 May 2021','15 May 2021','16 May 2021','17 May 2021','18 May 2021','19 May 2021','20 May 2021','21 May 2021','22 May 2021','23 May 2021','24 May 2021','25 May 2021','26 May 2021','27 May 2021','28 May 2021','29 May 2021','30 May 2021','31 May 2021','01 Jun 2021','02 Jun 2021','03 Jun 2021','04 Jun 2021','05 Jun 2021','06 Jun 2021','07 Jun 2021','08 Jun 2021','09 Jun 2021','10 Jun 2021','11 Jun 2021','12 Jun 2021','13 Jun 2021','14 Jun 2021','15 Jun 2021','16 Jun 2021','17 Jun 2021','18 Jun 2021','19 Jun 2021','20 Jun 2021','21 Jun 2021','22 Jun 2021','23 Jun 2021','24 Jun 2021','25 Jun 2021','26 Jun 2021','27 Jun 2021','28 Jun 2021','29 Jun 2021','30 Jun 2021','01 Jul 2021','02 Jul 2021','03 Jul 2021','04 Jul 2021','05 Jul 2021','06 Jul 2021','07 Jul 2021','08 Jul 2021'],// labels: [
//new Date('01 jan 2021'),//new Date('02 jan 2021'),//new Date('03 jan 2021'),//new Date('04 jan 2021'),//new Date('05 jan 2021'),//new Date('06 jan 2021'),new Date('07 jan 2021')],datasets: [{
label: 'My First dataset',backgroundColor: window.chartColors.red,borderColor: window.chartColors.red,data: [0,0.12254889330106698,0.32280755723242766,0.3705473896601034,0.6758766635055427,0.8244286211473192,1.0078802314872157,1.0304071017787129,1.076813387368857,1.1038642875118556,1.1395206048916817,1.190037128662444,1.2105585011847189,1.2394749806479242,1.2400588408541948,1.2412265612667361,1.242978141885548,1.2656000244804673,1.266183884686738,1.26793546530555,1.2972931326287493,1.2996285734538318,1.3793855560674966,1.3917467524012785,1.4532868907073861,1.478358212828783,1.510891852231007,1.5120595726435484,1.5572997619820184,1.662419443819618,1.6635871642321594,1.6920407155401371,1.6955438767777609,1.7314377886181331,1.753374025253115,1.7566469670218972,1.7589824078469798,1.7656396743717555,1.8189689029953235,1.8449462440862183,1.850200985942654,1.9866600368381813,2.0107965467871907,2.020985368220444,2.167616276981336,2.19229884201696,2.1975535838733955,2.20164060531729,2.2041756796231415,2.2532968490103835,2.338248297528851,2.361604101489247,2.3916888973887107,2.5301419625800716,2.591157271038664,2.595866501088167,2.604398730067824,2.6731304785073995,2.676049779538753,2.711613892754104,2.7707974121793346,2.774254067039141,2.7908299618742474,2.8169825545227534,2.818400274788291,2.8417386662354853,2.847328035660191,2.8628671362379965,2.883011335782216,2.894611408000985,2.9038912923570512,2.963059049914807,2.98380102798942,3.032839166174432,3.03609150895183,3.0504320660817763,3.0669296263364303,3.0801948329105344,3.0889219904809764,3.102137364021575,3.105937727004286,3.133967383190991,3.192778543719142,3.2053807671551335,3.224550614976021,3.242925857579033,3.312537221692429,3.3201944290726404,3.3437051874631023,3.3639606626679828,3.429983726271687,3.4663192212137903,3.4970749445266396,3.534296055959798,3.547589853780837,3.5704778589280664,3.5990969277587723,3.6592508708178335,3.682776868012045,3.6972425704934127,3.8331586034078007,3.8360958295167547,3.8451984485163235,3.934531189420208,3.9695202558997438,3.9804900862309647,4.026426811553684,4.147551982382438,4.147923983197199,4.180885405765167,4.201573971521404,4.273469955208738,4.318340004670353,4.350961025235279,4.3994415734811385,4.416980643604638,4.60276345246724,4.625551431623966,4.680192189782438,4.721381762488211,4.8692578597667975,4.926825190981766,4.932433873833583,4.95232477579133,4.979106893118278,5.079496228415401,5.195073548746386,5.215756287637009,5.288706775145206,5.3105376389492935,5.32152537969403,5.355299283283139,5.39168597056405,5.519874788221015,5.544351310918864,5.592212141087328,5.59396372170614,5.620226049973154,5.656040195212215,5.742884105031198,5.7795413313931645,5.817149440299622,5.865029953067733,5.869116974511628,5.891887522556182,5.924774269173532,6.045927789067044,6.075418992412611,6.1331512198319915,6.2329584472173485,6.242884070723949,6.286477761315652,6.402540641377649,6.472973586625646,6.481147629513435,6.557052073284062,6.794864697830497,6.800703648820596,6.83631981925789,6.841574561114325,6.91591837757457,6.9298087234739105,6.968343497087772,7.0542595999651905,7.07153687644279,7.142112065023185,7.200159253730164,7.212210879466488,7.240820029573748,7.317891761818495,7.333072127181532,7.352923374194733,7.376277782445557,7.478651893122125,7.5276961504488575,7.5839956284740655,7.589834230536772,7.5907925123539535,],fill: false,},{
label: 'My Second dataset',backgroundColor: window.chartColors.blue,borderColor: window.chartColors.blue,data: [5,2,}]
},options: {
title: {
display: true,text: 'Min and Max Settings'
},scales: {
xAxes: [{
ticks: {
min: '18 Sep 2018',max: '08 Jul 2021'
}
}]
}
}
};
window.onload = function () {
var ctx = document.getElementById('canvas').getContext('2d');
window.myLine = new Chart(ctx,config);
};
</script>
</body>
</html>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)