Björn Berg

C3Faces 1.4 officially released

Entwicklung Java C3Faces JSF

C3Faces is a chart library for JSF based on c3.js. I want to announce the fourth official version of this library released to Maven central coming with dynamic category-based axes.

C3Faces 1.4 fixes bug #2 filed as not updating categories on dynamic changes. Using the axis attribute with categories will still keep fixed category names until the whole diagram is reloaded in your web-session (or session is restarted). If you want to react on dynamic changes, use the axis attribute without fixed category names and use the newly introduced Xkey class to define dynamic category names for X-axis (it is only available for X-axis).

An example for clarification:


<c3:line id="chart" data="#{}" >
		<c3:axisX type="category" />


private final Data data = new Data();

// New dynamic view for categories on X-axis
C3ViewDataSet categoriesView = new C3ViewDataSet(getMonths());
data.addChild(new XKey(categoriesView.getId()));

This is it. After new data is added, you have to refresh the C3ViewDataSet programmatically.

Showcase update

If you want to see version 1.2 with axis configuration in action, please visit the official showcase.

Further information

Changelog about further changes between previous version and the present one can be found in the official Changelog in the GitHub repository.

Have fun while playing around with C3Faces and if you find any issues or have suggestions for new features please leave a comment.


Du möchtest diskutieren oder einen Kommentar zu dem Beitrag hinterlassen?

Dieser Blog hat keine öffentliche Kommentarfunktion, aber ich freue mich jederzeit über eine Mail mit kritischen Anmerkungen, Feedback oder auch einfach nur Lob an meine Mail-Adresse rollin.hand[@]