Commit 3ab00dfb by corpglory-dev

PieChartDataPoint -> PiechartDataPoint

parent 76aa208d
...@@ -3,7 +3,7 @@ import React, { PureComponent } from 'react'; ...@@ -3,7 +3,7 @@ import React, { PureComponent } from 'react';
import { GrafanaThemeType } from '../../types'; import { GrafanaThemeType } from '../../types';
import { Themeable } from '../../index'; import { Themeable } from '../../index';
export interface PieChartDataPoint { export interface PiechartDataPoint {
value: number; value: number;
name: string; name: string;
color: string; color: string;
...@@ -12,7 +12,7 @@ export interface PieChartDataPoint { ...@@ -12,7 +12,7 @@ export interface PieChartDataPoint {
export interface Props extends Themeable { export interface Props extends Themeable {
height: number; height: number;
width: number; width: number;
datapoints: PieChartDataPoint[]; datapoints: PiechartDataPoint[];
unit: string; unit: string;
pieType: string; pieType: string;
......
...@@ -5,7 +5,7 @@ import React, { PureComponent } from 'react'; ...@@ -5,7 +5,7 @@ import React, { PureComponent } from 'react';
import { processTimeSeries, ThemeContext } from '@grafana/ui'; import { processTimeSeries, ThemeContext } from '@grafana/ui';
// Components // Components
import { Piechart, PieChartDataPoint } from '@grafana/ui'; import { Piechart, PiechartDataPoint } from '@grafana/ui';
// Types // Types
import { PiechartOptions } from './types'; import { PiechartOptions } from './types';
...@@ -18,7 +18,7 @@ export class PiechartPanel extends PureComponent<Props> { ...@@ -18,7 +18,7 @@ export class PiechartPanel extends PureComponent<Props> {
const { panelData, width, height, options } = this.props; const { panelData, width, height, options } = this.props;
const { valueOptions } = options; const { valueOptions } = options;
const datapoints: PieChartDataPoint[] = []; const datapoints: PiechartDataPoint[] = [];
if (panelData.timeSeries) { if (panelData.timeSeries) {
const vmSeries = processTimeSeries({ const vmSeries = processTimeSeries({
timeSeries: panelData.timeSeries, timeSeries: panelData.timeSeries,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment