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
b48f8bcf
Commit
b48f8bcf
authored
Feb 27, 2019
by
corpglory-dev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add PiechartType enum
parent
bc9d4e07
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
packages/grafana-ui/src/components/index.ts
+1
-1
public/app/plugins/panel/piechart/types.ts
+4
-2
No files found.
packages/grafana-ui/src/components/index.ts
View file @
b48f8bcf
...
@@ -26,4 +26,4 @@ export { ValueMappingsEditor } from './ValueMappingsEditor/ValueMappingsEditor';
...
@@ -26,4 +26,4 @@ export { ValueMappingsEditor } from './ValueMappingsEditor/ValueMappingsEditor';
export
{
Gauge
}
from
'./Gauge/Gauge'
;
export
{
Gauge
}
from
'./Gauge/Gauge'
;
export
{
Switch
}
from
'./Switch/Switch'
;
export
{
Switch
}
from
'./Switch/Switch'
;
export
{
EmptySearchResult
}
from
'./EmptySearchResult/EmptySearchResult'
;
export
{
EmptySearchResult
}
from
'./EmptySearchResult/EmptySearchResult'
;
export
{
Piechart
,
PiechartDataPoint
}
from
'./Piechart/Piechart'
;
export
{
Piechart
,
PiechartDataPoint
,
PiechartType
}
from
'./Piechart/Piechart'
;
public/app/plugins/panel/piechart/types.ts
View file @
b48f8bcf
import
{
PiechartType
}
from
'@grafana/ui'
;
export
interface
PiechartOptions
{
export
interface
PiechartOptions
{
pieType
:
string
;
pieType
:
PiechartType
;
strokeWidth
:
number
;
strokeWidth
:
number
;
valueOptions
:
PiechartValueOptions
;
valueOptions
:
PiechartValueOptions
;
...
@@ -12,7 +14,7 @@ export interface PiechartValueOptions {
...
@@ -12,7 +14,7 @@ export interface PiechartValueOptions {
}
}
export
const
defaults
:
PiechartOptions
=
{
export
const
defaults
:
PiechartOptions
=
{
pieType
:
'pie'
,
pieType
:
PiechartType
.
PIE
,
strokeWidth
:
1
,
strokeWidth
:
1
,
valueOptions
:
{
valueOptions
:
{
unit
:
'short'
,
unit
:
'short'
,
...
...
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