fxcosta / laravel-chartjs

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

I need help with options #25

Closed webmasterowi closed 7 years ago

webmasterowi commented 7 years ago

Hello, Please can you give me some examples of how to work with options?? believe me, I spend hours trying to making work, this is the code that I'm working with options: { scales: { yAxes: [{ ticks: { beginAtZero: true } }] } }

I find the way if someone needs ;) ->options( [ 'scales'=>[ 'yAxes'=>[[ 'ticks'=>[ 'beginAtZero' => true ], ]], ], ] );

Damian89 commented 7 years ago

I pushed something some days ago. You can use optionsRaw():

https://github.com/fxcosta/laravel-chartjs/pull/21

fxcosta commented 7 years ago

I'm thinking of a way to improve the library api. The tricky thing is that we are dependent on the chartjs api.

@Damian89 fez uma excelente contribuição e você pode usar opções em modo crú se tiver dificuldades com o modo arrays. Só preciso de documentar isso no readme

@Damian89, can you help me with the doc? No one better than you for this :smile: :smile:

Damian89 commented 7 years ago

@fxcosta I'm currently busy as hell with client projects, after that I'll add some info to your readme.