Skip to content

Releases: icehouse-ventures/laravel-chartjs

v4.1

14 Sep 21:17
4557ac7
Compare
Choose a tag to compare

What's Changed

  • Update readme with legacy package support instructions.

  • Handling injection after domready event by @marcfowler in #22

Full Changelog: v4.0...v4.1

v4.0

10 Sep 11:35
Compare
Choose a tag to compare

This release bumps the version numbering to avoid an error where Packagist was automatically supplying Composer with the deprecated version of the package. The version bump also reflects the modernisation of:

  1. Static facade based usage in your php (Controllers, Models, Services, etc) instead of a call to the app container.

  2. Blade component call instead of a magic render function.

The legacy app container method and legacy blade render function remain available to ease the upgrade path.

Full Changelog: v1.4...v4.0

v1.4

02 Aug 21:40
Compare
Choose a tag to compare

What's Changed

We've modernised the way that the package can be called in a blade file to adopt the modern syntax and modernised the way to call the package from inside the application's php code to use a static Facade instead of calling app() all the time.

This release also fixes some edge cases for dynamic charts in Livewire where the options() were not being passed correctly.

New Contributors

Full Changelog: v1.3...v1.4

v1.3

04 Jul 22:47
Compare
Choose a tag to compare

Livewire Reactivity on Chart JS Options

Package users can now add Livewire inputs that dynamically control Chart JS options. This allows for more interactive end-user experiences such as changing a tooltip.

Wire Ignore
Remove wire ignore on main div to allow more reactivity. That removes the need for manual change update function. Chart update was bounded (which is good for single responsibility), but the bounding was too intermingled with Livewire, Alpine and the package Builder. Disadvantage of this new approach is that it’s more ‘global’ but it’s worth it for the additional reactivity. We’ve effectively moved the wire ignore to the canvas element which is actually just ignoring default livewire re-rendering. This is so that we get control of who is doing the rendering ie Chart JS.

Options Object
Alpine was working with the “Chart Data” but really only using an init call. Instead we are making Alpine explicitly responsible for the dataset and options objects. For example, this means we don’t need to explicitly account for Treemap chart types in Alpine because the dataset and options provide a rich enough context to to manage this out of the box. Options is now a first class object so Alpine can just work on the object itself.

Laravel Blade @js Helper
Single quotes and double quotes nesting can catch the JSON encode or json as string transit. The @ JS helper uses the browser / javascript native parser. Which sounds very similar to the backend JSON encode / decode but is subtly different. We may they and use @js more over time.

What's Changed

New Contributors

Full Changelog: v1.2.2...v1.3

Livewire Compatibility.

05 Jun 21:29
6a7c6ab
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.2.1...v1.2.2

Livewire Bug Fix

30 May 11:40
Compare
Choose a tag to compare

Fixed a reported bug with the Livewire component defaulting to a line chart.

Full Changelog: v1.2.0...v1.2.1

Custom Chart Types

29 May 13:52
Compare
Choose a tag to compare

Added support for custom chart type plugins using the CDN delivery method.

What's Changed

  • Added support for custom chart type plugins.
  • Create .gitattributes by @imanghafoori1 in #10

New Contributors

Full Changelog: v1.1.0...v1.2.0

Livewire Support

17 May 01:18
Compare
Choose a tag to compare

This release adds Livewire support for dynamically updating chart data in response to user input.

What's Changed

New Contributors

Full Changelog: v1.0.7...v1.1.0

Laravel 11 Support

11 Mar 09:25
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0.6...v1.0.7

Multiple date formatting plugins

30 Dec 10:18
Compare
Choose a tag to compare

Moment.js has been depreciated so there are now several date formatting libraries supported by Chartjs. This release allows you to toggle between them for easier testing and adoption (using the CDN delivery method for all Chartjs versions). Also, Luxon is now bundled with the binary / publish delivery method for version 4.