NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #4171 most downloaded on Packagist
PHP wrapper library for the Google Chart API
Latest stable
3.1.14
Last release 6 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 13 months
Most releases are documented
notes for 42 of 48 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
57 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
This should fix the composer 2 blocker of the RenderableTrait issue #322
This should fix the composer 2 blocker of the RenderableTrait issue #322
This version freeze is needed to fix some bugs when using the current version
This version freeze is needed to fix some bugs when using the current version
Fixes #330
This should free everyone from Carbon version issues. (hopefully!!) Fixing #302
This should free everyone from Carbon version issues. (hopefully!!) Fixing #302
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Disscused and fixed in issue #256
Disscused and fixed in issue #256
Thanks NelsonBaez
Laravel 5.5+ installs should now automatically be discovered and registered.
Laravel 5.5+ installs should now automatically be discovered and registered.
Fixed a bug in setOptions that prevented png and material options from being processed and assigned to the chart.
Fixed a bug in setOptions that prevented png and material options from being processed and assigned to the chart.
I keep forgetting to do a prod build before releasing, sorry!
I keep forgetting to do a prod build before releasing, sorry!
Nobody likes console log flood?
Added the tag lavacharts to the config publishing. Use php artisan vendor:publish --tag=lavacharts If that does not work, try to clear the cache with
Added the tag lavacharts to the config publishing.
Use php artisan vendor:publish --tag=lavacharts
If that does not work, try to clear the cache with php artisan config:clear and re-publish with --force.
The event callback within lava.js was modified to pass back the chart and the datatable so users can interact with either during an event. This solves
The event callback within lava.js was modified to pass back the chart and the datatable so users can interact with either during an event. This solves issue #203
Nothing published for this version
Chart's should resize properly on page resize.
Chart's should resize properly on page resize.
Adding support for date columns to be null which enables support for Gantt charts to have linked sections.
null which enables support for Gantt charts to have linked sections.JavascriptDate class which is an (hacky) alias for the Javascript Date object. (I really just wanted to be able to copy and paste Google examples into my tests and DataTables)Short Example:
use Khill\Lavacharts\Support\JavascriptDate as Date;
$daysToMilliseconds = function ($days) {
return $days * 24 * 60 * 60 * 1000;
};
$data = $lava->DataTable();
$data->addColumn('string', 'Task ID');
$data->addColumn('string', 'Task Name');
$data->addColumn('date', 'Start Date');
$data->addColumn('date', 'End Date');
$data->addColumn('number', 'Duration');
$data->addColumn('number', 'Percent Complete');
$data->addColumn('string', 'Dependencies');
$data->addRows([
['Research', 'Find sources',
new Date(2015, 0, 1), new Date(2015, 0, 5), null, 100, null],
['Write', 'Write paper',
null, new Date(2015, 0, 9), $daysToMilliseconds(3), 25, 'Research,Outline'],
['Cite', 'Create bibliography',
null, new Date(2015, 0, 7), $daysToMilliseconds(1), 20, 'Research'],
['Complete', 'Hand in paper',
null, new Date(2015, 0, 10), $daysToMilliseconds(1), 0, 'Cite,Write'],
['Outline', 'Outline paper',
null, new Date(2015, 0, 6), $daysToMilliseconds(1), 100, 'Research']
]);
Releasing the Symfony Bundle (again) to re-enable support for all the new chart types and the renderAll
Releasing the Symfony Bundle (again) to re-enable support for all the new chart types and the renderAll
I don't know how I accidentally removed the Symfony folder, but it's back now.
I don't know how I accidentally removed the Symfony folder, but it's back now.
I have had this "ready" for months but have procrastinated long enough. I will fix bugs as they arise, but there have been advancements that are worth
I have had this "ready" for months but have procrastinated long enough. I will fix bugs as they arise, but there have been advancements that are worth releasing.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Here is a short example of the usage of the 'domain' role:
Here is a short example of the usage of the 'domain' role:
/**
* Example implementation of the 'domain' column role:
*
* @link https://developers.google.com/chart/interactive/docs/roles
*
* label: '2009, Quarter', '2009, Sales', '2009, Expenses', '2008, Quarter', '2008, Sales', '2008, Expenses'
* role: domain, data, data, domain, data, data
* 'Q1/09', 1000, 400, 'Q1/08', 800, 300
* 'Q2/09', 1170, 460, 'Q2/08', 750, 400
* 'Q3/09', 660, 1120, 'Q3/08', 700, 540
* 'Q4/09', 1030, 540, 'Q4/08', 820, 620
*
*/
use \Khill\Lavacharts\Lavacharts;
$lava = new Lavacharts;
$table = $lava->DataTable();
$table->addStringColumn('2009, Quarter', null, 'domain')
->addNumberColumn('2009, Sales')
->addNumberColumn('2009, Expenses')
->addStringColumn('2008, Quarter', null, 'domain')
->addNumberColumn('2008, Sales')
->addNumberColumn('2008, Expenses')
->addRow(['Q1/09', 1000, 400, 'Q1/08', 800, 300])
->addRow(['Q2/09', 1170, 460, 'Q2/08', 750, 400])
->addRow(['Q3/09', 660, 1120, 'Q3/08', 700, 540])
->addRow(['Q4/09', 1030, 540, 'Q4/08', 820, 620]);
$lava->LineChart('Money', $table, [
'width'=> 400,
'height'=> 240,
'legend'=>'right',
'focusTarget'=> 'category'
]);
Adding support for objects that implement Traversable and ArrayAccess to be passed into the addRows() method
Adding support for objects that implement Traversable and ArrayAccess to be passed into the addRows() method
Refactored the LavachartsServiceProvider to use singleton over share since it was removed in Laravel 5.4
Refactored the LavachartsServiceProvider to use singleton over share since it was removed in Laravel 5.4
Fixed the missing ")" bug. Defensively removing the "()" as well to support version Laravel 5.3 and below.
Fixed the missing ")" bug. Defensively removing the "()" as well to support version Laravel 5.3 and below.
Fixing bug where TreeMap was not in list of chartClasses
Fixing bug where TreeMap was not in list of chartClasses
Nothing published for this version
For existing users, the functionality of the customize method is now integrated into the constructor. No need for the extra method call.
For existing users, the functionality of the customize method is now integrated into the constructor. No need for the extra method call.
For new users, pass any option you want into the constructor. Use Google's doc pages for the full list of options they support.
Adding percent to IsStackedTrait
Adding percent to IsStackedTrait
Major internal overhaul from version 2.5
Major internal overhaul from version 2.5
The notable additions are as follows:
Nothing published for this version
With almost 350 commits and massive internal re-writes, this new version will provide a simpler syntax for creating charts and also bring a whole new
With almost 350 commits and massive internal re-writes, this new version will provide a simpler syntax for creating charts and also bring a whole new feature, Dashboards!
Nothing published for this version
Adding vAxes to charts that had it commented out
Added customize() method to all charts to enable the use of config options that I may not have implemented yet, but are available to users from Google
Added customize() method to all charts to enable the use of config options that I may not have implemented yet, but are available to users from Google.
For example, if you have a LineChart and want to use the chart explorer option, you can add this "unsupported" option with the customize() method.
$lava->LineChart('MyChart')
->datatable($myData)
->customize([
'explorer' => [
'actions' => [
'dragToPan',
'rightClickToReset'
]
]
]);
No more handcuffing (my accident, sorry!) and no more so-and-so is not a valid property for WhateverChart
Nothing published for this version
Sorry to anyone who got 2.5.6 and experienced the ajax loading bug.
Sorry to anyone who got 2.5.6 and experienced the ajax loading bug.
Added some tweaks to the lava.loadData method and JavascriptFactory to use the saved formats and options, and only load new data via JSON.
Added some tweaks to the lava.loadData method and JavascriptFactory to use the saved formats and options, and only load new data via JSON.
Added fix for blade template extensions
Added fix for blade template extensions
Laravel 5+ is now supported seamlessly with backwards compatibility for Laravel 4
Fixed a bad namespace in Chart.php
Fixed a bad namespace in Chart.php
Support for column roles added.
Support for column roles added.
addColumn($type | $arrayColDef [, $label [, $Id [, $formatter [, $role ] ] ] ] )
See Datatable Roles on Google
Adding support for timeofday columns
Adding support for timeofday columns
addColumn('timeofday', 'Column Label')
Fixes issue where chart is found, but throws not found error.
Fixes issue where chart is found, but throws not found error.
Data can now be loaded into the charts via AJAX.
Data can now be loaded into the charts via AJAX.
The new method exists($type, $label) can be used to check if a created chart exists in the volcano (chart storage).
The new method exists($type, $label) can be used to check if a created chart exists in the volcano (chart storage).
If a chart was created:
$lavacharts->LineChart('Test');
Then a call to the method $lavacharts->exists('LineChart', 'Test'); will return true
Nothing published for this version
BarChart support has been added. Ran phpcs & phpcbf to cleanup to PSR2 standards Switched autoloading from PSR0 -> PSR4 Library doesn't depend on comp
BarChart support has been added. Ran phpcs & phpcbf to cleanup to PSR2 standards Switched autoloading from PSR0 -> PSR4 Library doesn't depend on composer anymore, can be installed manually.
Use $lava->jsapi() or Lava::jsapi() in Laravel
Use $lava->jsapi() or Lava::jsapi() in Laravel
This will allow you to place the script tag with the google jsapi manually, instead of above the first chart render.
Timezone can now be set with the constructor when creating the DataTable. Falls back to ini setting if not set, falls back to "America/Los_Angeles" if
Timezone can now be set with the constructor when creating the DataTable. Falls back to ini setting if not set, falls back to "America/Los_Angeles" if the ini is not set.
View the Example and Config options.
Nothing published for this version
Updated the Carbon dependency to allow more flexibility with other libraries that include Carbon. (namely Laravel)
Updated the Carbon dependency to allow more flexibility with other libraries that include Carbon. (namely Laravel)
Thank you @lolytallica, @thomthom and @deringer
Thank you @lolytallica, @thomthom and @deringer
Fixed a couple bugs with the firing of chart events
Fixed a couple bugs with the firing of chart events
Charts are now responsive to window size, redrawing as needed to fit. Refactored JavascriptFactory to allow multiple charts on one page, without multi
Charts are now responsive to window size, redrawing as needed to fit. Refactored JavascriptFactory to allow multiple charts on one page, without multiple google jsapi calls
Nothing published for this version
Converted old code from Codeigniter-gCharts
Converted old code from Codeigniter-gCharts
One column per quarter.