question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add ability to display duplicate labels

See original GitHub issue

I am submitting a…

  • Feature request

charts version:

LineChart v0.86 from @carbon/charts-react

Issue description

Duplicate labels get ignored and end up showing multiple data points per label.

Steps to produce the issue

I have an array of objects with unique dateTimes for every 30 minutes of the day, which can span across several days. The data looks something like this: screen shot 2019-02-07 at 11 26 51 am

I shorten/reformat each dateTime before adding to the labels array so that the labels are more readable. The labels array ends up looking something like this: labels: [‘12 AM’, ‘6 AM’, ‘12 PM’, ‘6 PM’, ‘12 AM’]

If I have multiple days coming back, then I will have multiple instances of each time of day, which leads to my graph looking something like this: screen shot 2019-02-07 at 11 20 58 am

Expected behavior

I’d like to be able to have multiple duplicate labels that all have unique data. For example, the following graph allows for multiple instances of 6 AM, 6PM, etc.: screen shot 2019-02-07 at 11 48 06 am

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
theiliadcommented, Feb 7, 2019

I see, definitely a bug that we should fix ASAP.

I don’t think the time scales will be ready to use by end of Feb, but I’ll make sure this issue is fixed.

0reactions
theiliadcommented, Oct 21, 2019

This isn’t directly addressed by #275, however the underlying issue here was the time-series relationship of those labels, which is addressed in the PR.

In other words, using the refactored version you’ll be able to provide your date-value datasets and get a result similar to the screenshot @bkrissIBM posted above

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate Form Label - Equalize Digital
To fix duplicate form label errors, you'll need to determine how the field and form were created and then ensure that each field...
Read more >
Work with duplicate labels—ArcGIS Pro | Documentation
When labeling line and polygon layers, you can remove duplicate labels, place one label per feature, or place one label per feature part....
Read more >
Label Duplicates with Power Query - Excelguru
Applying Labels to the Duplicates · Go to Add Column --> Conditional Column --> name it “Occurrence” and configure it as follows: ·...
Read more >
Ability to remove duplicate labels from feature layer in ArcGIS ...
I would like to be able to remove the duplicated owner names from the labels and display the name only once even if...
Read more >
Repeat item labels in a PivotTable - Microsoft Support
Make sure Show item labels in tabular form is selected. Notes: When you edit any of the repeated labels, the changes you make...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found