mch0lic/html_chart

此包已被废弃且不再维护。未建议替代包。
此包的最新版本(v1.0)没有可用的许可信息。

HTML 图表

v1.0 2012-11-15 09:18 UTC

This package is not auto-updated.

Last update: 2021-08-05 05:43:39 UTC


README

这是一个为 symfony2(PSR-0 合规)提供的简单的 HTML 图表库。该库使用 HTML 表格标签以横向条形图格式表示统计数据。

先决条件

此版本的库需要 Symfony 2.0+。

安装

安装

  1. 将依赖项添加到 deps 文件并更新 vendors
  2. 在 autoload.php 文件中注册 HtmlCharts 库

$loader->registerNamespaces(array( // 加载图表库 'HtmlChart' => DIR.'/../vendor/HtmlChart/lib', ));

使用示例

<?php

namespace Acme\DemoBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use HtmlChart\Chart;

class DefaultController extends Controller {

  public function indexAction() {
    
    <..>

    $chart_instance = new Chart();

    <..>
  }
}

?>