php-sparkline
php-sparkline copied to clipboard
Generate GitHub style sparkline graphs with PHP
Add support for day/hour/month interval instead of harcoded day
could you please add sup for laravel 11
Fixes #4 an issue where the SparkLine will only show SparkLineDay objects whose date does not differ from the current date by more than X days. Where X is the...
I used the example of the docs: ```php $sparkLine = SparkLine::new(collect([ new SparkLineDay( count: 1, day: new DateTimeImmutable('2022-01-01') ), new SparkLineDay( count: 2, day: new DateTimeImmutable('2022-01-02') ), new SparkLineDay( count:...
Should the rendered svg also include the namespace? `
In version 1 was feature, where this library calculated missing dates. I miss this feature in version 2.0. It was importatnt feature. Do you plan add some helpers to this...
It appears that if you have all zero values then it throws an exception when you make the svg for attempting to divide by zero. ``` new SparkLine(0, 0, 0,...