Download the PHP package brocode/module-chartee without Composer

On this page you can find all versions of the php package brocode/module-chartee. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-chartee

Chartee - a Magento 2 chart-js module

This module should ease the way of creating powerful charts in Magento 2. It is based on the chart.js library (which itself is already used by Magento2 for its dashboard charts) and various extensions for additional chart types.

Goals of this module:

Installation

Features

Supported chart types

Bar chart Based on the base implementation from https://www.chartjs3.com/docs/chart/getting-started/

Stacked bar chart

A bar chart variation with the help of the chart.js plugin https://github.com/y-takey/chartjs-plugin-stacked100/

Polar chart

A polar chart based on the sample from https://codepen.io/FranciscusAgnew/pen/LRGPYX

Doughnut chart

A variation of the base doughnut chart, based on https://www.youtube.com/watch?v=YcRj52VovYQ

Gauge chart

A variation of the doughnut chart, based on https://www.youtube.com/watch?v=VF6jd2Fv4bs&list=RDCMUCojXvfr41NqDxaPb9amu8-A&index=1

Boxplot chart

What is a Boxplot chart? See Wikipedia for more information.

A boxplot chart, based on https://www.youtube.com/watch?v=2zEbeX0bPS8

Ready to use charts

Customer Group Distribution

The charts shows the distribution of registered customers between all customer groups. It also provides the possibility to download the shown data as CSV.

It can be found in the page :

Permissions: only admin users with the permission can see the chart.

Configuration:

Adminhtml menu items

All menus can be found under

Chartbuilder Listing

Shows all registered chart builders.

Currently no further features are implemented. Possible features could be:

Demo Charts

Listing of all current demo charts and links how they have been implemented on js side.

Boilerplate code snipptes

ColumnBaseChart

Simple base class to order all added subblocks in a column layout. It dynamically sets the according needed columns, based if a chart is shown or not (which can change based on configuration or permissions). Additionally a section title added.

Sample of a row with 2 columns and a section title: `

BaseCompositeChart

Base chart display class. It can be used within the frontend and adminhtml (a specialized subclass exists with the extension of checking backend permissions: BroCode\Chartee\Block\Adminhtml\BaseCompositeChartsBlock). It provides the following features:

`

Chart Data Builder

Every chart needs a datasource, which is an implementation of \BroCode\Chartee\Api\ChartDataBuilderInterface. For every base chart a separate Databuilder is already implemented with default configurations for that type of chart and possibly additional methods for creating the needed configuration.

Every base chart has its default DataBuilder and an implementation example within \BroCode\Chartee\Model\DataBuilder\Demo.

Implementation of a new Databuilder

Extend the needed specific ChartDataBuilder, here a Sample of the DemoPolarChartDataBuilder: ``

To add downloadable data to be used, any data must be set separatelly to the chart builder class: ``

Registration within the databuilder service

The databuilder needs to be registered within a di.xml in order to use it as named builder within the Template-block class: `

Datafiltering

the \BroCode\Chartee\Model\ChartRequestParameterService provides methods to gather all set filtering parameter that should be considered when building up the needed data.

Current following parameters are supported:

Hint for adding a store filter to your backend page: `

Hint for adding a date range filter to your backend page: Hint for using a date range picker in a custom element: Hint for configuration possibility (see https://www.daterangepicker.com/#config), e.g. hiding the week numbers:

`

BroCode\Chartee\Block\Widget\BaseChart

These charts are used by the BaseCompositeChart class and can also be used as standalone charts too. The according demo page charts are implemented that way.

Steps to add a new chart:

JS-Libraries, Chart.js version and extensions


All versions of module-chartee with dependencies

PHP Build Version
Package Version
Requires league/csv Version ^9.8
magento/framework Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package brocode/module-chartee contains the following files

Loading the files please wait ....