mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Some code cleanup.
This commit is contained in:
		| @@ -23,7 +23,6 @@ declare(strict_types=1); | ||||
| namespace FireflyIII\Generator\Chart\Basic; | ||||
|  | ||||
| use FireflyIII\Support\ChartColour; | ||||
| use Steam; | ||||
|  | ||||
| /** | ||||
|  * Class ChartJsGenerator. | ||||
| @@ -130,7 +129,7 @@ class ChartJsGenerator implements GeneratorInterface | ||||
|         $index = 0; | ||||
|         foreach ($data as $key => $value) { | ||||
|             // make larger than 0 | ||||
|             $chartData['datasets'][0]['data'][]            = (float)Steam::positive($value); | ||||
|             $chartData['datasets'][0]['data'][]            = (float)app('steam')->positive($value); | ||||
|             $chartData['datasets'][0]['backgroundColor'][] = ChartColour::getColour($index); | ||||
|             $chartData['labels'][]                         = $key; | ||||
|             ++$index; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user