-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Financial Chart: CandleStickRenderer, HighLowRenderer, Basic Financial API #316
Conversation
This pull request introduces 2 alerts when merging 2c9aba2 into 8caa280 - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #316 +/- ##
============================================
+ Coverage 50.91% 51.58% +0.67%
- Complexity 7086 7266 +180
============================================
Files 382 393 +11
Lines 40501 41072 +571
Branches 6523 6611 +88
============================================
+ Hits 20621 21188 +567
+ Misses 18423 18376 -47
- Partials 1457 1508 +51
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice pull-request and only minor comments that should be addressed, mainly:
a) to open/keep the candle-stick and hi-lo renderer also compatible with other more generic DataSet implementation (e.g. MultiDimDoubleDataSet or any other DataSet with nDim>=6)
b) you may consider adding some JavaDoc and '@author' and references to the classes as documentation, acknowledgement of your work, and so that everyone knows long-term who has produced these nice renderer additions.
In any case, very nice PR and if you agree to the minor changes mentioned above, I'd approve and sponsor this PR and long-term maintenance within chart-fx.
chartfx-chart/src/main/java/de/gsi/chart/renderer/spi/financial/CandleStickRenderer.java
Outdated
Show resolved
Hide resolved
chartfx-chart/src/main/java/de/gsi/chart/renderer/spi/financial/CandleStickRenderer.java
Outdated
Show resolved
Hide resolved
chartfx-chart/src/main/java/de/gsi/chart/renderer/spi/financial/CandleStickRenderer.java
Outdated
Show resolved
Hide resolved
chartfx-chart/src/main/java/de/gsi/chart/renderer/spi/financial/HighLowRenderer.java
Outdated
Show resolved
Hide resolved
chartfx-chart/src/main/java/de/gsi/chart/renderer/spi/financial/HighLowRenderer.java
Outdated
Show resolved
Hide resolved
chartfx-dataset/src/main/java/de/gsi/dataset/spi/financial/OhlcvDataSet.java
Show resolved
Hide resolved
chartfx-dataset/src/main/java/de/gsi/dataset/spi/financial/api/attrs/AttributeKey.java
Outdated
Show resolved
Hide resolved
chartfx-dataset/src/test/java/de/gsi/dataset/spi/financial/api/attrs/TypeKeyTest.java
Outdated
Show resolved
Hide resolved
...art/src/main/java/de/gsi/chart/renderer/spi/financial/css/FinancialColorSchemeConstants.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there,
first of all also from me a big thank you for your contribution, this all looks very nice. It looks like there's only a few small things left before this can be merged.
I think Ralph already pointed out the bigger API ones, so mine are mostly smaller nits and suggestions. Please feel free to disagree with any of them, the only thing that should really be changed before mege is the number of dimensions for the OhlcvDataSet (in addition to Ralphs points).
I also like the samples, if you want you can also add some nice screenshots into doc/pics and add them to the gallery in the Readme.md, otherwise we will do that after the merge is done.
chartfx-chart/src/main/java/de/gsi/chart/renderer/spi/financial/CandleStickRenderer.java
Outdated
Show resolved
Hide resolved
...-chart/src/main/java/de/gsi/chart/renderer/spi/financial/css/FinancialColorSchemeConfig.java
Show resolved
Hide resolved
chartfx-chart/src/main/java/de/gsi/chart/renderer/spi/financial/HighLowRenderer.java
Outdated
Show resolved
Hide resolved
chartfx-dataset/src/main/java/de/gsi/dataset/spi/financial/OhlcvDataSet.java
Outdated
Show resolved
Hide resolved
chartfx-samples/src/main/java/de/gsi/chart/samples/RunChartSamples.java
Outdated
Show resolved
Hide resolved
chartfx-samples/src/main/java/de/gsi/chart/samples/financial/ColorChooserSample.java
Outdated
Show resolved
Hide resolved
...-samples/src/main/java/de/gsi/chart/samples/financial/AbstractBasicFinancialApplication.java
Outdated
Show resolved
Hide resolved
chartfx-chart/src/test/java/de/gsi/chart/renderer/spi/financial/CandleStickRendererTest.java
Outdated
Show resolved
Hide resolved
The review impl. changes are pushed now. I will see how about restyle again....after few next commits..... |
Done |
@raven2cz two quick questions before merging: In the renderer you wrote: if (ds.getDimension() > 7)
continue; shouldn't be this if (ds.getDimension() < 7)
continue; ie. that any DataSet that has less than 7 dimensions is rejected? The way '> 7 ' would reject only DataSets with Second questions: do you want the commit structure preserved or can we squash-and-merge your PR? Thanks again for your patience and for the follow-up commits. I feel this is a very nice additions and would be happy to merge if you are OK with this as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good, thanks also for the feedback on the more open points and the screenshots.
I think that one compare operation should work the other way round, but then we're good to go.
EDIT: seems like I somehow missed Ralph's comment :/
chartfx-chart/src/main/java/de/gsi/chart/renderer/spi/financial/CandleStickRenderer.java
Outdated
Show resolved
Hide resolved
chartfx-chart/src/main/java/de/gsi/chart/renderer/spi/financial/HighLowRenderer.java
Outdated
Show resolved
Hide resolved
b560516
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, lets get this merged 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Since meging #316 `mvn test` failed on systems with non US locales, due to some tests expecting numbers to be formated according to US locale. This fixes the locale for running the tests to `en_US` s.t. the tests will run through regardless of the developer's locale.
Since meging #316 `mvn test` failed on systems with non US locales, due to some tests expecting numbers to be formated according to US locale. This fixes the locale for running the tests to `en_US` s.t. the tests will run through regardless of the developer's locale.
Pull request according to issue #294. Screenshots attached in the issue. The samples and unit tests too.