mirror of https://github.com/abpframework/abp.git
3 changed files with 0 additions and 21 deletions
@ -1,16 +0,0 @@ |
|||
import { ReplaySubject } from 'rxjs'; |
|||
|
|||
export function getRandomBackgroundColor(count) { |
|||
const colors = []; |
|||
|
|||
for (let i = 0; i < count; i++) { |
|||
const r = ((i + 5) * (i + 5) * 474) % 255; |
|||
const g = ((i + 5) * (i + 5) * 1600) % 255; |
|||
const b = ((i + 5) * (i + 5) * 84065) % 255; |
|||
colors.push('rgba(' + r + ', ' + g + ', ' + b + ', 0.7)'); |
|||
} |
|||
|
|||
return colors; |
|||
} |
|||
|
|||
export const chartJsLoaded$ = new ReplaySubject(1); |
|||
Loading…
Reference in new issue