mirror of
https://github.com/corda/corda.git
synced 2024-12-21 05:53:23 +00:00
CORDA-3167 added titles to Treasury chart in Explorer
This commit is contained in:
parent
1ca2059863
commit
21725ef192
@ -304,12 +304,17 @@ class CashViewer : CordaView("Cash") {
|
|||||||
tickLabelFormatter = stringConverter {
|
tickLabelFormatter = stringConverter {
|
||||||
Instant.ofEpochMilli(it.toLong()).atZone(TimeZone.getDefault().toZoneId()).toLocalTime().toString()
|
Instant.ofEpochMilli(it.toLong()).atZone(TimeZone.getDefault().toZoneId()).toLocalTime().toString()
|
||||||
}
|
}
|
||||||
|
label= "Timeline"
|
||||||
|
style = "-fx-font-size: 10px;"
|
||||||
|
|
||||||
}
|
}
|
||||||
val yAxis = NumberAxis().apply {
|
val yAxis = NumberAxis().apply {
|
||||||
isAutoRanging = true
|
isAutoRanging = true
|
||||||
isMinorTickVisible = false
|
isMinorTickVisible = false
|
||||||
isForceZeroInRange = false
|
isForceZeroInRange = false
|
||||||
tickLabelFormatter = stringConverter { it.toStringWithSuffix() }
|
tickLabelFormatter = stringConverter { it.toStringWithSuffix() }
|
||||||
|
label= "Cash"
|
||||||
|
style = "-fx-font-size: 10px;"
|
||||||
}
|
}
|
||||||
linechart(null, xAxis, yAxis) {
|
linechart(null, xAxis, yAxis) {
|
||||||
series("USD") {
|
series("USD") {
|
||||||
|
Loading…
Reference in New Issue
Block a user