Directory

← Back

IkarusOFC

Ikarus Open Flash Chart 2 Wrapper

Author

Rating

Popularity

<100

Vaadin wrapper for OFC2 flash charts.

  • On first data loading; inline data feeding.
  • During chart loading shows Vaadin's progress indicator.
  • Set data to chart through Vaadin's ContainerdataSource strategy.

Installation:

  • Put open-flash-chart.swf under WEB-INF/ofc directory (Default), or give the swf path through constructor.
  • Put jofc2.xxx.jar under WEB-INF/lib
  • Put xtream.xxx.jar under WEB-INF/lib

Check demo application for usage.

Tested with ICEPush, pushing chart data to browser.

Sample code


		IkarusOFChart ikarusChart = new IkarusOFChart();
		ikarusChart.setWidth("500px");
		ikarusChart.setHeight("180px");
		layout.addComponent(ikarusChart);
		YAxis ya = new YAxis();
		ya.setMax(22);
		ya.setSteps(2);
		ikarusChart.setYAxis(ya);
		ikarusChart.setTitle("text=Line Chart");
		setLineChartData(ikarusChart);


	}

	void setLineChartData(IkarusOFChart ikarusChart) {
		BeanItemContainer<Element> container = ikarusChart.getItemContainer();
		container.removeAllItems();
		LineChart bean = new LineChart();
		bean.setText("Product number");
		bean.setColour("#0000FF");
		ArrayList<Dot> lst = new ArrayList<Dot>();
		for (int i = 0; i < 10; i++) {
			Dot dot = new Dot((int) (Math.random() * 20));
			lst.add(dot);
		}
		bean.addDots(lst);
		container.addBean(bean);
		bean = new LineChart();
		bean.setColour("#FF0000");
		lst = new ArrayList<Dot>();
		for (int i = 0; i < 10; i++) {
			Dot dot = new Dot((int) (Math.random() * 20));
			lst.add(dot);
		}
		bean.addDots(lst);
		container.addBean(bean);
	}

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Released
2011-08-13
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.6+
Browser
Internet Explorer
Firefox
Google Chrome
Internet Explorer

IkarusOFC - Vaadin Add-on Directory

Ikarus Open Flash Chart 2 Wrapper IkarusOFC - Vaadin Add-on Directory
Vaadin wrapper for OFC2 flash charts. - On first data loading; inline data feeding. - During chart loading shows Vaadin's progress indicator. - Set data to chart through Vaadin's ContainerdataSource strategy. Installation: * Put open-flash-chart.swf under WEB-INF/ofc directory (Default), or give the swf path through constructor. * Put jofc2.xxx.jar under WEB-INF/lib * Put xtream.xxx.jar under WEB-INF/lib Check demo application for usage. Tested with ICEPush, pushing chart data to browser.
Online