Jump to content

 

Photo

'Infinity' is not a valid value for property 'Left'


  • Please log in to reply
7 replies to this topic

#1 raams

raams

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 21 June 2012 - 01:03 PM

Hi,

I am using WPF visifire version 4.1.4.0 (non-trial). We used visifire for StepLine and Area charts. My application getting crashed and exception is 'Infinity' is not a valid value for property 'Left'. xaml is below.


<vc:Chart x:Name="_chart" Width="500" Height="165" BorderBrush="Gray" BorderThickness=".5" IndicatorEnabled="False" ScrollingEnabled="False" ZoomingEnabled="False">
<vc:Chart.AxesX>
<vc:Axis ValueFormatString="{Binding FormatString}" IntervalType="{Binding IntervalType}" Interval="{Binding Interval}" AxisMinimum="{Binding AxisMinValue}" AxisMaximum="{Binding AxisMaxValue}"></vc:Axis>
</vc:Chart.AxesX>
<vc:Chart.AxesY>
<vc:Axis Title="{Binding YAxisTitle}">
</vc:Axis>
</vc:Chart.AxesY>
<vc:Chart.Legends>
<vc:Legend Reversed="True"></vc:Legend>
</vc:Chart.Legends>
<vc:Chart.Series>
<vc:DataSeries RenderAs="Area" XValueType="Date" Color="{DynamicResource AreaChartGradient}" YValueFormatString="#0.00" ToolTipText="#XValue #YValue" LineThickness="1" LegendText="text" SelectionEnabled="True" DataSource="{Binding PCDataPoints}" Bevel="False">
<vc:DataSeries.DataMappings>
<vc:DataMapping MemberName="XValue" Path="Date"></vc:DataMapping>
<vc:DataMapping MemberName="YValue" Path="Value"></vc:DataMapping>
</vc:DataSeries.DataMappings>
</vc:DataSeries>
<vc:DataSeries RenderAs="StepLine" MarkerEnabled="False" XValueType="Date" Color="{DynamicResource LineChartGradient}" YValueFormatString="#0.00" ToolTipText="#XValue #YValue" LegendText="text" LegendMarkerType="Line" LineThickness="2" SelectionEnabled="True" DataSource="{Binding IPDataPoints}">
<vc:DataSeries.DataMappings>
<vc:DataMapping MemberName="XValue" Path="Date"></vc:DataMapping>
<vc:DataMapping MemberName="YValue" Path="Data"></vc:DataMapping>
</vc:DataSeries.DataMappings>
</vc:DataSeries>
</vc:Chart.Series>
</vc:Chart>


I am binding all the values but still getting the exception. I have attached the exception details. Please let me know what might be the cause.

Thanks,
raams

#2 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,587 posts
  • Gender:Male
  • Location:Bangalore

Posted 22 June 2012 - 04:26 AM

Raams,

Can you please provide the values (Date and Data) you are binding to the series? Also, I would suggest you to try the latest version of Visifire and check.

Regards,
Vivek
Team Visifire


#3 raams

raams

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 22 June 2012 - 07:05 AM

Hi Vivek,

Thanks for reply.

I pass hundreds of data points (around 300) like below

21-Jun-11 12:00:00 AM - 129.79981
22-Jun-11 12:00:00 AM - 131.5
23-Jun-11 12:00:00 AM - 119.39991
24-Jun-11 12:00:00 AM - 152.39991
......

One more interesting thing is, right now I am getting this exception in only one machine with Windows 7 Home Premium and .net 4.0 installed. In all other machines it works well. I wanted to know why I am getting this exception in that machine only where it works well in all other machines.

Thanks,

#4 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,587 posts
  • Gender:Male
  • Location:Bangalore

Posted 25 June 2012 - 05:14 AM

I did not find such issue with the above data. Can you please open Region and Language Settings window in that machine and check what DateTime format is set? Also check the same in other machines as well.

Regards,
Vivek
Team Visifire


#5 marizbarnes

marizbarnes

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 15 August 2012 - 01:48 AM

Where is the Region and Language settings?

_____________________
Unique Content Provides you with Information on affiliate marketing program That Only Lots of people Know Exist

#6 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,587 posts
  • Gender:Male
  • Location:Bangalore

Posted 16 August 2012 - 04:11 AM

You can search for Regional and Language settings in your start-up programs.

Regards,
Vivek
Team Visifire


#7 raams

raams

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 06 September 2012 - 06:32 AM

I did not find such issue with the above data. Can you please open Region and Language Settings window in that machine and check what DateTime format is set? Also check the same in other machines as well.


Hi vivek,

I have got same problem again and Visifire throwing exception "String was not recognized as a valid DateTime". When I changed datetime format under "Region and Language settings", it starts working well.

Why visifire does not support all datetime formats? Do we need to take care about all different datetime formats while using visifire? Please let me know as it is crucial for me.

Thanks in Advance.

Thanks,
rams

#8 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,587 posts
  • Gender:Male
  • Location:Bangalore

Posted 07 September 2012 - 04:23 AM

Rams,

Visifire supports input string only in the en-us format. But chart will be rendered depending upon the current culture.

Regards,
Vivek
Team Visifire





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users