如何在googleCharts中设置列的颜色?

时间:2016-01-28 12:10:54

标签: r google-visualization shiny

  gvisColumnChart(df,options = list(gvis.editor="Edit this chart!",width=500,height=500,colors=df$Color))

如何设置一个向量来说明我想要的图表中哪些颜色?

1 个答案:

答案 0 :(得分:0)

浏览此链接

<?php

 //src/AppBundle/Entity/CustomerRepository.php

use Symfony\Bridge\Doctrine\Security\User\UserloadInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use Doctrine\ORM\EntityRepository;

class CustomerRepository extends EntityRepository implements   UserLoaderInterface
{

public function loadUserByUsername($email)
  {
  $user = $this->createQueryBuilder('c')
    ->where('c.customer_email = :email')
    ->setParameter('email', $email)
    ->getQuery()
    ->getOneOrNullResult();

    if(null === $user)
    {
      $message = sprintf(
        'Unable to find an active user AppBundle:User object identified by "%s".',
        $email
      );
      throw new UsernameNotFoundException($message);

    }

    return $user;
}
}

https://developers.google.com/chart/interactive/docs/customizing_charts