@types/chartist
Advanced tools
Comparing version 0.11.0 to 0.11.1
@@ -95,3 +95,3 @@ // Type definitions for Chartist v0.11.4 | ||
interface IChartistData { | ||
labels?: Array<string> | Array<number> | Array<Date>; | ||
labels?: Array<string> | Array<number> | Array<Date> | undefined; | ||
series: Array<IChartistSeriesData> | Array<Array<IChartistSeriesData>> | Array<Array<IChartistData>> | Array<number> | Array<Array<number>>; | ||
@@ -101,6 +101,6 @@ } | ||
interface IChartistSeriesData { | ||
name?: string; | ||
value?: number; | ||
data?: Array<number> | Array<{ x: number | Date, y: number }>; | ||
className?: string; | ||
name?: string | undefined; | ||
value?: number | undefined; | ||
data?: Array<number> | Array<{ x: number | Date, y: number }> | undefined; | ||
className?: string | undefined; | ||
meta?: any; | ||
@@ -123,3 +123,3 @@ } | ||
plugins?: Array<any>; // all of these plugins seem to be functions with options, but keeping type any for now | ||
plugins?: Array<any> | undefined; // all of these plugins seem to be functions with options, but keeping type any for now | ||
@@ -169,5 +169,5 @@ update(data: Object, options?: T, override?: boolean): void; | ||
*/ | ||
reverseData?: boolean; | ||
reverseData?: boolean | undefined; | ||
plugins?: Array<any>; | ||
plugins?: Array<any> | undefined; | ||
} | ||
@@ -179,3 +179,3 @@ | ||
*/ | ||
width?: number | string; | ||
width?: number | string | undefined; | ||
@@ -185,3 +185,3 @@ /** | ||
*/ | ||
height?: number | string; | ||
height?: number | string | undefined; | ||
@@ -191,3 +191,3 @@ /** | ||
*/ | ||
chartPadding?: IChartPadding | number; | ||
chartPadding?: IChartPadding | number | undefined; | ||
@@ -197,3 +197,3 @@ /** | ||
*/ | ||
classNames?: IPieChartClasses; | ||
classNames?: IPieChartClasses | undefined; | ||
@@ -203,3 +203,3 @@ /** | ||
*/ | ||
startAngle?: number; | ||
startAngle?: number | undefined; | ||
@@ -209,3 +209,3 @@ /** | ||
*/ | ||
total?: number; | ||
total?: number | undefined; | ||
@@ -215,3 +215,3 @@ /** | ||
*/ | ||
donut?: boolean; | ||
donut?: boolean | undefined; | ||
@@ -221,3 +221,3 @@ /** | ||
*/ | ||
donutSolid?: boolean; | ||
donutSolid?: boolean | undefined; | ||
@@ -228,3 +228,3 @@ /** | ||
*/ | ||
donutWidth?: number | string; | ||
donutWidth?: number | string | undefined; | ||
@@ -234,3 +234,3 @@ /** | ||
*/ | ||
showLabel?: boolean; | ||
showLabel?: boolean | undefined; | ||
@@ -240,3 +240,3 @@ /** | ||
*/ | ||
labelOffset?: number; | ||
labelOffset?: number | undefined; | ||
@@ -246,3 +246,3 @@ /** | ||
*/ | ||
labelPosition?: string; | ||
labelPosition?: string | undefined; | ||
@@ -252,3 +252,3 @@ /** | ||
*/ | ||
labelInterpolationFnc?: Function; | ||
labelInterpolationFnc?: Function | undefined; | ||
@@ -258,3 +258,3 @@ /** | ||
*/ | ||
labelDirection?: string; | ||
labelDirection?: string | undefined; | ||
@@ -264,3 +264,3 @@ /** | ||
*/ | ||
reverseData?: boolean; | ||
reverseData?: boolean | undefined; | ||
@@ -270,10 +270,10 @@ /** | ||
*/ | ||
ignoreEmptyValues?: boolean; | ||
ignoreEmptyValues?: boolean | undefined; | ||
} | ||
interface IChartPadding { | ||
top?: number; | ||
right?: number; | ||
bottom?: number; | ||
left?: number; | ||
top?: number | undefined; | ||
right?: number | undefined; | ||
bottom?: number | undefined; | ||
left?: number | undefined; | ||
} | ||
@@ -353,4 +353,4 @@ | ||
value: { | ||
x?: number; | ||
y?: number; | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
}; | ||
@@ -369,124 +369,124 @@ x1: number; | ||
interface IPieChartClasses { | ||
chartPie?: string; | ||
chartDonut?: string; | ||
series?: string; | ||
slicePie?: string; | ||
sliceDonut?: string; | ||
label?: string; | ||
chartPie?: string | undefined; | ||
chartDonut?: string | undefined; | ||
series?: string | undefined; | ||
slicePie?: string | undefined; | ||
sliceDonut?: string | undefined; | ||
label?: string | undefined; | ||
} | ||
interface IBarChartOptions extends IChartOptions { | ||
axisX?: IBarChartAxis; | ||
axisY?: IBarChartAxis; | ||
width?: number | string; | ||
height?: number | string; | ||
high?: number; | ||
low?: number; | ||
ticks?: Array<string | number>; | ||
onlyInteger?: boolean; | ||
chartPadding?: IChartPadding; | ||
seriesBarDistance?: number; | ||
axisX?: IBarChartAxis | undefined; | ||
axisY?: IBarChartAxis | undefined; | ||
width?: number | string | undefined; | ||
height?: number | string | undefined; | ||
high?: number | undefined; | ||
low?: number | undefined; | ||
ticks?: Array<string | number> | undefined; | ||
onlyInteger?: boolean | undefined; | ||
chartPadding?: IChartPadding | undefined; | ||
seriesBarDistance?: number | undefined; | ||
/** | ||
* Override the class names that are used to generate the SVG structure of the chart | ||
*/ | ||
classNames?: IBarChartClasses; | ||
classNames?: IBarChartClasses | undefined; | ||
/** | ||
* If set to true this property will cause the series bars to be stacked and form a total for each series point. This will also influence the y-axis and the overall bounds of the chart. In stacked mode the seriesBarDistance property will have no effect. | ||
*/ | ||
stackBars?: boolean; | ||
stackMode?: 'overlap' | 'accumulate'; | ||
stackBars?: boolean | undefined; | ||
stackMode?: 'overlap' | 'accumulate' | undefined; | ||
horizontalBars?: boolean; | ||
distributeSeries?: boolean; | ||
horizontalBars?: boolean | undefined; | ||
distributeSeries?: boolean | undefined; | ||
} | ||
interface IBarChartAxis { | ||
offset?: number; | ||
position?: string; | ||
offset?: number | undefined; | ||
position?: string | undefined; | ||
labelOffset?: { | ||
x?: number; | ||
y?: number; | ||
}; | ||
showLabel?: boolean; | ||
showGrid?: boolean; | ||
labelInterpolationFnc?: Function; | ||
scaleMinSpace?: number; | ||
onlyInteger?: boolean; | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
} | undefined; | ||
showLabel?: boolean | undefined; | ||
showGrid?: boolean | undefined; | ||
labelInterpolationFnc?: Function | undefined; | ||
scaleMinSpace?: number | undefined; | ||
onlyInteger?: boolean | undefined; | ||
} | ||
interface IBarChartClasses { | ||
chart?: string; | ||
horizontalBars?: string; | ||
label?: string; | ||
labelGroup?: string; | ||
series?: string; | ||
bar?: string; | ||
grid?: string; | ||
gridGroup?: string; | ||
vertical?: string; | ||
horizontal?: string; | ||
start?: string; | ||
end?: string; | ||
chart?: string | undefined; | ||
horizontalBars?: string | undefined; | ||
label?: string | undefined; | ||
labelGroup?: string | undefined; | ||
series?: string | undefined; | ||
bar?: string | undefined; | ||
grid?: string | undefined; | ||
gridGroup?: string | undefined; | ||
vertical?: string | undefined; | ||
horizontal?: string | undefined; | ||
start?: string | undefined; | ||
end?: string | undefined; | ||
} | ||
interface ILineChartOptions extends IChartOptions { | ||
axisX?: IChartistStepAxis | IChartistFixedScaleAxis | IChartistAutoScaleAxis; | ||
axisY?: IChartistStepAxis | IChartistFixedScaleAxis | IChartistAutoScaleAxis; | ||
width?: number | string; | ||
height?: number | string; | ||
showLine?: boolean; | ||
showPoint?: boolean; | ||
showArea?: boolean; | ||
areaBase?: number; | ||
lineSmooth?: Function | boolean; | ||
low?: number; | ||
high?: number; | ||
ticks?: Array<string | number>; | ||
chartPadding?: IChartPadding; | ||
fullWidth?: boolean; | ||
classNames?: ILineChartClasses; | ||
axisX?: IChartistStepAxis | IChartistFixedScaleAxis | IChartistAutoScaleAxis | undefined; | ||
axisY?: IChartistStepAxis | IChartistFixedScaleAxis | IChartistAutoScaleAxis | undefined; | ||
width?: number | string | undefined; | ||
height?: number | string | undefined; | ||
showLine?: boolean | undefined; | ||
showPoint?: boolean | undefined; | ||
showArea?: boolean | undefined; | ||
areaBase?: number | undefined; | ||
lineSmooth?: Function | boolean | undefined; | ||
low?: number | undefined; | ||
high?: number | undefined; | ||
ticks?: Array<string | number> | undefined; | ||
chartPadding?: IChartPadding | undefined; | ||
fullWidth?: boolean | undefined; | ||
classNames?: ILineChartClasses | undefined; | ||
series?: { | ||
[key: string]: { | ||
lineSmooth?: Function | boolean; | ||
showLine?: boolean; | ||
showPoint?: boolean; | ||
showArea?: boolean; | ||
areaBase?: number; | ||
lineSmooth?: Function | boolean | undefined; | ||
showLine?: boolean | undefined; | ||
showPoint?: boolean | undefined; | ||
showArea?: boolean | undefined; | ||
areaBase?: number | undefined; | ||
} | ||
} | ||
} | undefined | ||
} | ||
interface ILineChartAxis { | ||
offset?: number; | ||
position?: string; | ||
offset?: number | undefined; | ||
position?: string | undefined; | ||
labelOffset?: { | ||
x?: number; | ||
y?: number; | ||
}; | ||
showLabel?: boolean; | ||
showGrid?: boolean; | ||
labelInterpolationFnc?: Function; | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
} | undefined; | ||
showLabel?: boolean | undefined; | ||
showGrid?: boolean | undefined; | ||
labelInterpolationFnc?: Function | undefined; | ||
} | ||
interface IChartistStepAxis extends ILineChartAxis { | ||
type?: IStepAxisStatic; | ||
ticks?: Array<string> | Array<number>; | ||
stretch?: boolean; | ||
type?: IStepAxisStatic | undefined; | ||
ticks?: Array<string> | Array<number> | undefined; | ||
stretch?: boolean | undefined; | ||
} | ||
interface IChartistFixedScaleAxis extends ILineChartAxis { | ||
type?: IFixedScaleAxisStatic; | ||
high?: number; | ||
low?: number; | ||
divisor?: number; | ||
ticks?: Array<string> | Array<number>; | ||
type?: IFixedScaleAxisStatic | undefined; | ||
high?: number | undefined; | ||
low?: number | undefined; | ||
divisor?: number | undefined; | ||
ticks?: Array<string> | Array<number> | undefined; | ||
} | ||
interface IChartistAutoScaleAxis extends ILineChartAxis { | ||
high?: number; | ||
low?: number; | ||
scaleMinSpace?: number; | ||
onlyInteger?: boolean; | ||
referenceValue?: number; | ||
type?: IAutoScaleAxisStatic; | ||
high?: number | undefined; | ||
low?: number | undefined; | ||
scaleMinSpace?: number | undefined; | ||
onlyInteger?: boolean | undefined; | ||
referenceValue?: number | undefined; | ||
type?: IAutoScaleAxisStatic | undefined; | ||
} | ||
@@ -498,16 +498,16 @@ | ||
*/ | ||
chart?: string; | ||
label?: string; | ||
labelGroup?: string; | ||
series?: string; | ||
line?: string; | ||
point?: string; | ||
area?: string; | ||
grid?: string; | ||
gridGroup?: string; | ||
gridBackground?: string; | ||
vertical?: string; | ||
horizontal?: string; | ||
start?: string; | ||
end?: string; | ||
chart?: string | undefined; | ||
label?: string | undefined; | ||
labelGroup?: string | undefined; | ||
series?: string | undefined; | ||
line?: string | undefined; | ||
point?: string | undefined; | ||
area?: string | undefined; | ||
grid?: string | undefined; | ||
gridGroup?: string | undefined; | ||
gridBackground?: string | undefined; | ||
vertical?: string | undefined; | ||
horizontal?: string | undefined; | ||
start?: string | undefined; | ||
end?: string | undefined; | ||
} | ||
@@ -520,3 +520,3 @@ | ||
*/ | ||
axisX?: ICandleChartAxis; | ||
axisX?: ICandleChartAxis | undefined; | ||
@@ -526,3 +526,3 @@ /** | ||
*/ | ||
axisY?: ICandleChartAxis; | ||
axisY?: ICandleChartAxis | undefined; | ||
@@ -532,3 +532,3 @@ /** | ||
*/ | ||
width?: number | string; | ||
width?: number | string | undefined; | ||
@@ -538,3 +538,3 @@ /** | ||
*/ | ||
height?: number | string; | ||
height?: number | string | undefined; | ||
@@ -544,3 +544,3 @@ /** | ||
*/ | ||
hight?: number | string; | ||
hight?: number | string | undefined; | ||
@@ -550,3 +550,3 @@ /** | ||
*/ | ||
low?: number | string; | ||
low?: number | string | undefined; | ||
@@ -556,3 +556,3 @@ /** | ||
*/ | ||
candleWidth?: number | string; | ||
candleWidth?: number | string | undefined; | ||
@@ -562,3 +562,3 @@ /** | ||
*/ | ||
candleWickWidth?: number | string; | ||
candleWickWidth?: number | string | undefined; | ||
@@ -568,3 +568,3 @@ /** | ||
*/ | ||
useStepLengthAsCandleWidth?: boolean | string; | ||
useStepLengthAsCandleWidth?: boolean | string | undefined; | ||
@@ -574,3 +574,3 @@ /** | ||
*/ | ||
useOneThirdAsCandleWickWidth?: boolean | string; | ||
useOneThirdAsCandleWickWidth?: boolean | string | undefined; | ||
@@ -580,3 +580,3 @@ /** | ||
*/ | ||
chartPadding?: IChartPadding | number; | ||
chartPadding?: IChartPadding | number | undefined; | ||
@@ -586,3 +586,3 @@ /** | ||
*/ | ||
fullWidth?: boolean | string; | ||
fullWidth?: boolean | string | undefined; | ||
@@ -592,3 +592,3 @@ /** | ||
*/ | ||
classNames?: ICandleChartClasses; | ||
classNames?: ICandleChartClasses | undefined; | ||
} | ||
@@ -600,7 +600,7 @@ | ||
*/ | ||
offset?: number; | ||
offset?: number | undefined; | ||
/** | ||
* Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. | ||
*/ | ||
position?: string; | ||
position?: string | undefined; | ||
/** | ||
@@ -610,17 +610,17 @@ * Allows you to correct label positioning on this axis by positive or negative x and y offset. | ||
labelOffset?: { | ||
x?: number; | ||
y?: number; | ||
}; | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
} | undefined; | ||
/** | ||
* If labels should be shown or not | ||
*/ | ||
showLabel?: boolean; | ||
showLabel?: boolean | undefined; | ||
/** | ||
* If the axis grid should be drawn or not | ||
*/ | ||
showGrid?: boolean; | ||
showGrid?: boolean | undefined; | ||
/** | ||
* Interpolation function that allows you to intercept the value from the axis label | ||
*/ | ||
labelInterpolationFnc?: Function; | ||
labelInterpolationFnc?: Function | undefined; | ||
/** | ||
@@ -633,15 +633,15 @@ * Set the axis type to be used to project values on this axis. If not defined, Chartist.StepAxis will be used for the X-Axis, where the ticks option will be set to the labels in the data and the stretch option will be set to the global fullWidth option. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here. | ||
interface ICandleChartClasses { | ||
chart?: string; | ||
label?: string; | ||
labelGroup?: string; | ||
series?: string; | ||
candlePositive?: string; | ||
candleNegative?: string, | ||
grid?: string, | ||
gridGroup?: string, | ||
gridBackground?: string, | ||
vertical?: string, | ||
horizontal?: string, | ||
start?: string, | ||
end?: string, | ||
chart?: string | undefined; | ||
label?: string | undefined; | ||
labelGroup?: string | undefined; | ||
series?: string | undefined; | ||
candlePositive?: string | undefined; | ||
candleNegative?: string | undefined, | ||
grid?: string | undefined, | ||
gridGroup?: string | undefined, | ||
gridBackground?: string | undefined, | ||
vertical?: string | undefined, | ||
horizontal?: string | undefined, | ||
start?: string | undefined, | ||
end?: string | undefined, | ||
} | ||
@@ -775,9 +775,9 @@ | ||
interface IChartistAnimationOptions { | ||
id?: string; | ||
id?: string | undefined; | ||
dur: string | number; | ||
from: string | number; | ||
to: string | number; | ||
easing?: IChartistEasingDefinition | string; | ||
fill?: string; | ||
begin?: string; | ||
easing?: IChartistEasingDefinition | string | undefined; | ||
fill?: string | undefined; | ||
begin?: string | undefined; | ||
} | ||
@@ -843,15 +843,15 @@ | ||
interface IChartistInterpolationOptions { | ||
fillHoles?: boolean; | ||
fillHoles?: boolean | undefined; | ||
} | ||
interface IChartistSimpleInterpolationOptions extends IChartistInterpolationOptions { | ||
divisor?: number; | ||
divisor?: number | undefined; | ||
} | ||
interface IChartistCardinalInterpolationOptions extends IChartistInterpolationOptions { | ||
tension?: number; | ||
tension?: number | undefined; | ||
} | ||
interface IChartistStepInterpolationOptions extends IChartistInterpolationOptions { | ||
postpone?: boolean; | ||
postpone?: boolean | undefined; | ||
} | ||
@@ -858,0 +858,0 @@ } |
{ | ||
"name": "@types/chartist", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "TypeScript definitions for Chartist", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chartist", | ||
"license": "MIT", | ||
@@ -52,4 +53,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "33471fb50c0ef031b76d44a64d19098e395879419a5189fe0c0b856fa60b2715", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "422b8524337b0c11484f939edd9073a1ab94b6d5ada82341cbb87e67869093ae", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sat, 01 Aug 2020 07:55:30 GMT | ||
* Last updated: Tue, 06 Jul 2021 18:05:51 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `Chartist` |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
35114