Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

v1.1.0

Compare
Choose a tag to compare
@jtraulle jtraulle released this 29 Jun 11:33
· 6 commits to master since this release

Added features

➕ can pass array as fifth parameter to serie array to specify styling options for bar charts
         🌎 refer to Colored and Styled Bar Chart [⧉ plot.ly reference] for possible options


Example

<?php

$fruits = ['Apples', 'Tomatoes', 'Bananas', 'Cherries'];
$ripes = [38, 22, 55, 96];
$unripes = [11, 15, 22, 10];
$series = [
    [$fruits, $ripes, 'Ripes', null, ['color' => '66CC66']], 
    [$fruits, $unripes, 'Unripes', null, ['color' => 'FF9999']]
];

echo $this->DrawChart->stackedBarChart($series);