truncating series labels on a chart

Stimulsoft Reports.WEB discussion
Post Reply
erikbrandvig
Posts: 25
Joined: Tue Apr 26, 2011 1:01 pm
Location: Vista, CA

truncating series labels on a chart

Post by erikbrandvig »

i am using reports.web and creating this report using the flash builder.

i can truncate a double field in a databand using the expression builder.

when i open up the series editor for my chart and attempt to set the "Value" of a chart to the same truncated form of the value in my datasource, i recieve an error "CS0103 : The name Truncate does not exist in the current context"

should i be truncating this value elsewhere and then passing the truncated value to my datasource instead?

thanks
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

truncating series labels on a chart

Post by Jan »

Hello,

Please try to replace Truncate function by Math.Round(value, decimal) function. For example:

Code: Select all

Math.Round(myvalue, 2)
Thank you.
Post Reply