LegendStyle图表饼 [英] LegendStyle Chart Pie

查看:58
本文介绍了LegendStyle图表饼的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在那里

我有一个动态图表(运行时已更改),
图表每30秒刷新一次(发布到WebService).
想要以不同的颜色表示LegendItems中的值
取决于值"
例如:

键-值
A-0
B-1
C-1
D-0
E-1

现在在图表中,我得到每个键的不同颜色,这很好.
但我想通知一下,如果值是"0"
比()A,D的字体颜色在图例中为红色




在此先谢谢
我不确定我是否理解您的问题,但是如果我愿意,解决方案不是创建系统颜色的集合,并且将字体颜色设置为ColorArry(N)

或者,如果您确定只使用0和1,则可以使用简单的If子句满足您的需要.


嗨okaman
感谢您的快速解答.

很抱歉,我不太清楚

我试图再次解释我的问题,
在我的页面中,图表一直在变化,
和图表颜色都很好(当然我可以控制颜色).

我的问题是控制图例.
当某些a,b,c,d键为0时,我需要以某种方式标记图例.
在图例中,我想插入一个像这样的网格:

A | 0 |红色矩形(也许图标或字体颜色=红色)
B | 1 |
C | 1 |
D | 0 |红色矩形(可能是图标或字体颜色=红色)

我会很感激的
如果您对此问题有一些代码
再次感谢
roni


hi there

i have a dynamic chart(Changed in run time),
and the chart is Refreshing Every 30 Seconds (post to a WebService).
Want To Represent the Value in the LegendItems in Diffrent Colors
Depending on "Value"
for Example:

key -- value
A - 0
B - 1
C - 1
D - 0
E - 1

now in the chart i get Diffrent Colors For Each Key and it''s fine.
But I Want To Notifay that if the value is ''0''
than the ()A,D The Font Color Will be RED in the Legend




Thanks In advance
roni

解决方案

I''m not sure that I understand your question, but if i do, wouldn''t one solution be to create a collection of system colors and set the font color to ColorArry(N)

Or, if you are sure that you are going to only use 0 and 1, a simple If clause will give you what you need.


hi okaman
thanks for Your Quick Answer.

sory ,that i''m not so clear

i try to explain again my problem,
in my page i have chart that changed all the time,
and the chart colors ars fine (of course i can cotroled the colors).

my problem is to controling the legend .
when some of the a,b,c,d keys is 0 then i need to mark somehow the legend.
in the legend i want to insert a grid like this:

A | 0 |red rectangle(maybe icon or the font color = red)
B | 1 |
C | 1 |
D | 0 |red rectangle (maybe icon or the font color = red)

i will be Grateful
if u have some code for this question
thanks again
roni


这篇关于LegendStyle图表饼的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆