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.
Unfortunately, activation email could not send to your email. Please try again.

Chart Rendering performance issues

Thread ID:

Created:

Updated:

Platform:

Replies:

119692 Jul 22,2015 04:26 AM Jul 22,2015 05:26 AM JavaScript 2
loading
Tags: ejChart
Rob ONeill
Asked On July 22, 2015 04:26 AM

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 04:56 AM

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 05:26 AM

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.

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.

;