Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
Data
Data
Optimale Datenstruktur (Datenbank):

...

Code Block
languagejava
themeEclipse
firstline1
linenumberstrue
final ChartModel model = ChartModel.New()..addColumn(Column.New(Type.STRING, "bubbletext", "Bubbletext"))
.addColumn(Column.New(Type.NUMBER, "x-value", "X-Axis"))
.addColumn(Column.New(Type.NUMBER, "x-value", "Y-Axis"))
.addColumn(Column.New(Type.STRING, "category", "Category"))
.addColumn(Column.New(Type.NUMBER, "bubblesize", "Bubblesize"));

model.addRow("CAN", 80.66, 1.67, "North America", 33739900d);
model.addRow("GBR", 79.84, 1.36, "Europe", 81902307d);
model.addRow("USA", 72.73, 1.84, "North America", 5523095d);
model.addRow("IRN", 80.05, 4.77, "Middle East", 79716203d);
model.addRow("DEU", 68.09, 2.96, "Europe", 61801570d);
model.addRow("RUS", 81.55, 2.05, "Europe", 73137148d);
model.addRow("ISR", 78.09, 2.78, "Middle East", 31090763d);

this.bubbleChart.setModel(model);

Anchor
Properties
Properties

API und Methoden:

Properties
SortBubblesBySize

The orientation of the chart. When set to'vertical', rotates the axes of the chart so that (for instance) a column chart becomes a bar chart, and an area chart grows rightward instead of up:

Code Block
languagejava
themeEclipse
this.barChart.setOrientation(Orientation.VERTICAL);