Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Chuangyu
Copy link

Creat PopCharts that can show in HomePage , and show as property as well.

import org.apache.commons.codec.binary.Base64;


public class Base64Serializer {
Copy link
Contributor

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)

Copy link
Contributor

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();
Copy link
Contributor

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.

Copy link
Author

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.

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.

None yet

2 participants