Download the PHP package githubconsoletvs/charts5yes without Composer

On this page you can find all versions of the php package githubconsoletvs/charts5yes. 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 charts5yes

StyleCI Status Build For Laravel Total Downloads Latest Stable Version License

What is Charts?

Charts is a multi-library chart package to create interactive charts using laravel. It Gives you access to tons of different charts. Over +100 different charts and +13 different chart libraries to choose from. With this package you can forget writing all the javascript manually and focus on your laravel project, while keeping an insane customizable chart coded in PHP. And last but not least, we support different types of charts, mathematical charts, multi-charts, they can even be created using your eloquent models! And hey... We do support realtime stuff as well ;)

Sample Chart

This chart is a multi bar chart using the material library.

Charts Logo

Table Of Contents

Installation {#installation}

Download

Add service provider & alias

NOTE: If you're using laravel 5.5+ you can skip this step.

Add the following service provider to the array in:

Add the following alias to the array in:

Publish the assets

Default Settings {#default-settings}

The file in: contains an array of settings, you can find the default settings in there.

Default Chart Views

The default chart views are published as well at the resources/views/vendor folder

Example Usage {#example-usage}

Example Controller:

Example View:

Create Charts {#create-charts}

Create Charts line area bar pie donut geo gauge temp percentage progressbar areaspline scatter
echarts x x x x x - x - - - - -
chartjs x x x x x - - - - - - -
highcharts x x x x x x - - - - - -
google x x x x x x x - - - - x
material x - x - - - - - - - - -
chartist x x x x x - - - - - - -
fusioncharts x x x x x - - - - - - -
morris x x x - x - - - - - - -
plottablejs x x x x x - - - - - - -
minimalist x x x x x - - - - - - -
c3 x x x x x - x - - - - -
canvas-gauges - - - - - - x x - - - -
justgage - - - - - - x - x - - -
progressbarjs - - - - - - - - x x - -

The first argument of the create method is the chart type, and the second is the library

Multi Datasets Charts {#multi-dataset-charts}

Multi Dataset Charts line area bar pie donut geo gauge temp percentage progressbar areaspline scatter
echarts x x x - - - - - - - - -
chartjs x x x - - - - - - - - -
highcharts x x x - - - - - - - x -
google x x x - - - - - - - - -
material x - x - - - - - - - - -
chartist x x x - - - - - - - - -
fusioncharts x x x - - - - - - - - -
morris x x x - - - - - - - - -
plottablejs x x x - - - - - - - - -
minimalist x x x - - - - - - - - -
c3 x x x - - - - - - - - -
canvas-gauges - - - - - - - - - - - -
justgage - - - - - - - - - - - -
progressbarjs - - - - - - - - - - - -

To create multi-dataset charts simply add the values using the function!

Database Charts {#database-charts}

You can also generate database charts with simple setup!

Example data: Example Data

Note: You are required to use a specific group method before rendering the chart!

Important: To work with the GroupByYear, GroupByMonth, GroupByDay, lastByYear, lastByMonth & lastByDay you'll need the column in the data rows.

The available methods are:

Database alternative method

When creating charts, you might wanna take full control of it, this might be done creating the chart with the method and adding the data from the database:

Multi Database Charts {#multi-database-charts}

Sometimes it might be usefull to create multi charts from diferent tables, right?

Fear no more, as this feature is there for you!

Working Standard: This chart is kinda special, the class extends the multi chart class and that means that any option available in the multi chart is avalable here. BUT as this is a database chart, you need to add the dataset in the following way:

And remember, you got all the database functions linked, meaning you're able to play with them as well like this:

As mentioned above, this chart got all the available database methods and multi chart methods.

Realtime Charts {#realtime-charts}

Realtime Chart Example

Realtime Charts line area bar pie donut geo gauge temp percentage progressbar scatter
echarts - - - - - - - - - - -
chartjs - - - - - - - - - - -
highcharts x x x - - - - - - - -
google - - - - - - x - - - -
material - - - - - - - - - - -
chartist - - - - - - - - - - -
fusioncharts - - - - - - - - - - -
morris - - - - - - - - - - -
plottablejs - - - - - - - - - - -
minimalist - - - - - - - - - - -
c3 - - - - - - - - - - -
canvas-gauges - - - - - - x x - - -
justgage - - - - - - x - x - -
progressbarjs - - - - - - - - x x -

You can create realtime charts.

Example json:

'value' can be changed to different index name with

Note: The interval is set in ms

The available methods are:

Math Functions Charts {#math-functions-charts}

You can create math function charts.

Math Functions Example

The function is , the interval is and the amplitude is

URL Charts (Ajax) {#url-charts}

BETA FEATURE WITH CHANGES FOR THE NEXT MAJOR RELEASE

Currently only highcharts is supported.

Since sometimes you need to create a lot of charts and they perhaps require a lot of operations, we allow loading the chart data from a URL with ajax.

Example Response from

Multi URL charts (Ajax) {#multi-url-charts}

BETA FEATURE WITH CHANGES FOR THE NEXT MAJOR RELEASE

This class extends the base URL, so all functions there are available.

It works the same way, but expects a different response:

Charts Functions {#charts-functions}

Available Chart Settings {#available-chart-settings}

Chart Examples {#chart-examples}

Pie

Example Pie

Donut / Doughnut

Note: can't change the color of this chart. Well it can but it's complicated, so I leave it here.

Example Donut

Line

Example Line

Area

Example Area

Areaspline

Example Area

Bar

Example Bar

Geo

Note: The labels must have the country codes, not the name.

Note 2: To add color to the chart, you'll need to provide an array of at least 2 colors. The first is the min and the second the max.

Example Geo

Gauge

Note: You either need 1 value or 3 following this standard:

Example Gauge

Temperature

Note: You either need 1 value or 3 following this standard:

Example Temperature

Percentage

Note: You either need 1 value or 3 following this standard:

Example Percentage

Progressbar

Note: You either need 1 value or 3 following this standard:

Example Progressbar

Credits Disable

Note: credits disable available. Default credits is enable.

Charts in tabs {#cjarts-in-tabs}

Example tab chart

Rendering charts on tabs will cause them to render very bad. The cause is that unactive tabs have no dimensions and charts try to adapt to a 0 dimensions division.

Lucky for you I'll add a quick method to make it work!

  1. Create a layout, call it something like:

  2. Create a new folder where you'll add all charts, for example:
  3. Create a new file inside, for example: and add the chart

  4. Create a new route in

  5. Create a new Controller

    Make sure to change your stuff, it's all documented

  6. Go to your view where you have your tabs, and inside that tab you like add the chart iframe with the height.

    Note: This example uses materializecss. They have a loader that makes it cooler to load up charts :)

  7. Add this script changing the tab id with yours

    Note: As you can see it also uses the loader from materializecss, you can remove them as well.

Extend your way! {#extend-your-way}

You can create your own Charts by forking this repository. The folder contains all the current charts, but you can add yours like this:

Create a new file

Create a new file, the syntax is:

if your chart library is called: and your template is for the line chart: Then you create a file like this:

To call it later, just use:

You will need to add the CSS / JS to the includes.php file found in the folder.

You have plenty of examples to see how to put the data so just take a closer look at all the included templates before doing yours!


All versions of charts5yes with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
illuminate/support Version 5.*
jlawrence/eos Version 3.*
jenssegers/date Version v3.*
consoletvs/support Version ^2.1.2
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 githubconsoletvs/charts5yes contains the following files

Loading the files please wait ....