Skip to content
Snippets Groups Projects
Commit d0f103d5 authored by Kevin Hill's avatar Kevin Hill
Browse files

Merge branch '3.1-dev' into 3.1

updating version to 3.1.5
parents 425d6c37 55f06f32
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -27,7 +27,7 @@ class ChartFactory
/**
* Instance of the ChartBuilder for, well, building charts.
*
* @var \Khill\Lavacharts\Charts\ChartBuilder
* @var \Khill\Lavacharts\Builders\ChartBuilder
*/
private $chartBuilder;
 
Loading
Loading
@@ -45,6 +45,7 @@ class ChartFactory
'CandlestickChart',
'ColumnChart',
'ComboChart',
'DonutChart',
'GanttChart',
'GaugeChart',
'GeoChart',
Loading
Loading
<?php
namespace Khill\Lavacharts\Charts;
/**
* DonutChart Class
*
* A pie chart, with a hole in the center, that is rendered within the browser using SVG or VML.
* Displays tooltips when hovering over slices.
*
*
* @package Khill\Lavacharts\Charts
* @since 3.1.5
* @author Kevin Hill <kevinkhill@gmail.com>
* @copyright (c) 2017, KHill Designs
* @link http://github.com/kevinkhill/lavacharts GitHub Repository Page
* @link http://lavacharts.com Official Docs Site
* @license http://opensource.org/licenses/MIT MIT
*/
class DonutChart extends PieChart
{
/**
* Javascript chart type.
*
* @var string
*/
const TYPE = 'DonutChart';
/**
* Returns the chart visualization package.
*
* @return string
*/
public function getJsClass()
{
return 'google.visualization.PieChart';
}
}
Loading
Loading
@@ -39,7 +39,7 @@ class Lavacharts
/**
* Lavacharts version
*/
const VERSION = '3.1.4';
const VERSION = '3.1.5';
 
/**
* Locale for the Charts and Dashboards.
Loading
Loading
Loading
Loading
@@ -28,7 +28,7 @@ class Volcano
/**
* Holds all of the defined Charts.
*
* @var \Khill\Lavacharts\Charts\Chart[]
* @var \Khill\Lavacharts\Charts\Chart[][]
*/
private $charts = [];
 
Loading
Loading
@@ -39,6 +39,16 @@ class Volcano
*/
private $dashboards = [];
 
/**
* Volcano constructor
*/
public function __construct()
{
foreach (ChartFactory::getChartTypes() as $chartType) {
$this->charts[$chartType] = [];
}
}
/**
* Stores a Chart or Dashboard in the Volcano.
*
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment