Charts In Laravel 5 Using Charts Package

Learn Infinity

Learn Infinity is the most famous Programming & Web Development blog. Our principal is to provide the best online tutorial on web development. We execute the best tutorials for web experts this will help developers, programmers, freelancers and proving free resource you can download or preview the tutorials.

7 thoughts on “Charts In Laravel 5 Using Charts Package

    1. Its present in new version. So you may use following command to work with charts.

      composer require consoletvs/charts:5.*

      V6.* Has some class errors

  1. v6 of ConsoleTvCharts is the worst so far, you cant do a lot of things that was working out of the box in v5
    for example
    $chart = Charts::database($users, ‘bar’, ‘highcharts’)
    ->title(“Monthly new Register Users”)
    ->elementLabel(“Total Users”)
    ->dimensions(1000, 500)
    ->groupByMonth(date(‘Y’), true);

    there is no groupByMonth methods or by week, by year etc.
    Now you have to get the labels and data manually with Eloquent which is a complicated mess.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top