How to use the @nivo/colors.divergingColorSchemeIds.map function in @nivo/colors

To help you get started, we’ve selected a few @nivo/colors examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github plouc / nivo / website / src / components / guides / colors / ColorsRanges.js View on Github external
key={color}
                                    style={{
                                        display: 'inline-block',
                                        background: color,
                                        width: 18,
                                        height: 18,
                                    }}
                                />
                            ))}
                        
                    
                ))}
                
                    Diverging colors
                
                {divergingColorSchemeIds.map(scheme => (
                    
                        {scheme}
                        
                            {colorSchemes[scheme][11].map(color => (
                                <span style="{{">
                            ))}
                        
                    </span>