Menu

Labels in doughnat chart

Andrew_X
2012-08-20
2012-09-21
  • Andrew_X

    Andrew_X - 2012-08-20

    Hi!
    I need to create duble doughnut chart with labels inside inner circle that describes every section (point). It looks like http://my.jetscreenshot.com/4765/20120820-8szx-16kb But somewhy labels sometimes shown in wrong position (see screenshots http://my.jetscreenshot.com/4765/20120820-baji-17kb and http://my.jetscreenshot.com/4765/20120820-pu44-17kb). Here is my code for labels positioning:

    new PieDataLabels()

    .setDistance(-25)
    .setPadding(0)
    .setConnectorPadding(0)
    .setAlign(Align.CENTER)
    .setBorderRadius(0)
    .setBorderWidth(0)
    .setConnectorWidth(0)
    .setX(0)
    .setY(0)
    .setFormatter(new DataLabelsFormatter() {
        @Override
        public String format(DataLabelsData dataLabelsData) {
            return dataLabelsData.getPointName();
        }
    })
    

    I'm using Highcharts JS v2.2.1 and Moxie Highcharts v1.4.0.
    What can be the reason of this problem and how to fix it?

     
  • Andrew_X

    Andrew_X - 2012-09-21

    I tried to do the same with JS highcharts and it worked fine. So, it seems that there is a bug in GWT highcharts wrapper.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.