This commit is contained in:
Violet Voronetzky 2019-12-05 10:21:08 +02:00
Родитель f8af6fc147
Коммит 206c49c16c
1 изменённых файлов: 2 добавлений и 4 удалений

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

@ -4,11 +4,11 @@
import * as _ from 'lodash';
import * as Highcharts from 'highcharts';
import { Themes } from '../themes/themes';
import { IVisualizerOptions } from '../../IVisualizerOptions';
import { ChartTypeOptions } from '../chartTypeOptions';
import { ChartTheme } from '../../../common/chartModels';
import { Utilities } from '../../../common/utilities';
import { Themes } from '../themes/themes';
//#endregion Imports
@ -38,8 +38,6 @@ export abstract class Chart {
public changeTheme(newTheme: ChartTheme): void {
if(this.options.chartOptions.chartTheme !== newTheme) {
this.destroyExistingChart();
// Update new theme options
this.themeOptions = Themes.getThemeOptions(newTheme);
@ -93,7 +91,7 @@ export abstract class Chart {
}
return categoriesAndSeries;
}
}
protected getStandardCategoriesAndSeries(xAxisColumnIndex: number, categoriesAndSeries: ICategoriesAndSeries, isDatetimeAxis: boolean = false): void {
const chartOptions = this.options.chartOptions;