Adapt trade charts

This commit is contained in:
Christoph Atteneder 2018-11-27 16:43:18 +01:00
parent 769b877b3f
commit 21be64ba7c
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B
3 changed files with 7 additions and 5 deletions

View File

@ -60,9 +60,8 @@
.candlestick-bar {
-fx-padding: 5;
-demo-bar-fill: -bs-sell;
-fx-background-color: linear-gradient(derive(-demo-bar-fill, -30%), derive(-demo-bar-fill, -40%)),
-demo-bar-fill;
-fx-background-insets: 0, 1;
-fx-background-color: -demo-bar-fill;
-fx-background-insets: 0;
}
.candlestick-bar.close-above-open {

View File

@ -21,12 +21,12 @@
<?import javafx.scene.layout.VBox?>
<?import javafx.geometry.Insets?>
<VBox fx:id="root" fx:controller="bisq.desktop.main.market.trades.TradesChartsView"
spacing="7.0" fillWidth="true"
spacing="7.0"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"
xmlns:fx="http://javafx.com/fxml">
<padding>
<Insets bottom="10.0" left="20.0" top="10.0" right="20"/>
<Insets bottom="10.0" left="10.0" top="10.0" right="10"/>
</padding>
</VBox>

View File

@ -144,6 +144,7 @@ public class TradesChartsView extends ActivatableViewAndModel<VBox, TradesCharts
@Override
public void initialize() {
root.setAlignment(Pos.CENTER_LEFT);
toolBox = getToolBox();
createCharts();
createTable();
@ -343,6 +344,7 @@ public class TradesChartsView extends ActivatableViewAndModel<VBox, TradesCharts
priceChart.setPrefHeight(198);
priceChart.setMaxHeight(300);
priceChart.setLegendVisible(false);
priceChart.setPadding(new Insets(0));
//noinspection unchecked
priceChart.setData(FXCollections.observableArrayList(priceSeries));
@ -389,6 +391,7 @@ public class TradesChartsView extends ActivatableViewAndModel<VBox, TradesCharts
volumeChart.setPrefHeight(148);
volumeChart.setMaxHeight(200);
volumeChart.setLegendVisible(false);
volumeChart.setPadding(new Insets(0));
}
private void updateChartData() {