Calculated expression as chart series value
Posted: Thu Sep 29, 2011 5:36 am
Hello guys.
I am having trouble setting a column chart in a report.
Let's say i have a dataset Customers with 3 columns: 'Name', 'Income', 'expense'.
I'm trying to design a chart that displays the balance of each customer:
So in my chart series, i set argument column to 'Name' and I set value expression as '{Income + expense}.
When i go to preview, i have the following exception:
ArgumentError: Error #2015: BitmapData non valide.
at flash.display::BitmapData/ctor()
at flash.display::BitmapData()
at stimulsoft.flex.graphics::StiGraphics/drawWYSIWYGText()[D:\.Builder\temp\Stimulsoft_Base\stimulsoft\flex\graphics\StiGraphics.as:1162]
at stimulsoft.report.painters::StiContextPainter/drawTextGeom()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\StiContextPainter.as:328]
at stimulsoft.report.painters::StiContextPainter/render()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\StiContextPainter.as:216]
at stimulsoft.report.painters::StiContext/render()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\StiContext.as:30]
at stimulsoft.report.painters.components::StiChartPainter/drawChart()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\components\StiChartPainter.as:48]
at stimulsoft.report.painters.components::StiChartPainter/paintChart()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\components\StiChartPainter.as:70]
at stimulsoft.report.painters.components::StiChartPainter/paint()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\components\StiChartPainter.as:138]
at stimulsoft.report.components::StiComponent/paint()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\components\StiComponent.as:792]
at stimulsoft.report.painters.components::StiContainerPainter/paintComponents()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\components\StiContainerPainter.as:167]
at stimulsoft.report.painters.components::StiPagePainter/paint()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\components\StiPagePainter.as:366]
at stimulsoft.report.components::StiComponent/paint()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\components\StiComponent.as:792]
at stimulsoft.viewer.visual::StiPageVisual/drawPage()[D:\.Builder\temp\Stimulsoft_ViewerFx\stimulsoft\viewer\visual\StiPageVisual.as:202]
at stimulsoft.viewer.visual::StiPageVisual/updateDisplayList()[D:\.Builder\temp\Stimulsoft_ViewerFx\stimulsoft\viewer\visual\StiPageVisual.as:148]
at mx.core::UIComponent/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:8989]
at mx.core::Container/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:3298]
at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:819]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Did i miss something? In the series, i did set the datasource and in the series, i only set value column and value expression.
P.S: values are decimal.
Thanx in advance for your help.
I am having trouble setting a column chart in a report.
Let's say i have a dataset Customers with 3 columns: 'Name', 'Income', 'expense'.
I'm trying to design a chart that displays the balance of each customer:
So in my chart series, i set argument column to 'Name' and I set value expression as '{Income + expense}.
When i go to preview, i have the following exception:
ArgumentError: Error #2015: BitmapData non valide.
at flash.display::BitmapData/ctor()
at flash.display::BitmapData()
at stimulsoft.flex.graphics::StiGraphics/drawWYSIWYGText()[D:\.Builder\temp\Stimulsoft_Base\stimulsoft\flex\graphics\StiGraphics.as:1162]
at stimulsoft.report.painters::StiContextPainter/drawTextGeom()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\StiContextPainter.as:328]
at stimulsoft.report.painters::StiContextPainter/render()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\StiContextPainter.as:216]
at stimulsoft.report.painters::StiContext/render()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\StiContext.as:30]
at stimulsoft.report.painters.components::StiChartPainter/drawChart()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\components\StiChartPainter.as:48]
at stimulsoft.report.painters.components::StiChartPainter/paintChart()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\components\StiChartPainter.as:70]
at stimulsoft.report.painters.components::StiChartPainter/paint()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\components\StiChartPainter.as:138]
at stimulsoft.report.components::StiComponent/paint()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\components\StiComponent.as:792]
at stimulsoft.report.painters.components::StiContainerPainter/paintComponents()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\components\StiContainerPainter.as:167]
at stimulsoft.report.painters.components::StiPagePainter/paint()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\painters\components\StiPagePainter.as:366]
at stimulsoft.report.components::StiComponent/paint()[D:\.Builder\temp\Stimulsoft_Report\stimulsoft\report\components\StiComponent.as:792]
at stimulsoft.viewer.visual::StiPageVisual/drawPage()[D:\.Builder\temp\Stimulsoft_ViewerFx\stimulsoft\viewer\visual\StiPageVisual.as:202]
at stimulsoft.viewer.visual::StiPageVisual/updateDisplayList()[D:\.Builder\temp\Stimulsoft_ViewerFx\stimulsoft\viewer\visual\StiPageVisual.as:148]
at mx.core::UIComponent/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:8989]
at mx.core::Container/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\core\Container.as:3298]
at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:819]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Did i miss something? In the series, i did set the datasource and in the series, i only set value column and value expression.
P.S: values are decimal.
Thanx in advance for your help.