fix: Fixed serie color
This commit is contained in:
parent
dfebb86a76
commit
60fcbcb3eb
|
@ -4,7 +4,7 @@ import { SerieInterface } from '../interface';
|
||||||
|
|
||||||
export default function normalizeSeries(data: any[]) {
|
export default function normalizeSeries(data: any[]) {
|
||||||
const series = [] as SerieInterface[];
|
const series = [] as SerieInterface[];
|
||||||
_.each(data, (o, i) => {
|
_.each(_.sortBy(data, ['counter', 'endpoint']), (o, i) => {
|
||||||
const { endpoint } = o;
|
const { endpoint } = o;
|
||||||
const color = getSerieColor(o, i);
|
const color = getSerieColor(o, i);
|
||||||
const separatorIdx = o.counter.indexOf('/');
|
const separatorIdx = o.counter.indexOf('/');
|
||||||
|
|
Loading…
Reference in New Issue