Comments (5)
Yeaaaah, so when I was making this library, I didn't realize that all my class references were relying on composer's autoload functionality. I realized this once I was deep into refactoring for version 2, and so I decided that I would wait to fix this until the release. Now that V2 is in the wild, this is definitely on my list of todos. I'm looking into borrowing the symfony autoloader to allow use of the library in non composer/laravel environments.
I can make no promises for a completion date, but please keep an eye on the repo for updates! :)
from lavacharts.
I would highly recommend learning about composer and using it within your php development workflow. It makes adding packages and managing dependencies so much easier.
https://philsturgeon.uk/blog/2012/05/composer-with-codeigniter/
from lavacharts.
Please see Issue #24
from lavacharts.
If you want to pull and test against the 2.4 branch, I have included a Psr4 Autoloader so you do not have to use composer (even though it is a great tool)
The only thing you need to do is also include the Carbon library before Lavacharts.
Here is an example:
<?php
require_once('Carbon-1.18.0/src/Carbon/Carbon.php');
require_once('lavacharts-2.4/src/Lavacharts.php');
use \Carbon\Carbon;
use \Khill\Lavacharts\Lavacharts;
$lava = new Lavacharts;
$dt = $lava->DataTable();
$dt->addDateColumn('dates');
$dt->addNumberColumn('numbers');
for ($a=1; $a <= 30; $a++) {
$dt->addRow([Carbon::parse($a.'-1-2015'), rand(100,200)]);
}
$lava->LineChart('Stuff')
->dataTable($dt);
?>
<doctype html>
<html>
<head>
<title>No Composer</title>
</head>
<body>
<div id="chart"></div>
<?php echo $lava->render('LineChart', 'Stuff', 'chart'); ?>
</body>
</html>
from lavacharts.
Thank you very much. In the meantime, I started my project directly with the google API. But for my next project, I will test Lavachart again :+)
from lavacharts.
Related Issues (20)
- Cannot read property isHtml of null, Unspecified chart type HOT 9
- lavacharts.com is down HOT 15
- Chart to wkhtmltopdf not working HOT 4
- Piecharts have stopped working HOT 1
- Google Charts version "current" is breaking things HOT 4
- Use of <script type="text/javascript"> not right according to validator.w3.org HOT 1
- Trendlines with ColumnChart doesn't work. HOT 3
- How to use addTimeOfDayColumn method? HOT 2
- Khill\Lavacharts\Exceptions\InvalidStringValue: Invalid argument, must be a non-empty string
- while installing on ide-helper:generate an error occurs HOT 1
- Refused to load the script 'https://www.gstatic.com/charts/loader.js' because it violates the following Content Security Policy HOT 1
- Adding data descriptions on the X axis HOT 1
- OrgChart is included but not enabled. Why? HOT 1
- Cannot read property 'style' of null× HOT 3
- Dashboard / ChartWrapper missing functionality HOT 1
- Call to undefined method Khill\Lavacharts\DataTables\DataTable::DataTabe()
- OrgChart.php references trait "PngOutputTrait" instead of "PngRenderableTrait"
- Event is not defined
- Undefined type "Lava" error
- is this chart package still compatible with Laravel version 10? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lavacharts.