Giter Site home page Giter Site logo

pbulteel / openui5-charting-custom-controls Goto Github PK

View Code? Open in Web Editor NEW

This project forked from philippgembe/openui5-charting-custom-controls

0.0 2.0 0.0 683 KB

This project shows how to use C3.js and Chart.js within OpenUI5 projects

Home Page: http://sap.github.io/openui5-charting-custom-controls/

License: Apache License 2.0

JavaScript 83.71% HTML 13.69% CSS 2.60%

openui5-charting-custom-controls's Introduction

End of Life

This project has been identified as obsolete, and SAP will remove it from our samples repository soon.

The last day for this project is: July 1, 2018

All existing users are encouraged to make a copy of this project before that date.


OpenUI5 Custom Controls for charting

This sample OpenUI5 Web app demonstrates how to build custom UI controls that act as wrapper for thirdparty libraries. It shows you how to integrate simple charts drawn by ChartJS into OpenUI5 apps.

Note: This repository is for illustration purposes only, if you are looking for a ChartJS implementation to be used in your application projects take a look at https://github.com/StErMi/openui5-chartjs/ by @StErMi!

Installation

Clone this repository locally, open up the command line/terminal in the root folder and execute the following command to download required dependencies:

npm install

Note: You need to have NodeJS installed

Next, execute the following command to run a local server with the sample application:

grunt

Finally, access http://localhost:8080/index.html from your browser.

C3.js

Custom UI control wrapping C3.js, a D3-based reusable chart library.

Usage

Here's how to use the C3.js custom control:

<agraebe.custom.control:ChartJSControl width="400" height="200" responsive="true" chartType="Line" data="{some>/path}"/>

Notes: -Width & height only used for ratio of the chart. However, it is ignored in case responsive="true"

Chart.js

Custom UI control wrapping Chart.js, a simple, clean and engaging chart library for designers and developers.

Usage

Here's how to use the Chart.js custom control:

<agraebe.custom.control:C3JSControl data="{some>/path}"/>

Todos

  • Advance C3.js control to use data-binding for labels
  • Advance C3.js control to include further chart types

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.