Giter VIP home page Giter VIP logo

laravel-google-chart's People

Contributors

brysonreece avatar scopdrag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

laravel-google-chart's Issues

Outdated dependencies

Detailed description

I used this package with a Laravel 5.8 application but now I want to upgrade to a newer version. Unfortunately the current version of laravel-google-chart is not updated since longer time and therefor gives an error on the dependency of the illuminate/support package.
I assume more people will encounter this issue. Are there any plans to upgrade the depencies?

Context

My current implementation is a bit old, so I want to improve. I will not be the only one I assume

Possible implementation

Perhaps it could be wise to validate all dependencies

Your environment

My technical target context is Laravel 7 with php 7.3

How to add Column Chart in this API

I tried to add new chart - Column chart
also create blade file for that
below is my blade file code
but its generate Bar chart instead of Column chart

@include('LaravelGoogleChart::includes.package_loader')

<script type="text/javascript"> google.charts.setOnLoadCallback(function() { var data = google.visualization.arrayToDataTable({!!json_encode($data)!!}); var options = {!! json_encode($options) !!}; var material = new google.visualization.ColumnChart(document.getElementById('chart_{!! $id !!}')); material.draw(data, options); }); </script>

Please help to how to add more google chart in this API,

Thanks,
Kaushik

Get the following error ErrorException in FileViewFinder.php line 137: when implementing one of the examples below

So I copied the candlestick example into my laravel project

Detailed description

this function is in my controller
public function show($id) {

    $stock = Stock::find($id);

    if(!$stock) {
        Session::flash('message', 'The stock you requested could not be found.');
        return redirect('/');
    }

    $rows = [
                ['Mon', 20, 28, 38, 45],
                ['Tue', 31, 38, 55, 66],
                ['Wed', 50, 55, 77, 80],
                ['Thu', 77, 77, 66, 50],
                ['Fri', 68, 66, 22, 15]
            ];


            $options = [
                'legend' => 'none'
            ];


            $cols =[];

    return view('stocks.show')->with([
        'stock' => $stock,
        'rows' => $rows,
        'options' => $options,
        'cols' => $cols,
    ]);
}

This is part of my view

    <h1>{{ $stock->ticker }}</h1>

    <a href='/stocks/{{ $stock->id }}'><img class='logo' src='{{ $stock->logo }}' alt='Logo for {{ $stock->ticker }}'></a>

    <p>Company Website: {{ $stock->website }}</p>

    <p>Added on: {{ $stock->created_at }}</p>

    <p>Last updated: {{ $stock->updated_at }}</p>

    {{!! ChartManager::setChartType('candlestick-chart')
                    ->setOptions($options)
                    ->setCols($cols)
                    ->setRows($rows)
                    ->render() !!}}


    <a class='stockAction' href='/stocks/edit/{{ $stock->id }}'><i class='fa fa-pencil'></i></a>
    <a class='stockAction' href='/stocks/{{ $stock->id }}/delete'><i class='fa fa-trash'></i></a>

</div>

Provide a detailed description of the change or addition you are proposing.

Make it clear if the issue is a bug, an enhancement or just a question.

Context

The context is that this package doesn't seem to work after its installed.
I following the install directions and yet get this error.

Why is this change important to you? How would you use it?

How can it benefit other users?

Possible implementation

Not obligatory, but suggest an idea for implementing addition or change.

Your environment

Include as many relevant details about the environment you experienced the bug in and how to reproduce it.

  • Version used (e.g. PHP 5.6, HHVM 3):
  • Operating system and version (e.g. Ubuntu 16.04, Windows 7):
  • Link to your project:
  • ...
  • ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.