glicktomer
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by glicktomer
-
-
Hi, what i'm trying to do is like this :
I got a grid with some columns, and a chart side to it , the chart is showing division between the people in the grid
someone1 value1
someone2 value2
exc..
i want to highlight in the chart the relevant part of the pie that got the same value as the selected row , what i don't know is how to find that part at runtime
Thanks ahead
tomer
Highlighting help
in Windows Forms
Posted
Hi , thanks
I have already figured it out just the same as you wrote :-)
only i had to find the preticular one to highlight and it was a little challange but i did like this (if it looks fishy please tell me):
chartPie.OpenData(COD.Values, 0, ((DataTable)chartPie.DataSource).Rows.Count + 1);
string name = GetEmpName(}
int j = 0;
while (j < ((DataTable)chartPie.DataSource).Rows.Count)
{
if (chartPie.Legend[j] == name)
{
chartPie.Highlight.HighlightItem(this.chartPie, new HighlightEventArgs(SoftwareFX.ChartFX.Base.HighlightModes.On | SoftwareFX.ChartFX.Base.HighlightModes.Marker | SoftwareFX.ChartFX.Base.HighlightModes.Dimmed | SoftwareFX.ChartFX.Base.HighlightModes.PointChange | SoftwareFX.ChartFX.Base.HighlightModes.SeriesChange | SoftwareFX.ChartFX.Base.HighlightModes.AttributeChange, 0, j));
break;
}
j++;
}
chartPie.CloseData(COD.Values);