Group databand with chart

Stimulsoft Reports.WEB discussion
Post Reply
luan.maciel
Posts: 24
Joined: Thu Feb 14, 2019 11:57 am

Group databand with chart

Post by luan.maciel »

I have a table

Nome Nota ContNota
Teste1 5 1
Teste1 6 1
Teste1 7 1
Teste 2 6 1
Teste 2 7 2
CreateChart.PNG
CreateChart.PNG (27.93 KiB) Viewed 3692 times
When I use "GroupHeaderBand", the values are ok, and my conditional is working.
But my chart are using all databand.
VisualizationChart.PNG
VisualizationChart.PNG (20.54 KiB) Viewed 3691 times
What can I do in this case?
Attachments
VisualizationChart.PNG
VisualizationChart.PNG (20.54 KiB) Viewed 3691 times
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Group databand with chart

Post by Lech Kulikowski »

Hello,

GoupHeaderBand is not supported for Chart component, you should use master-detail construction instead grouping in that case:
https://demo.stimulsoft.com/#Net/ChartOnDataband

Thank you.
luan.maciel
Posts: 24
Joined: Thu Feb 14, 2019 11:57 am

Re: Group databand with chart

Post by luan.maciel »

I'm using master, but when I used a Pie chart, I received this error:

em System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
em Stimulsoft.Report.Chart.StiPieSeriesCoreXF.RenderSeries(StiContext context, RectangleF rect, StiAreaGeom geom, IStiSeries[] seriesArray) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report\Chart\Core\Series\Pie\StiPieSeriesCoreXF.cs:linha 610
em Stimulsoft.Report.Chart.StiPieAreaCoreXF.RenderSeries(StiContext context, RectangleF rect, StiAreaGeom geom, List`1 seriesCollection) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report\Chart\Core\Area\Pie\StiPieAreaCoreXF.cs:linha 85
em Stimulsoft.Report.Chart.StiPieAreaCoreXF.Render(StiContext context, RectangleF rect) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report\Chart\Core\Area\Pie\StiPieAreaCoreXF.cs:linha 57
em Stimulsoft.Report.Chart.StiChartCoreXF.Render(StiContext context, RectangleF rect, Boolean useMargins) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report\Chart\Core\StiChartCoreXF.cs:linha 140
em Stimulsoft.Report.Export.StiChartSvgHelper.WriteChart(XmlTextWriter writer, StiSvgData svgData, Single zoom, Boolean needAnimation) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report\Export\Services\Helpers\StiChartSvgHelper.cs:linha 72
em Stimulsoft.Report.Export.StiHtmlExportService.PrepareChartData(StiHtmlTextWriter writer, StiChart chart, Double width, Double height) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report\Export\Services\Htmls\StiHtmlExportService.cs:linha 2147
em Stimulsoft.Report.Export.StiHtmlTableRender.RenderTable(Boolean renderStyles, String backGroundImageString, Boolean useBookmarks, Boolean exportBookmarksOnly, Hashtable cssStyles, Boolean watermarkShowBehind) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report\Export\Tools\StiHtmlTableRender.cs:linha 1643
em Stimulsoft.Report.Export.StiHtmlExportService.ExportHtml(StiReport report, StiHtmlTextWriter writer, StiHtmlExportSettings settings, StiPagesCollection pages) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report\Export\Services\Htmls\StiHtmlExportService.cs:linha 3440
em Stimulsoft.Report.Export.StiHtmlExportService.ExportHtml(StiReport report, Stream stream, StiHtmlExportSettings settings) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report\Export\Services\Htmls\StiHtmlExportService.cs:linha 2554
em Stimulsoft.Report.Web.StiReportHelper.GetReportPage(StiReport report, StiHtmlExportService service, Int32 pageIndex, StiRequestParams requestParams) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report.Web\Helpers\StiReportHelper.cs:linha 809
em Stimulsoft.Report.Web.StiReportHelper.GetPagesArray(StiReport report, StiRequestParams requestParams) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report.Web\Helpers\StiReportHelper.cs:linha 852
em Stimulsoft.Report.Web.StiReportHelper.ViewerResult(StiRequestParams requestParams, StiReport report) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report.Web\Helpers\StiReportHelper.cs:linha 1012
em Stimulsoft.Report.Mvc.StiMvcViewer.GetReportResult(StiRequestParams requestParams, StiReport report) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report.Mvc\Viewer\StiMvcViewer.Actions.cs:linha 66
em Stimulsoft.Report.Mvc.StiMvcViewer.GetReportResult(StiReport report) na D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report.Mvc\Viewer\StiMvcViewer.Actions.cs:linha 54
em Cofco.Controllers.ViewerReportController.GetReport(Nullable`1 preliminarIncidenteId, Nullable`1 investigacaoIncidenteId, String reports) na C:\Projeto\COFCO\COFCO SSMA Oficial\SST-SP3_H4_HousekeepingPDF\Cofco\Controllers\ViewerReportController.cs:linha 198

But when I used "Column" its Ok
VisualizationChartColumn.PNG
VisualizationChartColumn.PNG (12.04 KiB) Viewed 3511 times
What can I do?
luan.maciel
Posts: 24
Joined: Thu Feb 14, 2019 11:57 am

Re: Group databand with chart

Post by luan.maciel »

Now its done, but I need turn visible in legend value 0 (zero).

Example:

Nota | Count
5 1
6 1
7 1
8 0
NA 0

8 and NA doesn't visible. how can I do?
VisualizationChartZero.PNG
VisualizationChartZero.PNG (6.99 KiB) Viewed 3510 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Group databand with chart

Post by HighAley »

Hello.

Unfortunately, it's impossible to do right now.
But we will add the Show Zero property to the Pie Series in our next build.

Thank you.

Ticket reference: #8052
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Group databand with chart

Post by HighAley »

Hello.

We have added the Show Zero property.
This property will be available in our next build.
The build should be available this week.

Thank you.
luan.maciel
Posts: 24
Joined: Thu Feb 14, 2019 11:57 am

Re: Group databand with chart

Post by luan.maciel »

HighAley wrote: Mon Mar 25, 2019 6:18 am Hello.

We have added the Show Zero property.
This property will be available in our next build.
The build should be available this week.

Thank you.
Thanks!
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Group databand with chart

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need any help.

Thank you.
Post Reply