Skip to content

Commit

Permalink
[ML] Migrate Timeseries Chart to React (#25792) (#25811)
Browse files Browse the repository at this point in the history
* [ML] Reactified Singleseries Chart.
* [ML] Adds an initialization test for TimeseriesChart.
* [ML] Restore original behavior of updating focus chart only when interacting with the brush selector.
* [ML] Tweaked comments.
  • Loading branch information
walterra committed Nov 16, 2018
1 parent be09559 commit 031250f
Show file tree
Hide file tree
Showing 8 changed files with 1,361 additions and 1,044 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* anomalies table component.
*/

import { listenerFactoryProvider } from 'plugins/ml/factories/listener_factory';
import { listenerFactoryProvider } from '../../factories/listener_factory';

class AnomaliesTableService {
constructor() {
Expand Down
7 changes: 3 additions & 4 deletions x-pack/plugins/ml/public/services/field_format_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

import _ from 'lodash';

import { mlFunctionToESAggregation } from 'plugins/ml/../common/util/job_utils';
import { getIndexPatternById } from 'plugins/ml/util/index_utils';
import { mlJobService } from 'plugins/ml/services/job_service';
import { mlFunctionToESAggregation } from '../../common/util/job_utils';
import { getIndexPatternById } from '../util/index_utils';
import { mlJobService } from '../services/job_service';

// Service for accessing FieldFormat objects configured for a Kibana index pattern
// for use in formatting the actual and typical values from anomalies.
Expand Down Expand Up @@ -121,4 +121,3 @@ class FieldFormatService {
}

export const mlFieldFormatService = new FieldFormatService();

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import d3 from 'd3';

import { drawLineChartDots } from 'plugins/ml/util/chart_utils';
import { drawLineChartDots } from '../util/chart_utils';

/*
* Creates a mask over sections of the context chart and swimlane
Expand Down
Loading

0 comments on commit 031250f

Please sign in to comment.