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

Closed
pavelgruba opened this issue Mar 4, 2019 · 1 comment
Closed

Legend in the BarGauge #7147

pavelgruba opened this issue Mar 4, 2019 · 1 comment

Comments

@pavelgruba
Copy link

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.

@pavelgruba
Copy link
Author

The feature is now available in the v19.1 release. If you have questions or find any bugs, feel free to create new GitHub issues or tickets in our Support Center.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant