C3Faces 1.2 officially released

C3Faces is a chart library for JSF based on c3.js. I want to announce the second official version of this library released to Maven central coming with category-based axes and new elements in the taglib to manipulate axes.

Version 1.2 now supports category-based axes.

Now you can choose between indexed and category-based axes. Therefore I introduced new elements in the taglib: axes, axisX and axisY.

As with the elements of gridX and gridY, axisX and axisY enables you to adjust the type, height and visibility of your axes. The outer element axes supports rotation of the axes.

Using a category based axis you might write something like this:

<c3:bar data="#{chartTypesBean.data}">
        <c3:axisX type="category" categories="{'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'}" />
        <c3:axisY show="false" />

The X-axis will be no longer labeled with numbers from 1 to 7, but with labels from Mon to Sun in the order of the array’s elements.

If you use categories programmatically there is a new class called C3Category which takes a list or an array of Strings as constructor parameter. But note: The returning value inside is always a Set of strings. Duplicates are not taken into account because categories should be always unique. Additional details can be found in the official documentation of C3.js.

In the above example Y-axis is not visible in the diagram.

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.

This post was updated to version 1.2 because prior version contained a bug which lead to non working axis configuration.

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

Hybride Softwareentwicklung

Agile Softwareentwicklung erlebt gegenwärtig einen großen Hype. Neuerdings ist aber auch ein Gegentrend zu diesem Hype zurück zu den klassischen Vorgehensmodellen zu bemerken. Hybride Softwareentwicklung beschreibt einen Ansatz, der die Vorteile beider Welten in einem Modell vereint und stellt seine Praxistauglichkeit anhand von Case Studies unter Beweis. Zusammen mit den Co-Autoren erläutere ich die Vorteile der hybriden Softwareentwicklung und diskutiere praxisorientierte Lösungsansätze für IT-Manager und Projektleiter.

Kaufen bei amazon