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.
Syncfusion Feedback

Bar Graph Animation not working

Thread ID:

Created:

Updated:

Platform:

Replies:

113633 Oct 3,2013 04:33 AM UTC Oct 4,2013 06:35 AM UTC JavaScript 1
loading
Tags: ejChart
Pradeep
Asked On October 3, 2013 04:33 AM UTC

This is function that renders my bar graph
// set its maxH value
    var maxH = screenH * 0.052;
    scrollH = (maxH / 100 * screenHeight) + 100;
    // max allowed height is only 480
    if (scrollH > 480) { scrollH = 480; }

    showLoadingModal("Rendering bar graph for the selected graph options.");
    var barGraphContainer = $("#graph-bar-wrapper");
    removeBarGraph(barGraphContainer);

    // initiate the bar graph
    barGraphContainer.find("#graph-bar").ejChart(
    {
        primaryXAxis:
        {
            title: { text: toTitleCase(groupValue).toUpperCase(), font: { fontFamily: 'Oswald', size: '17px' } },
            font: { size: '12px', fontFamily: 'Open Sans' },
            majorGridLines: { visible: true, color: "rgb(89,89,89)" }
        },
        primaryYAxis:
        {
            font: { size: '12px', fontFamily: 'Open Sans' },
            title: { text: 'NO OF INTERACTIONS', font: { fontFamily: 'Oswald', size: '17px' } }
        },
        commonSeriesOptions: {
            type: 'column',
            animation: true
        },
        series: [{
            //points: graphQRData,
            dataSource: { data: graphQRData, xName: ["x"], yNames: ["y"] },
            name: 'QR Scans',
            style: { interior: secondaryColor },
            pointsTooltipTemplateID: 'qr-tooltip'
        },
        {
            //points: graphNFCData,
            dataSource: { data: graphNFCData, xName: ["x"], yNames: ["y"] },
            name: 'NFC Taps',
            style: { interior: primaryColor },
            pointsTooltipTemplateID: 'nfc-tooltip'
        },
        {
            //points: graphTotalData,
            dataSource: { data: graphTotalData, xName: ["x"], yNames: ["y"] },
            name: 'Total',
            style: { interior: primaryColorDark },
            pointsTooltipTemplateID: 'total-tooltip'
        }],

        showTooltip: true,
        size: { height: scrollH },
        legend: { visible: true, shape: 'circle', position: 'Right', alignment: 'Near', itemSize: { width: 8.5, height: 8.5 }, textOption: { font: { fontFamily: 'Open Sans', size: '13px' } } }
    });

The graph renders perfectly, but for some reason the animation does
not happen
. If I replace the type from "column", to "line", the animation
works perfectly. any idea why???!!!!

Jayavigneshwaran [Syncfusion]
Replied On October 4, 2013 06:35 AM UTC

Hi,

Thanks for your update. We are glad to know that your issue has been resolved. Please let us know if you have any other concerns so that we will be happy to
 help you out.

Regards,
Jayavigneshwaran.G


HtmlPage1_6576afdb.rar

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

;