Skip to content

Conversation

Lotendan
Copy link

The line can be enabled/disabled via the menu, and offers a visual way to assess the amount of risk taken for an investment, compared to a unit risk.

Here is the result (note: pictures are displayed in French, despite looking it up on the Internet I didn't find a quick way to override the default language setting from the VM).
pp_menu

pp_line

Hope this will be useful!

The line can be enabled/disabled via the menu, and offers a visual way to assess the amount of risk taken for an investment, compared to a unit risk
int x0 = xAxis.getPixelCoordinate(0);
int y0 = yAxis.getPixelCoordinate(0);

int x1 = xAxis.getPixelCoordinate(9999);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using 9999 here, I tried to use Double.MAX_VALUE but this didn't work for some reason. Any hint on what to use instead, I can adjust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant