-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add Charts support Property #3
base: master
Are you sure you want to change the base?
Conversation
import org.apache.commons.codec.binary.Base64; | ||
|
||
|
||
public class Base64Serializer { |
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.
Is this class really needed ?
Java 8 provides java.util.Base64
.
Wicket also provides org.apache.wicket.util.crypt.Base64
(deprecated in Wicket 8.x)
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.
I see now that it has been extracted from WickedChartSemanticsProvider
final ObjectAdapter chartAdapter = model.getObject(); | ||
final Object chartObj = chartAdapter.getObject(); | ||
PopChart chart = (PopChart) chartObj; | ||
Options options = chart.getOptions(); |
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.
Maybe instead of adding more XyzChart
classes it would be better to add HichchartsOptionsProvider
- a class that provides Options
somehow. This way one can create any chart type supported by Highcharts/Wickedcharts.
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.
I tried at first to modify WickedChart and WickedChartSemanticProvider and not add more XyzChart, but I failed.
Creat PopCharts that can show in HomePage , and show as property as well.