ghost-portal/packages/react-components/src/Chart/utils.ts
2022-02-24 12:18:24 +00:00

9 lines
264 B
TypeScript

// Copyright 2017-2022 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { color } from 'chart.js/helpers';
export function alphaColor (hexColor: string): string {
return color(hexColor).alpha(0.65).rgbString();
}