2017 © Pedro Peláez
 

symfony-bundle amcharts-bundle

Symfony-bundle for building amcharts with php code

image

kalamurda/amcharts-bundle

Symfony-bundle for building amcharts with php code

  • Wednesday, November 29, 2017
  • by Igor-Men
  • Repository
  • 1 Watchers
  • 2 Stars
  • 73 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 1 % Grown

The README.md

, (*1)

symfony-amcharts

Already implemented charts:
3d funnel chart
funnel chart
combined bullet column line chart, (*2)

AmCharts for symfony Build your chart with twig and php only! You can create reusable code., (*3)

How to get started

Installation

  1. Add the following to your composer.json file, (*4)

       "require": {
           ...
           "kalamurda/amcharts-bundle": "dev-master@dev"
           ...
       }
    
  2. Run php composer.phar update "kalamurda/amcharts-bundle", (*5)

  3. Register the bundle in your app/AppKernel.php:, (*6)

    php <?php ... public function registerBundles() { $bundles = array( ... new \IK\AmChartsBundle\IKAmChartsBundle(), ... ); ..., (*7)

Usage

  1. phpController, (*8)

    $preperadArr = [
        [
            'column1' => 5,
            'column2' => 9,
            'date' => '2017-06-01'
        ],[
            'column1' => 5,
            'column2' => 9,
            'date' => '2017-06-02'
        ],[
            'column1' => 5,
            'column2' => 9,
            'date' => '2017-06-03'
        ],
        ......
    ];
    
    $dataProvider = new DataProvider($preperadArr);
    
    $chart = new CombinedBulletColumnLineChart();
    $chart->setTheme('dark');
    $chart->setDataProvider($dataProvider);  
    
    return $this->render('default/index.html.twig', [
        'chart' => $chart
    ]);
    
    
  2. twig index.html.twig, (*9)

        ...
        <!-- Load jQuery from Google's CDN if needed -->
         <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
    
        {{ chart.libraryScripts.standart|raw }}
    
        <style>{{ chart.style }}</style>
        {{ chart.libraryScripts.theme|raw }}
        <script>{{ amchart(chart) }}</script>
    
        <div id="{{ chart.selector }}"></div>
        ...
    

for more details look examples in root directory. You can override any property., (*10)

The Versions

29/11 2017

dev-master

9999999-dev https://github.com/Igor-Men/AmChartsBundle

Symfony-bundle for building amcharts with php code

  Sources   Download

MIT

The Requires

 

by Avatar Igor-Men

symfony graph charts amcharts graphs

29/11 2017

v1.0.7

1.0.7.0 https://github.com/Igor-Men/AmChartsBundle

Symfony-bundle for building amcharts with php code

  Sources   Download

MIT

The Requires

 

by Avatar Igor-Men

symfony graph charts amcharts graphs

20/11 2017

v1.0.6

1.0.6.0 https://github.com/Igor-Men/AmChartsBundle

Symfony-bundle for building amcharts with php code

  Sources   Download

MIT

The Requires

 

by Avatar Igor-Men

symfony graph charts amcharts graphs

10/10 2017

v1.0.5

1.0.5.0 https://github.com/Igor-Men/AmChartsBundle

Symfony-bundle for building amcharts with php code

  Sources   Download

MIT

The Requires

 

by Avatar Igor-Men

symfony graph charts amcharts graphs

10/10 2017

dev-develop_branch

dev-develop_branch https://github.com/Igor-Men/AmChartsBundle

Symfony-bundle for building amcharts with php code

  Sources   Download

MIT

The Requires

 

by Avatar Igor-Men

symfony graph charts amcharts graphs

21/09 2017

dev-create_new_chart_Stacked_bar

dev-create_new_chart_Stacked_bar https://github.com/Igor-Men/AmChartsBundle

Symfony-bundle for building amcharts with php code

  Sources   Download

MIT

The Requires

 

by Avatar Igor-Men

symfony graph charts amcharts graphs

07/09 2017

v1.0.4

1.0.4.0 https://github.com/Igor-Men/AmChartsBundle

Symfony-bundle for building amcharts with php code

  Sources   Download

MIT

The Requires

 

by Avatar Igor-Men

symfony graph charts amcharts graphs

03/09 2017

v1.0.3

1.0.3.0 https://github.com/Igor-Men/AmChartsBundle

library for building amcharts with php code

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Avatar Igor-Men

symfony graph charts amcharts graphs