About the default maxPoints on PivotChart

Posted by: james.ingham on 1 September 2019, 3:23 pm EST

  • Posted 1 September 2019, 3:23 pm EST

    Hi,

    We just noticed the PivotChart only displays 100 points at the maximum, which seems to come from the default value of property maxPoints = 100:
    https://www.grapecity.com/wijmo/api/classes/wijmo_olap.pivotchart.html

    Same as maxSeries. We are just wondering why you chose 100 as the default. Is it due to performance concern? Is 100 just some arbitrary number or you think it as the best tradeoff? How risky do you think it would be if we change it to 1000?
  • Replied 2 September 2019, 5:02 pm EST

    Hi James,

    Regarding the default value:

    We have queried the dev team on this. The internal tracking id of the case is 396515. We will give you an update as soon as possible.

    Regarding setting the value to 1000:

    Yes, there will be a performance issue by setting the value to 1000. Since it is a large number, therefore, the rendering of the PivotChart will take time and performance will also decrease when other controls will be added to the webpage.
    Also, the chart will be difficult to read since there will be a lot of series and points packed together inside a small width.

    Regards,
    Ashwin
  • Replied 5 September 2019, 11:19 am EST

    Thanks for your prompt reply! Just to confirm whether this value maxPoints is only a threshold. If the graph has only 150 pints, but I set maxPoints to 1000, there shouldn't be any side effect, correct?
  • Replied 5 September 2019, 2:28 pm EST

    Hi,

    No, there will be no side effect if you set the value of maxPoints to 1000 and the data has only 150 points. The number of points in the data should be less than or equal to the maxPoints value.

    ~regards
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels