jQuery UI Widgets Forums Chart Pie Chart

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Pie Chart Posts
  • Pie Chart #4310

    binfch
    Participant

    Hi there

    I have a small issue with a pie chart. It works fine. However when i set “showLabels: false” then it stops working. I would like to hide the labels on the chart slices but keeping the mouseover display.

    Here’s my code:


    var dataSource2 = [
    { Country: 'DE', Percentage: 23 },
    { Country: 'FR', Percentage: 20 },
    { Country: 'ES', Percentage: 15 },
    { Country: 'IT', Percentage: 10 },
    { Country: 'CH', Percentage: 8 },
    { Country: 'BE', Percentage: 7 },
    { Country: 'PT', Percentage: 5 },
    { Country: 'OTHERS', Percentage: 12 }
    ];
    var settings2 = {
    source: dataSource2,
    enableAnimations: false,
    colorScheme: 'scheme01',
    borderColor: '#ffffff',
    padding: { left: 0, top: 0, right: 0, bottom: 0 },
    showLegend: true,
    seriesGroups: [ {
    type: 'pie',
    showLabels: true,
    series: [ {
    dataField: 'Percentage',
    displayText: 'Country',
    labelRadius: 40,
    initialAngle: 0,
    radius: 50,
    centerOffset: 7,
    formatSettings: { sufix: '%', decimalPlaces: 1 }
    } ]
    } ]
    };
    $('#transactionPerCountryChart').jqxChart(settings2);

    Thanks & cheers,
    Peter

    Pie Chart #4330

    Peter Stoev
    Keymaster

    Thank you for the feedback.

    We confirm the reported issue and will resolve it for the upcoming release jQWidgets 2.2.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.