This commit is contained in:
Violet Voronetzky 2020-02-04 11:04:34 +02:00
Родитель f05322f078
Коммит ebe0a6770a
4 изменённых файлов: 6 добавлений и 7 удалений

Просмотреть файл

@ -5,7 +5,7 @@
import * as _ from 'lodash';
import * as Highcharts from 'highcharts';
import { TooltipHelper } from '../common/tooltipHelper';
import { Utilities as HC_Utilities } from '../common/utilities';
import { HC_Utilities } from '../common/utilities';
import { IVisualizerOptions } from '../../IVisualizerOptions';
import { Utilities } from '../../../common/utilities';
import { IColumn, IChartOptions, IRowValue } from '../../../common/chartModels';

Просмотреть файл

@ -1,7 +1,7 @@
'use strict';
import * as _ from 'lodash';
import { Utilities as HC_Utilities } from '../common/utilities';
import { HC_Utilities } from '../common/utilities';
import { Chart, ICategoriesAndSeries } from './chart';
import { TooltipHelper } from '../common/tooltipHelper';
import { IVisualizerOptions } from '../../IVisualizerOptions';

Просмотреть файл

@ -1,8 +1,8 @@
'use strict';
import { IQueryResultData, DraftColumnType, IColumn, IRow } from "../../../common/chartModels";
import { DraftColumnType, IColumn, IRow } from "../../../common/chartModels";
export class Utilities {
export class HC_Utilities {
public static getYValue(columns: IColumn[], row: IRow, yAxisIndex: number): number {
const originalValue = row[yAxisIndex];
const column = columns[yAxisIndex];

Просмотреть файл

@ -463,9 +463,8 @@ describe('Unit tests for Chart methods', () => {
// Assert
expect(result).toEqual(expected);
});
it('Validate getSplitByCategoriesAndSeries for Line chart: non-date x-axis with splitB and decimal y-axis', () => {
it('Validate getSplitByCategoriesAndSeries for Line chart: non-date x-axis with splitBy and decimal y-axis', () => {
const rows = [
['United States', 'Atlanta', "300.474"],
['United States', 'Redmond', "20.2"]