Skip to content

Commit

Permalink
samples: remove use opf deprecated value formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
wirew0rm committed Jul 31, 2023
1 parent fb637bb commit 4fa9e10
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ protected void configureApp() {
*/
@Override
public Node getChartPanel(Stage stage) {
String priceFormat = "%1.1f";
// simulate market orders list
List<SimMktOrder> orders = new ArrayList<>();
orders.add(new SimMktOrder("2016/07/29 14:06", 3));
Expand Down Expand Up @@ -95,7 +94,7 @@ public Node getChartPanel(Stage stage) {
if (ohlcvDataSet instanceof SimpleOhlcvReplayDataSet) {
SimpleOhlcvReplayDataSet replayDataSet = ((SimpleOhlcvReplayDataSet) ohlcvDataSet);
// close prices visualization
final YWatchValueIndicator closeIndicator = new YWatchValueIndicator(yAxis, priceFormat);
final YWatchValueIndicator closeIndicator = new YWatchValueIndicator(yAxis);
closeIndicator.setPreventOcclusion(true);
closeIndicator.setId("price");
closeIndicator.setLineVisible(false);
Expand Down Expand Up @@ -135,8 +134,8 @@ public Node getChartPanel(Stage stage) {
}

// manual levels
chart.getPlugins().add(new YWatchValueIndicator(yAxis, priceFormat, 4727.5));
chart.getPlugins().add(new YWatchValueIndicator(yAxis, priceFormat, 4715.0));
chart.getPlugins().add(new YWatchValueIndicator(yAxis, 4727.5));
chart.getPlugins().add(new YWatchValueIndicator(yAxis, 4715.0));

// simple S/R ranges
chart.getPlugins().add(createRsLevel(yAxis, 4710, 4711, "Daily Support"));
Expand Down

0 comments on commit 4fa9e10

Please sign in to comment.