All Projects → julles → Laravel Highcharts

julles / Laravel Highcharts

Laravel 5 Highcharts Package

Projects that are alternatives of or similar to Laravel Highcharts

Fullycms
Fully CMS - Multi Language Content Management System - Laravel
Stars: ✭ 465 (+1400%)
Mutual labels:  laravel, laravel5
Twitter
Twitter API for Laravel 5.5+, 6.x, 7.x & 8.x
Stars: ✭ 755 (+2335.48%)
Mutual labels:  laravel, laravel5
Laracms
LaraCMS 是在学习 laravel ( web 开发实战进阶 + 实战构架 API 服务器) 过程中产生的一个业余作品,试图通过简单的方式,快速构建一套基本的企业站同时保留很灵活的扩展能力和优雅的代码方式,当然这些都得益Laravel的优秀设计。同时LaraCMS 也是一个学习Laravel 不错的参考示例。
Stars: ✭ 588 (+1796.77%)
Mutual labels:  laravel, laravel5
Laravel Blade
This package adds syntax definitions for the Laravel Blade engine.
Stars: ✭ 395 (+1174.19%)
Mutual labels:  laravel, laravel5
Blade Migrations Laravel
An intelligent alternative version of Laravel 5/6 Database Migrations - uses raw-sql syntax, transactions, auto-rollback, UP-DOWN-UP testing
Stars: ✭ 25 (-19.35%)
Mutual labels:  laravel, laravel5
Laravel Google Cloud Storage
A Google Cloud Storage filesystem for Laravel
Stars: ✭ 415 (+1238.71%)
Mutual labels:  laravel, laravel5
Laravel User Verification
PHP package built for Laravel 5.* to easily handle a user email verification and validate the email
Stars: ✭ 755 (+2335.48%)
Mutual labels:  laravel, laravel5
Cors
🔮Supported(Laravel/Lumen/PSR-15/Swoft/Slim/ThinkPHP) - PHP CORS (Cross-origin resource sharing) middleware.
Stars: ✭ 266 (+758.06%)
Mutual labels:  laravel, laravel5
Barryvanveen
📰 Personal blog of Barry van Veen. Focuses on Laravel Framework, website optimization and natural computing.
Stars: ✭ 24 (-22.58%)
Mutual labels:  laravel, laravel5
Angular5.2 Laravel5.6
Angular 5.2 and Laravel 5.6 Authentication and CRUD
Stars: ✭ 17 (-45.16%)
Mutual labels:  laravel, laravel5
Coastercms
The repository for Coaster CMS (coastercms.org), a full featured, Laravel based Content Management System
Stars: ✭ 380 (+1125.81%)
Mutual labels:  laravel, laravel5
Foocart
A Laravel 5 eCommerce application with integrated Stripe payments.
Stars: ✭ 8 (-74.19%)
Mutual labels:  laravel, laravel5
Laravel5 Jsonapi
Laravel 5 JSON API Transformer Package
Stars: ✭ 313 (+909.68%)
Mutual labels:  laravel, laravel5
Framework
The truly Laravel E-commerce Framework
Stars: ✭ 456 (+1370.97%)
Mutual labels:  laravel, laravel5
Laravel Recaptcha
Google ReCaptcha package for Laravel
Stars: ✭ 273 (+780.65%)
Mutual labels:  laravel, laravel5
Lang
List of 78 languages for Laravel Framework 4, 5, 6, 7 and 8, Laravel Jetstream , Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova and Laravel Spark.
Stars: ✭ 6,285 (+20174.19%)
Mutual labels:  laravel, laravel5
Laravel Database Encryption
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Stars: ✭ 238 (+667.74%)
Mutual labels:  laravel, laravel5
Api Generator
PHP-code generator for Laravel framework, with complete support of JSON-API data format
Stars: ✭ 244 (+687.1%)
Mutual labels:  laravel, laravel5
Laravel Widgetize
A minimal package to help you make your laravel application cleaner and faster.
Stars: ✭ 791 (+2451.61%)
Mutual labels:  laravel, laravel5
Laravel Restaurant Pos
Restaurant POS
Stars: ✭ 27 (-12.9%)
Mutual labels:  laravel, laravel5

Laravel 5 Highcharts Packages

Total Downloads License License StyleCi

Package Highcharts for Laravel 5

Installations

Add Package to composer.json

composer require muhamadrezaar/highcharts:dev-master

In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework just add the service provider and facade in config/app.php file:

Provider :

RezaAr\Highcharts\Provider::class,

Facade :

'Chart' => RezaAr\Highcharts\Facade::class,

then publish the config

php artisan vendor:publish

Basic Usage

In Controller or Other Class

<?php
    $chart1 = \Chart::title([
        'text' => 'Voting ballon d`or 2018',
    ])
    ->chart([
        'type'     => 'line', // pie , columnt ect
        'renderTo' => 'chart1', // render the chart into your div with id
    ])
    ->subtitle([
        'text' => 'This Subtitle',
    ])
    ->colors([
        '#0c2959'
    ])
    ->xaxis([
        'categories' => [
            'Alex Turner',
            'Julian Casablancas',
            'Bambang Pamungkas',
            'Mbah Surip',
        ],
        'labels'     => [
            'rotation'  => 15,
            'align'     => 'top',
            'formatter' => 'startJs:function(){return this.value + " (Footbal Player)"}:endJs', 
            // use 'startJs:yourjavasscripthere:endJs'
        ],
    ])
    ->yaxis([
        'text' => 'This Y Axis',
    ])
    ->legend([
        'layout'        => 'vertikal',
        'align'         => 'right',
        'verticalAlign' => 'middle',
    ])
    ->series(
        [
            [
                'name'  => 'Voting',
                'data'  => [43934, 52503, 57177, 69658],
                // 'color' => '#0c2959',
            ],
        ]
    )
    ->display();

    return view('welcome', [
        'chart1' => $chart1,
    ]);


?>

In Blade

<div id="chart1"></div>

{!! $chart1 !!}

Output :

alt tag

the package will generate this code in yout view :

<script src="//code.highcharts.com/highcharts.js"></script>
<script src="//code.highcharts.com/modules/series-label.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<script type="text/javascript">
    Highcharts.chart( {
    title: {
        "text": "Voting ballon d`or 2018"
    }
    , subtitle: {
        "text": "This Subtitle"
    }
    , yAxis: {
        "text": "This Y Axis"
    }
    , xAxis: {
        "categories":["Messi", "CR7", "Bambang Pamungkas", "Del Piero"], "labels": {
            "rotation":15, "align":"top", "formatter":function() {
                return this.value + " (Footbal Player)"
            }
        }
    }
    , legend: {
        "layout": "vertikal", "align": "right", "verticalAlign": "middle"
    }
    , series: [ {
        "name": "Voting", "data": [43934, 52503, 57177, 69658]
    }
    ], chart: {
        "type": "line", "renderTo": "chart1"
    }
    , colors: ["#0c2959"], credits:false
}

);
</script>


cdn highcharts.js and others js only generated one time

License

https://reza.mit-license.org/

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].