This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ColumnChartSeries { | |
| private ArrayList<ColumnData> columnData = new ArrayList<>(); | |
| public ColumnChartSeries() { | |
| } | |
| public void addColumn(String columnName, Number value) { | |
| ColumnData d = new ColumnData(columnName, value); | |
| columnData.add(d); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cc:interface> | |
| <cc:attribute name="title" default=""/> | |
| <cc:attribute name="subTitle" default =""/> | |
| <cc:attribute name="yLabel" default =""/> | |
| <cc:attribute name="xLabel" default=""/> | |
| <cc:attribute name="xMinTickInterval" default="0" /> | |
| </cc:interface> | |
| <cc:implementation> | |
| <div id="#{cc.id}_chartDiv"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cc:interface> | |
| <cc:attribute name="name" default=""/> | |
| <cc:attribute name="series" type="nz.co.tradeintel.highcharts.ColumnChartSeries"/> | |
| </cc:interface> | |
| <cc:implementation> | |
| if(typeof options.xAxis.categories === "undefined") { | |
| options.xAxis.categories = | |
| [<ui:repeat value="#{cc.attrs.series.columns}" var="column"> | |
| '#{column.name}', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dependencies> | |
| <dependency> | |
| <groupId>nz.co.kevindoran</groupId> | |
| <artifactId>google-charts-jsf</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <type>jar</type> | |
| </dependency> | |
| </dependencies> |