- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 30 of file Chart.java.
◆ Chart()
Definition at line 35 of file Chart.java.
37 this.
series =
new ArrayList<>();
ArrayList< Series > series
◆ addSeries()
Series org.turro.charts.Chart.addSeries |
( |
String |
name | ) |
|
Definition at line 44 of file Chart.java.
45 Series s =
new Series(name);
◆ getLineData()
String org.turro.charts.Chart.getLineData |
( |
| ) |
|
Definition at line 78 of file Chart.java.
79 StringBuilder sb =
new StringBuilder();
86 for(Data d : s.getData()) {
87 if(first) { first =
false; }
else { sb.append(
","); }
91 .append(d.getValue(0.0));
92 if(!Strings.isBlank(d.getLink())) {
93 sb.append(
",events:{click:function(){location.href=\"")
101 return sb.toString();
◆ getPieData()
String org.turro.charts.Chart.getPieData |
( |
| ) |
|
Definition at line 52 of file Chart.java.
53 StringBuilder sb =
new StringBuilder();
60 for(Data d : s.getData()) {
61 if(first) { first =
false; }
else { sb.append(
","); }
65 .append(d.getValue(0.0));
66 if(!Strings.isBlank(d.getLink())) {
67 sb.append(
",events:{click:function(){location.href=\"")
◆ getSeries()
ArrayList<Series> org.turro.charts.Chart.getSeries |
( |
| ) |
|
◆ loadData()
void org.turro.charts.Chart.loadData |
( |
| ) |
|
|
protected |
◆ parseLine() [1/2]
String org.turro.charts.Chart.parseLine |
( |
String |
identifier | ) |
|
Definition at line 108 of file Chart.java.
String parseLine(String identifier)
◆ parseLine() [2/2]
String org.turro.charts.Chart.parseLine |
( |
String |
identifier, |
|
|
String |
title |
|
) |
| |
Definition at line 121 of file Chart.java.
123 ElephantMarker marker =
new ElephantMarker(
constructor);
124 marker.put(
"identifier", identifier);
125 marker.put(
"title", title);
127 return marker.parse(
"charts",
"line");
◆ parsePie() [1/2]
String org.turro.charts.Chart.parsePie |
( |
String |
identifier | ) |
|
Definition at line 104 of file Chart.java.
String parsePie(String identifier)
◆ parsePie() [2/2]
String org.turro.charts.Chart.parsePie |
( |
String |
identifier, |
|
|
String |
title |
|
) |
| |
Definition at line 112 of file Chart.java.
114 ElephantMarker marker =
new ElephantMarker(
constructor);
115 marker.put(
"identifier", identifier);
116 marker.put(
"title", title);
118 return marker.parse(
"charts",
"pie");
◆ constructor
◆ series
ArrayList<Series> org.turro.charts.Chart.series |
|
protected |
The documentation for this class was generated from the following file: