Page 1 of 1

truncating series labels on a chart

Posted: Tue May 17, 2011 12:35 pm
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

truncating series labels on a chart

Posted: Wed May 18, 2011 8:22 am
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.