Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
daredloco committed Aug 7, 2023
2 parents 0a82968 + b98a640 commit be768db
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,31 @@ composer require helvetitec/lagoon-charts:~1.0

## Usage

### Prepare View
Important, since Version 2.2 you will need to add @lagoonScripts and @lagoonStyles to your layouts!

Add Styles:
```blade
@lagoonStyles <!-- This will add a small style part which will cause tooltipps stop cliping when hover over with the mouse -->
```

CoreCharts:
```blade
@lagoonScripts('en') <!-- The only parameter needed is the localization parameter, you can use any language recognized by Google -->
@lagoonScripts({{ app()->getLocale() }}) <!-- This will set the localization to the locale set in Laravel -->
```

Gantt Charts:
```blade
@lagoonScripts('en', 'gantt') <!-- To make Gantt Charts working, you'll need to load the package -->
@lagoonScripts('en', ['corechart', 'gantt']) <!-- If you have multiple chart types, add them as an array -->
```

Timeline Charts:
```blade
@lagoonScripts('en', 'timeline') <!-- To make Timeline Charts working, you'll need to load the package -->
@lagoonScripts('en', ['corechart', 'timeline']) <!-- If you have multiple chart types, add them as an array -->
```

### Pie Chart

Expand Down

0 comments on commit be768db

Please sign in to comment.