mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Adapt trade charts
This commit is contained in:
parent
769b877b3f
commit
21be64ba7c
@ -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 {
|
||||
|
@ -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>
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user