(cherry picked from commit fb091de2c7)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
This commit is contained in:
co-authored by
Leon Sorokin
parent
da32c785c6
commit
71a9bf0203
@@ -253,10 +253,16 @@ export function prepareGraphableFrames(
|
||||
};
|
||||
}
|
||||
|
||||
let seriesIndex = 0;
|
||||
|
||||
for (let frame of series) {
|
||||
const fields: Field[] = [];
|
||||
for (const field of frame.fields) {
|
||||
if (field.type === FieldType.number) {
|
||||
field.state = field.state ?? {};
|
||||
|
||||
field.state.seriesIndex = seriesIndex++;
|
||||
|
||||
let copy = {
|
||||
...field,
|
||||
config: {
|
||||
|
||||
Reference in New Issue
Block a user