fix: Timeseries annotation layers (#34709)

(cherry picked from commit fc95c4fc89)
This commit is contained in:
Michael S. Molina
2025-08-15 12:59:30 -03:00
committed by Michael S. Molina
parent 752f7aa80c
commit e986496ef4
11 changed files with 69 additions and 183 deletions

View File

@@ -240,21 +240,12 @@ describe('EchartsTimeseries transformProps', () => {
},
],
},
'My Timeseries': [
{
key: 'My Line',
values: [
{
x: 10000,
y: 11000,
},
{
x: 20000,
y: 21000,
},
],
},
],
'My Timeseries': {
records: [
{ x: 10000, y: 11000 },
{ x: 20000, y: 21000 },
],
},
};
const chartProps = new ChartProps({
...chartPropsConfig,
@@ -274,12 +265,12 @@ describe('EchartsTimeseries transformProps', () => {
expect.objectContaining({
echartOptions: expect.objectContaining({
legend: expect.objectContaining({
data: ['San Francisco', 'New York', 'My Line'],
data: ['San Francisco', 'New York', 'My Timeseries'],
}),
series: expect.arrayContaining([
expect.objectContaining({
type: 'line',
id: 'My Line',
id: 'My Timeseries',
}),
expect.objectContaining({
type: 'line',