Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
3ab00dfb
Commit
3ab00dfb
authored
Feb 20, 2019
by
corpglory-dev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PieChartDataPoint -> PiechartDataPoint
parent
76aa208d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
packages/grafana-ui/src/components/Piechart/Piechart.tsx
+2
-2
public/app/plugins/panel/piechart/PiechartPanel.tsx
+2
-2
No files found.
packages/grafana-ui/src/components/Piechart/Piechart.tsx
View file @
3ab00dfb
...
@@ -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
Pie
C
hartDataPoint
{
export
interface
Pie
c
hartDataPoint
{
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
:
Pie
C
hartDataPoint
[];
datapoints
:
Pie
c
hartDataPoint
[];
unit
:
string
;
unit
:
string
;
pieType
:
string
;
pieType
:
string
;
...
...
public/app/plugins/panel/piechart/PiechartPanel.tsx
View file @
3ab00dfb
...
@@ -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
,
Pie
C
hartDataPoint
}
from
'@grafana/ui'
;
import
{
Piechart
,
Pie
c
hartDataPoint
}
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
:
Pie
C
hartDataPoint
[]
=
[];
const
datapoints
:
Pie
c
hartDataPoint
[]
=
[];
if
(
panelData
.
timeSeries
)
{
if
(
panelData
.
timeSeries
)
{
const
vmSeries
=
processTimeSeries
({
const
vmSeries
=
processTimeSeries
({
timeSeries
:
panelData
.
timeSeries
,
timeSeries
:
panelData
.
timeSeries
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment