fxcosta / laravel-chartjs

Simple package to facilitate and automate the use of charts in Laravel 5.x using Chartjs v2 library
486 stars 112 forks source link

Color for tool tips is not shown for Line Chart #3

Closed AshishGupta001 closed 8 years ago

AshishGupta001 commented 8 years ago

Tool tip for Line Chart does not display the color for individual dataset. They always appear to be white though the chart is rendered in proper colors. This is not an issue with Bar and Radar charts.

Sample code:

<div class="container-fluid">
        <canvas id="BarChart" style="width:50%;"></canvas>
    </div>

    <?php
        $data = array(
            'Jan' => array(33.4, 59, 100),
            'Feb' => array(32.8, 45, 150),
            'Mar' => array(12, 38.3, 125)
        );
    ?>
    {!! app()->chartline->render("BarChart", $data) !!}
fxcosta commented 8 years ago

Fixed in 3d529fe0c65455d985e4c7bf3aef9a4d06602cee. Thanks for feedback! If u need, open the issue again!