![]() |
Chart legend in report control |
Post Reply
|
| Author | |
ABuenger
Newbie
Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
Quote Reply
Topic: Chart legend in report controlPosted: 27 September 2010 at 11:10am |
|
Hi,
how can I draw the legend markers in the report control? See mock up below. Andre ![]() ![]() |
|
|
Codejock support
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 September 2010 at 1:10am |
|
Hi,
Can use markup: <Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'> <Grid Width='19' Height='11'> <Line Stroke='#b26c00' X2='19' Y1='5' Y2='5'/> <Ellipse Width='11' Height='11' Fill='Red' Stroke='#824900'> <Ellipse.Fill> <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5"> <GradientStop Color="#dd8a00" Offset="0"/> <GradientStop Color="#c97b00" Offset="1"/> </LinearGradientBrush> </Ellipse.Fill> </Ellipse> </Grid> </Page> |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
ABuenger
Newbie
Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 September 2010 at 6:52am |
|
Thanks Oleg.
Is it possible to get the markup from the legend items and pass it to the report control? Could you add a method to the chart control where I pass the marker type, size and color and get the markup in return? marker.GetMarkup(type, size, color); |
|
|
Codejock support
|
|
![]() |
|
ABuenger
Newbie
Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 September 2010 at 5:33pm |
Hello Oleg, how do you calculate the gradient colors at runtime? Andre |
|
|
Codejock support
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 September 2010 at 1:21am |
|
Hi,
GetContent()->GetAppearance()->GetPalette()->GetColor(m_pSeries->GetPaletteIndex()); GetContent()->GetAppearance()->GetPalette()->GetColor2(m_pSeries->GetPaletteIndex()); |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |