Debian Codegraph @

vendor/static/chart.js/dist/core/core.ticks.d.ts

raw
1 declare namespace _default {
2 export { formatters };
3 }
4 export default _default;
5 declare namespace formatters {
6 /**
7 * Formatter for value labels
8 * @method Chart.Ticks.formatters.values
9 * @param value the value to display
10 * @return {string|string[]} the label to display
11 */
12 function values(value: any): string | string[];
13 /**
14 * Formatter for numeric ticks
15 * @method Chart.Ticks.formatters.numeric
16 * @param tickValue {number} the value to be formatted
17 * @param index {number} the position of the tickValue parameter in the ticks array
18 * @param ticks {object[]} the list of ticks being converted
19 * @return {string} string representation of the tickValue parameter
20 */
21 function numeric(tickValue: number, index: number, ticks: any[]): string;
22 /**
23 * Formatter for logarithmic ticks
24 * @method Chart.Ticks.formatters.logarithmic
25 * @param tickValue {number} the value to be formatted
26 * @param index {number} the position of the tickValue parameter in the ticks array
27 * @param ticks {object[]} the list of ticks being converted
28 * @return {string} string representation of the tickValue parameter
29 */
30 function logarithmic(tickValue: number, index: number, ticks: any[]): string;
31 }