Skip to main content
Module

x/billboardjs/ChartInternal/internals/category.ts

πŸ“Š Re-usable, easy interface JavaScript chart library based on D3.js
Go to Latest
File
/** * Copyright (c) 2017 ~ present NAVER Corp. * billboard.js project is licensed under the MIT license */export default { /** * Category Name * @param {number} i Index number * @returns {string} category Name * @private */ categoryName(i: number): string { const {axis_x_categories: categories} = this.config;
return i < categories?.length ? categories[i] : i; },};