Allow null/undefined embedded within numeric values (#29723)

Nulls are used create deliberate gaps in charts.
This commit is contained in:
Daniel Luz
2018-10-15 09:29:55 -07:00
committed by Sheetal Nandi
parent f89eb54b58
commit e35089cc40
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ const chart: Chart = new Chart(new CanvasRenderingContext2D(), {
backgroundColor: "#000000",
borderWidth: 1,
label: "test",
data: [1]
data: [1, null, 3]
}
]
},
+1 -1
View File
@@ -548,7 +548,7 @@ declare namespace Chart {
borderDashOffset?: number;
borderJoinStyle?: 'bevel' | 'round' | 'miter';
borderSkipped?: PositionType;
data?: number[] | ChartPoint[];
data?: Array<number | null | undefined> | ChartPoint[];
fill?: boolean | number | string;
hoverBackgroundColor?: string | string[];
hoverBorderColor?: string | string[];