Bug Report T618473
Visible to All Users

PieChart - Label connectors cross other labels if resolveLabelOverlapping is "shift" in certain scenarios

created 7 years ago

I was attempting to replicate how an old version of the WebForms WebChartControl displayed labels in dxPieChart, (which turned out to be more complex than I would have imagined, but maybe I am missing something) and noticed the label connectors can sometimes draw over top of other labels. See the attached example.

Is there some way to avoid this?

Here is the code:

JavaScript
donut.dxPieChart({ type: 'doughnut', palette: 'Soft Blue', dataSource: chartData, legend: { visible: false }, resolveLabelOverlapping: 'shift', animation: true, redrawOnResize: true, tooltip: { enabled: true, format: "fixedPoint", customizeTooltip: function (args) { return { text: args.argumentText + '<br/>' + args.valueText + ' docs' } } }, customizeLabel: function (pointInfo) { // Surely there is a better way to get the current point's color? var col = pointInfo.series._points[pointInfo.index]._styles.normal.fill; return { font : { color: col }, border: { color: col } }; }, series: [ { argumentField: 'title', valueField: 'value', label: { visible: true, backgroundColor: '#FFFFFF', border: { visible : true }, position : 'columns', connector: { visible: true }, customizeText: function(point) { return point.argumentText + ": " + point.percentText; } }, smallValuesGrouping: { <%= SmallValuesGrouping %> } } ] });
Comments (1)
Artem (DevExpress Support) 7 years ago

    Hi Stefanie,

    Thank you for the detailed description. This behavior looks incorrect and I forwarded this scenario to our R&D team for further research. Please bear with us.

    Answers approved by DevExpress Support

    created 7 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

    Additional information:

    Please note that even though we modified label connectors calculating, there might be cases when connectors can still cross other labels. We'll try to avoid this issue in such cases in future releases.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.