Set LineGraph description in xaml

Oct 27, 2010 at 7:56 PM
Edited Oct 27, 2010 at 7:58 PM

Hi

I'm trying to set the description (for the legend) in the xaml where I add my LineGraph

 

<Charting2:TimeChartPlotter>
<Charting2:LineGraph DataSource="{Binding InOctetsDataSource}" Description="In Octets"/>

<Charting2:Header Content="Octets"/>
<Charting2:VerticalAxisTitle Content="Packets"/>
<Charting2:HorizontalAxisTitle Content="Date"/>
</Charting2:TimeChartPlotter>

 

and when I try to do this I get an error

"'Description' type does not have a public TypeConverter class."

Do I need to create a converter to set the description in the xaml?? Is there a different property I should be setting?

Thanks in advance


 

Oct 28, 2010 at 5:20 PM

Answering my own question but in case other people were stuck like me, you can get around it doing....

 

<D3:TimeChartPlotter Width="500" Height="500">
              
 <D3:LineGraph DataSource="{Binding InOctetsDataSource}">
    <D3:ViewportElement2D.Description>
      <D3:PenDescription DescriptionString="Test"/>
    </D3:ViewportElement2D.Description>
  </D3:LineGraph>
              
  <D3:Header Content="Octets"/>
  <D3:VerticalAxisTitle Content="Packets"/>
  <D3:HorizontalAxisTitle Content="Date"/>
</D3:TimeChartPlotter>

Editor
Nov 7, 2010 at 9:13 AM

Hi!

My name is Mikhail Brinchuk, and I am a developer of DynamicDataDisplay.

I'm searching now a remote job, so if you or your company can offer it to me, I will be very grateful.

If you want to customize DynamicDataDisplay somehow, I can help you to do it.

My CV is here - https://sites.google.com/site/thecentury/

Best regards,

Mikhail.