Coder Social home page Coder Social logo

alfresco-query-piechart's Introduction

Alfresco Query Piechart

This module is meant to provide a customizable piechart dashlet solution. It is configured to work as a piechart based on queries and labels of your own choice.

Structure

This module consists of a repository module.

Installation

  • This module does not work stand alone out of the box but will require further configuration.
  • If you have your own amp project you can include the piechart module as a dependency.

Add the following dependency to your main pom.xml file

<dependency>
        <groupId>org.redpill-linpro.alfresco.query-piechart</groupId>
	    <artifactId>alfresco-query-piechart-platform-jar</artifactId>
        <version>1.0.0-SNAPSHOT</version>
</dependency>

Repository dependency:

<dependency>
        <groupId>org.redpill-linpro.alfresco.query-piechart</groupId>
        <artifactId>alfresco-query-piechart-platform-jar</artifactId>
</dependency>

Configuration

You need to create a new webscript for each new pie-dashlet that you want to implement. Refer to overview-pie.get.desc.xml, overview-pie.get.html.ftl, overview-pie.get.js for example

You will also need to implement a module:

        <module>
          <id>Add overview Dashlets and widgets</id>
          <auto-deploy>true</auto-deploy>
          <version>${project.version}</version>
          <configurations>
              <config evaluator="string-compare" condition="WebFramework" replace="false">
                  <web-framework>
                      <dojo-pages>
                          <packages>
                              <package name="querypiechart" location="js/querypiechart"/>
                          </packages>
                      </dojo-pages>
                  </web-framework>
              </config>
          </configurations>
        </module>

Refer to OverviewReportService.js, OverviewReport.js and OverviewPieDashlet.js and representive propertie file for examples on how to customize the dashlet with oppertunities for extending the dropdown-box for multiple Piecharts.

Configure your queries and labels through the alfresco-global.properties file as example below.

## Necessary global values to implement
piechart.properties=piechart.query3,piechart.query4,piechart.query5

## Below are examples of queries with labels, each query requires a lable
piechart.query3=cm:userName:admin
piechart.query3.label=Admin

piechart.query4=cm:userName:abeecher
piechart.query4.label=Alice Beecher

piechart.query5=cm:userName:mjackson
piechart.query5.label=Mike Jackson

Remember to always have the same amount of labels as there are queries.

alfresco-query-piechart's People

Contributors

marsv024 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sa-jackmax

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.