Visualizr web application library

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

GroupId

GroupId

biz.paluch.visualizr
ArtifactId

ArtifactId

visualizr
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Visualizr web application library
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

Download visualizr

How to add to project

<!-- https://jarcasting.com/artifacts/biz.paluch.visualizr/visualizr/ -->
<dependency>
    <groupId>biz.paluch.visualizr</groupId>
    <artifactId>visualizr</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/biz.paluch.visualizr/visualizr/
implementation 'biz.paluch.visualizr:visualizr:1.0'
// https://jarcasting.com/artifacts/biz.paluch.visualizr/visualizr/
implementation ("biz.paluch.visualizr:visualizr:1.0")
'biz.paluch.visualizr:visualizr:jar:1.0'
<dependency org="biz.paluch.visualizr" name="visualizr" rev="1.0">
  <artifact name="visualizr" type="jar" />
</dependency>
@Grapes(
@Grab(group='biz.paluch.visualizr', module='visualizr', version='1.0')
)
libraryDependencies += "biz.paluch.visualizr" % "visualizr" % "1.0"
[biz.paluch.visualizr/visualizr "1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
biz.paluch.visualizr : model jar 1.0
org.apache.velocity : velocity jar 1.7

provided (3)

Group / Artifact Type Version
org.jboss.resteasy : resteasy-jackson-provider jar 2.3.6.Final
javax.servlet : javax.servlet-api jar 3.0.1
org.jboss.resteasy : resteasy-jaxrs jar 2.3.6.Final

test (2)

Group / Artifact Type Version
com.google.guava : guava jar 16.0.1
biz.paluch.visualizr : local-hosted-js-frameworks jar 1.0

Project Modules

There are no modules declared in this project.

visualizr

visualizr is a tiny data visualization framework. It uses amcharts and an internal HTTP API to create charts based on time data.

Features

  • Linecharts for time data (single and multiple graphs within one chart)
  • Multiple charts per data source
  • Support of multiple data sources (a data source can provide multiple charts)
  • Full Ajax support
  • Automatic refresh
  • Easy integration

visualizr

Datepicker visualizr Datepicker

Timepicker visualizr Timepicker

Integration

There are 6 steps, you've to do in order to integrate visualizr:

  1. Implement a DataSourceProvider (implements biz.paluch.visualizr.spi.DataSourceProvider)
    The DataSourceProvider provides a list of DataSources. Every ChartDataSource has an id and a name.

  2. Implement a ChartProvider (ìmplements biz.paluch.visualizr.spi.ChartProvider)br/> The ChartProvider provides two things: The ChartDescriptors and ChartData.

  3. Implement your ViewResource (extnds biz.paluch.visualizr.AbstractViewResource)
    You need to implement just the getDataSourceProvider method. Since I'm not in charge of dependency injection, you're free on how you get the DataSourceProvider

  4. Implement your ChartResource (extnds biz.paluch.visualizr.AbstractChartResource)
    You need to implement just the getChartProvider method. Since I'm not in charge of dependency injection, you're free on how you get the ChartProvider

  5. Like 4, implement your ChartDataResource (extnds biz.paluch.visualizr.AbstractChartDataResource)
    You need to implement just the getChartProvider method. Since I'm not in charge of dependency injection, you're free on how you get the ChartProvider

  6. Stick all together and run it! Some RESTEasy versions try to create instances of abstract resource classes, therefore you should disable autoscan and create an javax.ws.rs.core.Application that specifies the 3 resource classes.

Running a demo

Wanna try it? You need just maven for it:

mvn clean install
cd visualizr
mvn jetty:run

Open your browser and start [http://localhost:8080/visualizr/view/single.html]

Versions/Dependencies

This project is built against following dependencies/versions:

  • Apache Velocity 1.7
  • RESTEasy/RESTEasy Jackson 3.0.19
  • Jackson 2.8.8
  • Google Guava 21.0
  • Java Servlet API 3.1 (will work with 2.5 as well)

HTML/Javascript Frameworks

visualizr uses JQuery 1.11.0, Bootstrap 3.1.1 and amcharts 3. These libraries are bundled within the module local-hosted-js-frameworks which is optional. In case the bundled resources are not available, it will switch to the hosted version of JQuery (via googleapis), Bootstrap (netdna) and amcharts (amcharts.com). The compressed version of local-hosted-js-frameworks eats some 1MB.

Versions

Version
1.0