jquery flot pie slice color
No puedo averiguar cómo conseguir flotar.pie para cambiar el color de la rebanada de pastel, solo el color de la serie. Es esto posible?
25
2 answers
Debe crear varias series de datos y establecer el color en cada serie. Vea los ejemplos de gráfico circular Flot aquí: Gráfico Circular Flot
5
Author: DarrellNorton,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-10-04 10:56:45
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-10-04 10:56:45
Debe especificar el color como parte de la matriz de datos.
Así que en lugar de
[1, 2, 3]
Lo haces
[
{data: 1, color: '#f00'},
{data: 2, color: '#0f0'},
{data: 3, color: '#00f'}
]
82
Author: Tamlyn,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-02-23 12:08:37
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-02-23 12:08:37