We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Chart Rendering performance issues

Thread ID:

Created:

Updated:

Platform:

Replies:

119692 Jul 22,2015 08:26 AM UTC Jul 22,2015 09:26 AM UTC JavaScript 2
loading
Tags: ejChart
Rob ONeill
Asked On July 22, 2015 08:26 AM UTC

Hi,
We are creating Charts using angularjs, but the performance seems really poor rendering the chart. Is there a better way to create / render the chart to increase performance. Below is how we create the chart and populate it

 <div id="chartInContext" class="chartInContext" ng-show="showChart"
             ej-chart
             e-locale="locale"
             e-canresize="true"
             e-enableanimation="false"
             e-enablecanvasrendering="true"
             e-zooming-enable="true"
             e-zooming-enablemousewheel="true"
             e-title-font-size="12px"
             e-series="chartSeriesCollection"
             e-commonseriesoptions-datasource="dataSource"
             e-commonseriesoptions-xname="timestamp"
             e-commonseriesoptions-yname="value"
             e-commonseriesoptions-type="line"
             e-primaryxaxis-valuetype="datetime"
             e-primaryxaxis-labelformat="localeDateFormat"
             e-primaryxaxis-majorgridlines-visible="false"
             e-primaryxaxis-font-size="8px"
             e-primaryxaxis-edgelabelplacement="shift"
             e-primaryxaxis-labelintersectaction="rotate45"
             e-primaryyaxis-valuetype="double"
             e-legend-visible="true"
             e-commonseriesoptions-tooltip-visible="true"
             e-commonseriesoptions-tooltip-format="#series.name#"
             e-annotations-content="chartSubTitle">
        </div>

        $scope.$on("chartDataRetrieved", function (event, chartData) {
            $scope.showChart = true;
            $scope.showError = false;
            var chartSeriesCollection = [];
            angular.forEach(chartData.dataSeries, function (value, key) {
                var chartSeries = {
                    dataSource: value.dataPoints,
                    name: value.seriesName
                }
                chartSeriesCollection.push(chartSeries);
            });
            $scope.chartSeriesCollection = chartSeriesCollection;
            $scope.isLoading = false;
        });

Cheers ... Rob.

Rob ONeill
Replied On July 22, 2015 08:56 AM UTC

Sorry no real issue, we were doing an angular.copy() on the data when we retrieved it from the database, this was causing the delay.

Vinothkumar Arumugam [Syncfusion]
Replied On July 22, 2015 09:26 AM UTC

Hi Rob,
Thanks for using Syncfusion products.
Please let us know if you need any assistance.
Thanks,
Vinothkumar Arumugam.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;