scopdrag / laravel-google-chart

This package offers simple and easy integration of google charts with laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

qedpro10 opened this issue · comments

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:
  • ...
  • ...