mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
IChartistSeriesData.data is not only an array of number (#35490)
* bugfix/DefinitelyTyped : IChartistSeriesData.data is not only an array of number * bugfix/DefinitelyTyped : IChartistSeriesData.data is not only an array of number cleaner * test/DefinitelyTyped : IChartistSeriesData.data is not only an array of number - Test * test/DefinitelyTyped : IChartistSeriesData.data - Test - missing ending new line
This commit is contained in:
parent
7f87a12b2b
commit
6818b51c5b
@ -535,3 +535,32 @@ new Chartist.Line('.ct-chart', {
|
||||
]
|
||||
]
|
||||
}, {})
|
||||
|
||||
new Chartist.Line('.ct-chart', {
|
||||
labels: [new Date(143134652600), new Date(143384652600)],
|
||||
series: [
|
||||
{
|
||||
name: 'remaining',
|
||||
data: [
|
||||
{ x: new Date(143134652600), y: 53 },
|
||||
{ x: new Date(143334652600), y: 40 },
|
||||
{ x: new Date(143354652600), y: 45 },
|
||||
{ x: new Date(143356652600), y: 41 },
|
||||
{ x: new Date(143366652600), y: 40 },
|
||||
{ x: new Date(143368652600), y: 38 },
|
||||
{ x: new Date(143378652600), y: 34 },
|
||||
{ x: new Date(143568652600), y: 32 },
|
||||
{ x: new Date(143569652600), y: 18 },
|
||||
{ x: new Date(143579652600), y: 11 }
|
||||
]
|
||||
}, {
|
||||
name: 'stories',
|
||||
data: [
|
||||
{ x: new Date(143134652600), y: 53 },
|
||||
{ x: new Date(143334652600), y: 30 },
|
||||
{ x: new Date(143384652600), y: 30 },
|
||||
{ x: new Date(143568652600), y: 10 }
|
||||
]
|
||||
}
|
||||
]
|
||||
}, {})
|
||||
|
||||
2
types/chartist/index.d.ts
vendored
2
types/chartist/index.d.ts
vendored
@ -99,7 +99,7 @@ declare namespace Chartist {
|
||||
interface IChartistSeriesData {
|
||||
name?: string;
|
||||
value?: number;
|
||||
data?: Array<number>;
|
||||
data?: Array<number> | Array<{ x: number | Date, y: number }>;
|
||||
className?: string;
|
||||
meta?: any;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user