Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legend in the BarGauge #7147

pavelgruba opened this issue Mar 4, 2019 · 0 comments


None yet
1 participant
Copy link

commented Mar 4, 2019

The Problem

In certain cases, colored bars in the BarGauge need annotations.

The Proposed Solution

We plan to extend the BarGauge's functionality with a Legend configured via the legend object. Similar objects are present in other widgets. The legend will support the recent enhancements as well.

The following example shows the API that will make the Legend visible and customize legend items:

let barGaugeOptions = {
    legend: {
        visible: true,
        customizeItems(items) {
            items.forEach(item => {
                item.text = `Racer ${item.item.index + 1} - ${item.text} km/h`;
            return items;

We Need Your Feedback

Take a Quick Poll

Do you find the Legend in the BarGauge useful?

Live Sandbox

Check out the early working prototypes (jQuery, Angular)

Get Notified of Updates

Subscribe to this thread or to our Facebook and Twitter accounts for updates on this topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.