32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
declare namespace _default {
|
|
export { formatters };
|
|
}
|
|
export default _default;
|
|
declare namespace formatters {
|
|
/**
|
|
* Formatter for value labels
|
|
* @method Chart.Ticks.formatters.values
|
|
* @param value the value to display
|
|
* @return {string|string[]} the label to display
|
|
*/
|
|
function values(value: any): string | string[];
|
|
/**
|
|
* Formatter for numeric ticks
|
|
* @method Chart.Ticks.formatters.numeric
|
|
* @param tickValue {number} the value to be formatted
|
|
* @param index {number} the position of the tickValue parameter in the ticks array
|
|
* @param ticks {object[]} the list of ticks being converted
|
|
* @return {string} string representation of the tickValue parameter
|
|
*/
|
|
function numeric(tickValue: number, index: number, ticks: any[]): string;
|
|
/**
|
|
* Formatter for logarithmic ticks
|
|
* @method Chart.Ticks.formatters.logarithmic
|
|
* @param tickValue {number} the value to be formatted
|
|
* @param index {number} the position of the tickValue parameter in the ticks array
|
|
* @param ticks {object[]} the list of ticks being converted
|
|
* @return {string} string representation of the tickValue parameter
|
|
*/
|
|
function logarithmic(tickValue: number, index: number, ticks: any[]): string;
|
|
}
|