All Projects → faustbrian → laravel-chartjs

faustbrian / laravel-chartjs

Licence: MPL-2.0 License
No description or website provided.

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to laravel-chartjs

Awesome
A curated list of awesome Chart.js resources and libraries
Stars: ✭ 621 (+4676.92%)
Mutual labels:  charts, chartjs
Chartkick.py
Create beautiful Javascript charts with minimal code
Stars: ✭ 695 (+5246.15%)
Mutual labels:  charts, chartjs
Chartjs.blazor
Brings Chart.js charts to Blazor
Stars: ✭ 402 (+2992.31%)
Mutual labels:  charts, chartjs
React Chartjs 2
React components for Chart.js, the most popular charting library
Stars: ✭ 4,667 (+35800%)
Mutual labels:  charts, chartjs
vue3-chartjs
Vue3 wrapper for ChartJS
Stars: ✭ 122 (+838.46%)
Mutual labels:  charts, chartjs
Dashblocks
Enable Analytics in your Apps
Stars: ✭ 48 (+269.23%)
Mutual labels:  charts, chartjs
Chartkick
Create beautiful JavaScript charts with one line of Ruby
Stars: ✭ 5,903 (+45307.69%)
Mutual labels:  charts, chartjs
dashblocks-template
Dashblocks Vue Material Admin Template
Stars: ✭ 143 (+1000%)
Mutual labels:  charts, chartjs
Chartbrew
Open-source web platform for creating charts out of different data sources (databases and APIs) 📈📊
Stars: ✭ 199 (+1430.77%)
Mutual labels:  charts, chartjs
Yii2 Chartjs Widget
ChartJs Widget For Yii2
Stars: ✭ 95 (+630.77%)
Mutual labels:  charts, chartjs
robo-chart-web
📊 Transform Google sheets to pretty charts!
Stars: ✭ 28 (+115.38%)
Mutual labels:  charts, chartjs
ipychart
The power of Chart.js with Python
Stars: ✭ 48 (+269.23%)
Mutual labels:  charts, chartjs
charts
☸️ Helm Charts for YOURLS
Stars: ✭ 12 (-7.69%)
Mutual labels:  charts
matplotlib-haskell
Haskell bindings for Python's Matplotlib
Stars: ✭ 80 (+515.38%)
Mutual labels:  charts
ioBroker.flot
Charts for ioBroker with flot
Stars: ✭ 19 (+46.15%)
Mutual labels:  charts
yii2-highcharts-widget
HighCharts Js Widget for Yii2
Stars: ✭ 40 (+207.69%)
Mutual labels:  charts
reusable-d3-charts
Reusable charts built with D3. Built on Web standards, fully customisable.
Stars: ✭ 33 (+153.85%)
Mutual labels:  charts
Microcharts
Create cross-platform (Xamarin, Windows, ...) simple charts.
Stars: ✭ 1,742 (+13300%)
Mutual labels:  charts
HCLineChartView
HCLineChartView is a beautiful iOS library for drawing line charts. It is highly customizable and easy to use.
Stars: ✭ 22 (+69.23%)
Mutual labels:  charts
angular-fusioncharts
Angular Component for FusionCharts JavaScript Charting Library
Stars: ✭ 53 (+307.69%)
Mutual labels:  charts

Laravel ChartJS

Build Status PHP from Packagist Latest Version License

Installation

Require this package, with Composer, in the root directory of your project.

$ composer require artisanry/chartjs

Usage

public function index()
{
    $areaChart = ChartJS::name('areaChart')
                        ->type('Line')
                        ->element('areaChart')
                        ->dimension(250)
                        ->labels(['January', 'February', 'March', 'April', 'May', 'June', 'July'])
                        ->datasets([[
                            'label' => 'Electronics',
                            'fillColor' => 'rgba(210, 214, 222, 1)',
                            'strokeColor' => 'rgba(210, 214, 222, 1)',
                            'pointColor' => 'rgba(210, 214, 222, 1)',
                            'pointStrokeColor' => '#c1c7d1',
                            'pointHighlightFill' => '#fff',
                            'pointHighlightStroke' => 'rgba(220,220,220,1)',
                            'data' => [65, 59, 80, 81, 56, 55, 40],
                        ], [
                            'label' => 'Digital Goods',
                            'fillColor' => 'rgba(60,141,188,0.9)',
                            'strokeColor' => 'rgba(60,141,188,0.8)',
                            'pointColor' => '#3b8bba',
                            'pointStrokeColor' => 'rgba(60,141,188,1)',
                            'pointHighlightFill' => '#fff',
                            'pointHighlightStroke' => 'rgba(60,141,188,1)',
                            'data' => [28, 48, 40, 19, 86, 27, 90],
                        ]])->options([
                            'showScale' => true,
                            'scaleShowGridLines' => false,
                            'scaleGridLineColor' => 'rgba(0,0,0,.05)',
                            'scaleGridLineWidth' => 1,
                            'scaleShowHorizontalLines' => true,
                            'scaleShowVerticalLines' => true,
                            'bezierCurve' => true,
                            'bezierCurveTension' => 0.3,
                            'pointDot' => false,
                            'pointDotRadius' => 4,
                            'pointDotStrokeWidth' => 1,
                            'pointHitDetectionRadius' => 20,
                            'datasetStroke' => true,
                            'datasetStrokeWidth' => 2,
                            'datasetFill' => true,
                            'legendTemplate' => '<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].lineColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>',
                            'maintainAspectRatio' => false,
                            'responsive' => true,
                        ]);

    return $this->render('home');
}
<div class="row">
    <div class="col-md-6">
        <div class="box box-info">
            <div class="box-header">
                <h3 class="box-title">Area Chart</h3>
            </div>
            <div class="box-body">
                {!! ChartJS::renderCanvas('areaChart') !!}
            </div>
        </div>
    </div>
</div>

<script src="//cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js"></script>

{!! ChartJS::renderScripts('areaChart') !!}

Testing

$ phpunit

Security

If you discover a security vulnerability within this package, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.

Credits

This project exists thanks to all the people who contribute.

License

Mozilla Public License Version 2.0 (MPL-2.0).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].