Closed ghost closed 7 years ago
no they are not , here's the log from the composer `composer require fx3costa/laravelchartjs Using version ^2.1 for fx3costa/laravelchartjs ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.
Problem 1
Installation failed, reverting ./composer.json to its original content. `
I guess adding || 5.4.* to composer.json wil fix it?
Waiting on this one also. Thanks.
fixed in 6c6976d59e8a84a644ba5b6ff865a92643aae3f3
Great it's working now
How can I pull the corrected repo into composer?
Packagist version still shows 2.1.0
Thanks
sorry! i forgot publish new release to packagist. Its done!!
Great. Thanks for the fast response and excellent work.
Thanks @fxcosta
Wooohooo Thank You Sir
I'm going to draw chart in my web app. And I've found this just before. As you metioned in your readme.md, I've setup this using composer require and also added config/app.php I've added div to my example blade and also added code to my controller. But nothing displayed... what's wrong?
This is my dashboard balde.
@extends('layouts.app')
@section('content')
@endsection
this is my dashboard controller
public function index() { $chartjs = app()->chartjs ->name('lineChartTest') ->type('line') ->element('lineChartTest') ->labels(['January', 'February', 'March', 'April', 'May', 'June', 'July']) ->datasets([ [ "label" => "My First dataset", 'backgroundColor' => "rgba(38, 185, 154, 0.31)", 'borderColor' => "rgba(38, 185, 154, 0.7)", "pointBorderColor" => "rgba(38, 185, 154, 0.7)", "pointBackgroundColor" => "rgba(38, 185, 154, 0.7)", "pointHoverBackgroundColor" => "#fff", "pointHoverBorderColor" => "rgba(220,220,220,1)", 'data' => [65, 59, 80, 81, 56, 55, 40], ], [ "label" => "My Second dataset", 'backgroundColor' => "rgba(38, 185, 154, 0.31)", 'borderColor' => "rgba(38, 185, 154, 0.7)", "pointBorderColor" => "rgba(38, 185, 154, 0.7)", "pointBackgroundColor" => "rgba(38, 185, 154, 0.7)", "pointHoverBackgroundColor" => "#fff", "pointHoverBorderColor" => "rgba(220,220,220,1)", 'data' => [12, 33, 44, 44, 55, 23, 40], ] ]) ->options([]);
return view('dashboard', compact('chartjs'));
}
I've added Fx3costa\LaravelChartJs\Providers\ChartjsServiceProvider::class, to my config/app.php
Would you like to let me know how to install chart js library? As I'm new to laravel, I'm not sure what should i do. Please help me.
@FredLopes0203 If you're having an issue with the library, you need to open up a new issue.
@FredLopes0203 open a new issue about this problem to another devs in future. the problem probably is that you not installed the chartjs lib. you can download it via npm, cdn or whatever. you must add the chartjs lib in your template, like this:
<head>
<title>My app</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js"></script>
I'll close this issue because your goal has already been completed.
I need to format its Y axis like 1024 = 1 Mo
I need to look at whether there have been any changes in APIs we use but I believe it is compatible. I'll check!