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.

Dots don't appear

See original GitHub issue

Hello,

I call this 2 Component 2 times from the same function to get 2 identical graphs, only data change :

<ResponsiveContainer>
				<ComposedChart  data={areaLine.slice()} margin={{ top: 10, right: 30, left: 0, bottom: 0 }} stroke="none">
					<XAxis dataKey="name" tick={{ fill: '#ffffff' }} stroke="rgba(255,255,255,.5)"/>
					<YAxis tick={{ fill: '#ffffff' }} stroke="rgba(255,255,255,.5)"/>
					<CartesianGrid strokeDasharray="3 3" stroke="rgba(255,255,255,.5)"/>
					<Tooltip />
					<Area type="monotone" dataKey="Periode actuelle" stroke="#236cb6" strokeWidth={2} fillOpacity={0.3} fill="#44c0ff" activeDot={{ stroke: '#white', strokeWidth: 4, r: 8, fill: '#ff5f4a'}} dot={{ stroke: '#44c0ff', strokeWidth: 4, r: 2, fill: 'blue'}}/>
					<Line type="monotone" dataKey="Periode precedente" stroke="#ff7f78" strokeWidth={2} activeDot={{ stroke: '#white', strokeWidth: 4, r: 8, fill: '#ff5f4a'}} dot={{ stroke: '#44c0ff', strokeWidth: 4, r: 2, fill: 'blue'}} />
				</ComposedChart>
			</ResponsiveContainer>

And the result is :

test

Why dot is only on the last line? and not on both graph and on the Area and Line ?

Thanks in advance 😄

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:18
  • Comments:30 (3 by maintainers)

github_iconTop GitHub Comments

34reactions
bas-lcommented, Jun 12, 2019

Same issue. Setting isAnimationActive on Line to false also solves it for me. Version: 1.6.2

9reactions
CiroGomescommented, Mar 24, 2021

Hello guys! On #1624 issue, @klarstrup gave a solution that worked for me. Apparently this problem happens in other types of graphic too, as in my case, was using Bar.

The solution, proposed by @klarstrup, was to put a key prop on the BarChart component, so when it changes, the whole graphic will re-render, with all the animations. I just put key={Math.random()}, so he always renders now 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Three dots on iMessage no longer appear w…
I know that it is only for iPhone users only and does not show on text messages but for iMessages. I don't see...
Read more >
Dots don't matter in Gmail addresses - Google Support
Dots don't matter in Gmail addresses · No one can take your username. Your Gmail address is unique. · No one sees your...
Read more >
Show dots or leaders between tabs - Microsoft Support
Go to Format > Tabs. · Select the tab to add leader characters. The Tab dialog box, set up for a right-aligned tab...
Read more >
3 dots not showing on apple notes app : r/ios - Reddit
Whenever I create a new note on my iPhone I never see the 3 dots next to the done button. I'm on an...
Read more >
DONTOVERTHINKSHIT: D.O.T.S
Welcome to the D.O.T.S store. Dontoverthinkshit. ... DONTOVERTHINKSHIT · Cart. 0 items. Hamburger Menu. 2 city show poster. Get Tickets (LA) Enter Site....
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