Print Page | Close Window

Chart legend in report control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17336
Printed Date: 21 November 2024 at 9:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Chart legend in report control
Posted By: ABuenger
Subject: Chart legend in report control
Date Posted: 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



Replies:
Posted By: Oleg
Date 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


Posted By: ABuenger
Date 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


Posted By: ABuenger
Date Posted: 28 September 2010 at 5:33pm
Originally posted by oleg oleg wrote:

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>


Hello Oleg,

how do you calculate the gradient colors at runtime?

Andre



-------------
Codejock support


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net