Chart/api/color.ts

  1. /**
  2. * Copyright (c) 2017 ~ present NAVER Corp.
  3. * billboard.js project is licensed under the MIT license
  4. */
  5. export default {
  6. /**
  7. * Get the color
  8. * @function color
  9. * @instance
  10. * @memberof Chart
  11. * @param {string} id id to get the color
  12. * @returns {string}
  13. * @example
  14. * chart.color("data1");
  15. */
  16. color(id: string): string {
  17. return this.internal.color(id); // more patterns
  18. }
  19. };