Dots don't appear
See original GitHub issueHello,
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 :
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:
- Created 5 years ago
- Reactions:18
- Comments:30 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue. Setting
isAnimationActive
onLine
tofalse
also solves it for me. Version: 1.6.2Hello 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 😃