Error while printing chart

Stimulsoft Reports.JS discussion
Post Reply
pavanello
Posts: 9
Joined: Wed Jan 11, 2017 6:20 pm

Error while printing chart

Post by pavanello »

Hello,

When viewing a report that contains graph, it presents the following error:
Capturar.PNG
Capturar.PNG (19.27 KiB) Viewed 2315 times
If I use this option
Appearance.chartRenderType = Stimulsoft.Viewer.StiChartRenderType.Vector;

The graph appears in the report.

What is the difference between Vector and AnimatedVector?

thank you
Attachments
rptFaturamentoCategoria.mrt
(15.46 KiB) Downloaded 126 times
dados.json
(16.6 KiB) Downloaded 135 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Error while printing chart

Post by HighAley »

Hello.

Please, check the name of the property.
The appearance should start with the small letter.

Thank you.
pavanello
Posts: 9
Joined: Wed Jan 11, 2017 6:20 pm

Re: Error while printing chart

Post by pavanello »

Hello

The question is not the syntax being incorrect, "Appearance" was written this way due to automatic correction.

The issue is that when I use the property this way it has error:
appearance.chartRenderType = Stimulsoft.Viewer.StiChartRenderType.AnimatedVector;

If I use it this way it works
appearance.chartRenderType = Stimulsoft.Viewer.StiChartRenderType.Vector;

I would like a correction because I want to use the animation in the prints.

Build 2016.3.7
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Error while printing chart

Post by Alex K. »

Hello,

We couldn't reproduce this bug.
Could you explain your issue in more details? Which browser are you use?

Thank you.
pavanello
Posts: 9
Joined: Wed Jan 11, 2017 6:20 pm

Re: Error while printing chart

Post by pavanello »

Hello,

I was able to identify the problem
In my project has a code changing "Array.prototype".

Any change I make in "Array.prototype" is "Array.prototype.x = function", "Array.prototype.Y", any modification in "Array.prototype" starts to give error, commenting this code back to work .

I can not say what interferes with Stimulsoft.Reports.js, but solved;
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Error while printing chart

Post by Alex K. »

Hello,

May be you have added some additional methods to the Array class and is not set it as enumerable: false?
Object.defineProperty(Array.prototype, 'indexOf', { enumerable: false })

We will add a new method in next prerelease build - Array.disableAllEnumerable(). You can call this new method after all declarations in the Array class. This method will fix possible troubles with Array extensions and our code.

Please contact us if you need anything help.

Thank you.
Post Reply