We're Moving to a New Support Platform – Starting June 1st!

We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.

You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.

While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.

We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.

Thanks for your continued support and trust – we’re excited to bring you an even better support experience!

Okay
  Public Ticket #2668378
Changing tooltip and legend data
Closed

Comments

  • StoryRoar started the conversation

    Hello,

    I need to edit the tooltip and legend on my pie chart here to be like the tooltip and legend in this Fidelity.com.au example.

    • Tooltip needs to display just the category and percentage.
    • Legend needs to display the percentage before each item.

    Have I put `tooltip:` and `legend:` in the wrong place?

    <script type="text/javascript">
    jQuery(window).on('load',function(){
        if( typeof wpDataChartsCallbacks == 'undefined' ){ wpDataChartsCallbacks = {}; }
        wpDataChartsCallbacks[1] = function(obj){
            obj.options.plotOptions = {
                series: {
                    dataLabels: {
                        enabled: false
                    }
                },
                pie: {
                    colors: [
                        '#006769', 
                        '#00b8af', 
                        '#28c3e8', 
                        '#0ee4da', 
                        '#2a97a6'
                    ],
                    dataLabels: {
                         enabled: false
                    },
                    showInLegend: true,
                },
                tooltip: {
                    formatter: function() {
                        return this.point.name + ': <b>' + Highcharts.numberFormat(this.y, 1) +'%</b>';         
                    }
                },
                legend: {
                    labelFormatter: function() {
                        return '<strong style="display:inline-block;width:45px;">'+Highcharts.numberFormat(this.y, 1) +'%</strong> ' + this.name ;
                    }, 
                    title: {
                        style: {
                            fontSize: '18px',
                            fontFamily: "'neuzeit-grotesk', sans-serif",
                            color: '#20242b'
                        },
                        text : 'By industry'
                    },
                    squareSymbol: true, 
                },
            };
        };
    });
    </script>
  •  2,576
    Aleksandar replied

    Hello again Jackson

    I already responded to your other ticket, but I'll post the response here, for visibility:

    This would require me to test the placeholders you used, and see what needs to be rearranged (and in what way), or added, or removed in order to help you with this.

    Unfortunately, using wpDataChart callbacks requires some coding experience, and included support refers only to advice. As you can see, our response times are already long, and I simply can't invest time in debugging the callback, as much as I'd like to help you out with this, but due to this I would not be able to help you with this any further I'm afraid.

    Sorry for the inconvenience.


    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables