Legend with Bubble/Scatter Chart

2 posts, 1 answers
  1. Jonathan
    Jonathan avatar
    3 posts
    Member since:
    Jul 2019

    Posted 16 Dec 2019 Link to this post

    I am unable to get a legend to show when using the Bubble or Scatter chart types.

     

    I can't see a reason why it would not work, but I do not see any examples of those charts with legends, and I have not had any luck getting it to work.

  2. Answer
    Stefan
    Admin
    Stefan avatar
    3009 posts

    Posted 17 Dec 2019 Link to this post

    Hello, Jonathan,

    The legend requires the series to have a name so it can display it:

    https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/legend/

    The Chart legend displays the name of the configured data series.

    After adding a name to the series in our Bubble Chart example, the legend was shown:

    https://stackblitz.com/edit/react-dvk6qi?file=app/main.jsx

    I hope this is helpful.

    Regards,
    Stefan
    Progress Telerik

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top