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
3abd9957
Unverified
Commit
3abd9957
authored
Oct 26, 2020
by
Muhammad Hendri
Committed by
GitHub
Oct 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Currency: Adds Indonesian IDR currency (#28363)
parent
9a241a2a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletions
+4
-1
packages/grafana-data/src/valueFormats/categories.ts
+1
-0
packages/grafana-data/src/valueFormats/valueFormats.test.ts
+1
-0
public/app/core/utils/kbn.test.ts
+2
-1
No files found.
packages/grafana-data/src/valueFormats/categories.ts
View file @
3abd9957
...
...
@@ -126,6 +126,7 @@ export const getCategories = (): ValueFormatCategory[] => [
{
name
:
'South African Rand (R)'
,
id
:
'currencyZAR'
,
fn
:
currency
(
'R'
)
},
{
name
:
'Indian Rupee (₹)'
,
id
:
'currencyINR'
,
fn
:
currency
(
'₹'
)
},
{
name
:
'South Korean Won (₩)'
,
id
:
'currencyKRW'
,
fn
:
currency
(
'₩'
)
},
{
name
:
'Indonesian Rupiah (Rp)'
,
id
:
'currencyIDR'
,
fn
:
currency
(
'Rp'
)
},
],
},
{
...
...
packages/grafana-data/src/valueFormats/valueFormats.test.ts
View file @
3abd9957
...
...
@@ -16,6 +16,7 @@ const formatTests: ValueFormatTest[] = [
// Currency
{
id
:
'currencyUSD'
,
decimals
:
2
,
value
:
1532.82
,
result
:
'$1.53K'
},
{
id
:
'currencyKRW'
,
decimals
:
2
,
value
:
1532.82
,
result
:
'₩1.53K'
},
{
id
:
'currencyIDR'
,
decimals
:
2
,
value
:
1532.82
,
result
:
'Rp1.53K'
},
// Standard
{
id
:
'ms'
,
decimals
:
4
,
value
:
0.0024
,
result
:
'0.0024 ms'
},
...
...
public/app/core/utils/kbn.test.ts
View file @
3abd9957
...
...
@@ -11,9 +11,10 @@ interface ValueFormatTest {
}
const
formatTests
:
ValueFormatTest
[]
=
[
// Curr
a
ncy
// Curr
e
ncy
{
id
:
'currencyUSD'
,
decimals
:
2
,
value
:
1532.82
,
result
:
'$1.53K'
},
{
id
:
'currencyKRW'
,
decimals
:
2
,
value
:
1532.82
,
result
:
'₩1.53K'
},
{
id
:
'currencyIDR'
,
decimals
:
2
,
value
:
1532.82
,
result
:
'Rp1.53K'
},
// Typical
{
id
:
'ms'
,
decimals
:
4
,
value
:
0.0024
,
result
:
'0.0024 ms'
},
...
...
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