ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

gVis - Google Visualization Library

January 27, 2010 11:23am

Subscribe [11]
  • #16 / Jan 29, 2010 4:30pm

    naim

    7 posts

    I mean set different colors for different row - could you change that? 😊

  • #17 / Mar 03, 2010 9:34am

    Andres F.

    10 posts

    Fantastic contribution!  Tried your library yesterday and it worked like a charm!  Thanks for doing this.

    I might work on the ability to set the Gauge options easily, or if you have that planned for a future release, that would be great. 

    By the way, the wiki shows set_header, but I believe it should be set_heading… didn’t want to change it if you plan on setting it back for some reason.

    Thanks again,
    Andres

  • #18 / Mar 10, 2010 3:39pm

    Mat-Moo

    350 posts

    This is pretty neat library! Lot of options though via this library, I wanted to do filled area chart and wanted to set fill :25%. So I added to the library

    var $custom = array();
    
    function add_custom($customarray)
    {
     $this->custom = array_merge($this->custom,$customarray);
    }
    
    // mod the generate
    $data .= "chart.draw(gData, {
                height:        ".$this->height.", 
                width:      ".$this->width.",
                title:         '".$this->title."', 
                is3D:          ".$this->is3D.", 
                legend:     '".$this->legend."', ";
                
            // add additional options;
            foreach($this->custom as $option=>$value)
            {
                $data.="$option: $value,";
            }
            
            $data .="colors:     [".$this->_compile_colors()."]
            });\n";

    Then it’s pretty easy to add custom options, e.g.

    $this->gvis->add_custom(array("fill" => "25"));
  • #19 / Aug 17, 2010 2:18am

    rynp

    1 posts

    please include OrgChart… thanx…

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases