Chart series - ShowNulls always true

Stimulsoft Reports.WEB discussion
Post Reply
vineet
Posts: 69
Joined: Fri Nov 10, 2017 3:12 am

Chart series - ShowNulls always true

Post by vineet »

Hi,

I have a very simple chart. It has a column where some values can be NULL and I want to hide these data points. But, as soon as I use my custom CacheHelper class, the setting to ShowNulls within chart series is ignored and they are all printed regardless.

StiWebViewer.CacheHelper = new StimulsoftViewerCacheHelper();

CacheViewer line commented (display is correct):
Correctly hiding the NULLs
Correctly hiding the NULLs
2018-09-05_114150.jpg (32.22 KiB) Viewed 2467 times
CacheViewer line uncommented (display is wrong):
Incorrectly displaying NULLs
Incorrectly displaying NULLs
2018-09-05_165506.jpg (34.31 KiB) Viewed 2467 times
I have also attached a C# project if you want to replicate. You will have to restore packages from NuGet and build it again.

Cheers,
Vineet
Attachments
WebApplication1.zip
(3.36 MiB) Downloaded 151 times
vineet
Posts: 69
Joined: Fri Nov 10, 2017 3:12 am

Re: Chart series - ShowNulls always true

Post by vineet »

I can replicate this behaviour by setting CacheMode = "StringCache" on the WebViewer tag:

<cc1:StiWebViewer ID="StiWebViewer1" runat="server" CssClass="vwr"
OnGetReportData="StiWebViewer1_OnGetReportData"
OnGetReport="StiWebViewer1_OnGetReport"
OnViewerEvent="StiWebViewer1_OnViewerEvent"
OnExportReport="StiWebViewer1_OnExportReport"
CacheTimeout="3600"
RequestTimeout="1200"
AllowAutoUpdateCache="True"
ShowServerErrorPage="False"
ParametersPanelPosition="Top" ParametersPanelColumnsCount="2"
ShowFullScreenButton="False"
ShowFindButton="False"
ShowPrintButton="False"
ShowSaveButton="False"
ToolbarDisplayMode="Simple"
ShowAboutButton="False"
UseCompression="False"
CacheMode="StringCache"></cc1:StiWebViewer>
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Chart series - ShowNulls always true

Post by Lech Kulikowski »

Hello

Thank you for the information.
Please let us know if you need any additional help.

Thank you.
vineet
Posts: 69
Joined: Fri Nov 10, 2017 3:12 am

Re: Chart series - ShowNulls always true

Post by vineet »

Yes I do, the bug is happening as per my findings. If I don't use a custom cacheHelper and just set the CacheMode of the viewer to StringCache, "ShowNulls" is still being ignored.
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Chart series - ShowNulls always true

Post by Lech Kulikowski »

Hello,

That issue was fixed, will be available in the next release in September.

Thank you.
vineet
Posts: 69
Joined: Fri Nov 10, 2017 3:12 am

Re: Chart series - ShowNulls always true

Post by vineet »

Hi Lech, When are you releasing the next version?
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Chart series - ShowNulls always true

Post by Andrew »

Hello,

We hope to release it in the end of September, hopefully next week.

Thank you.
Post Reply